Usage Metrics
Get a Usage Metric by ID
Get a Usage Metric by ID
GET
/
usage-metrics
/
{id}
Headers
Authorization
string
requiredYour API credentials. Eg. Basic {credentials}
.
Sequence-Version
enum<string>
Use this header to select an API version
Available options:
2024-07-30
Path Parameters
id
string
requiredUnique ID
Response
200 - application/json
id
string
requiredUnique ID
sequenceAccountId
string
requiredSequence Account ID
name
string
requiredHuman-readable name for this metric, which should be unique
metricType
enum<string>
requiredType of metric (simple or grouped)
Available options:
SIMPLE
, GROUPED
eventType
string
requiredThe eventType
of the Usage Event to be aggregated
aggregationType
enum<string>
requiredType of aggregation to perform
Available options:
COUNT
, UNIQUE
, SUM
, CUSTOM
propertyFilters
object
requiredpropertyFilters
parameters
object[]
requiredRequired parameters
description
string
Description for this metric
aggregationProperty
string
Property within the event to aggregate
groupingProperty
string
Property within the event to group results by
unit
string
Human-readable unit of the aggregated metric, eg. API calls)
createdAt
string
Created at
deletedAt
string
Created at
caseSensitive
boolean
caseSensitive
propertiesToNegate
string[]
propertiesToNegate