POST
/
usage-metrics

Headers

Authorization
string
required

Your API credentials. Eg. Basic {credentials}.

Sequence-Version
enum<string>

Use this header to select an API version

Available options:
2024-07-30

Body

application/json
name
string
required

Human-readable name for this metric, which should be unique

description
string

Description for this metric

metricType
enum<string>
required

Type of metric (simple or grouped)

Available options:
SIMPLE,
GROUPED
eventType
string
required

The eventType of the Usage Event to be aggregated

aggregationType
enum<string>
required

Type of aggregation to perform

Available options:
COUNT,
UNIQUE,
SUM,
CUSTOM
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)

deletedAt
string

Created at

propertyFilters
object

propertyFilters

caseSensitive
boolean

caseSensitive

propertiesToNegate
string[]

propertiesToNegate

Response

201 - application/json
id
string
required

Unique ID

sequenceAccountId
string
required

Sequence Account ID

name
string
required

Human-readable name for this metric, which should be unique

description
string

Description for this metric

metricType
enum<string>
required

Type of metric (simple or grouped)

Available options:
SIMPLE,
GROUPED
eventType
string
required

The eventType of the Usage Event to be aggregated

aggregationType
enum<string>
required

Type of aggregation to perform

Available options:
COUNT,
UNIQUE,
SUM,
CUSTOM
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

propertyFilters
object
required

propertyFilters

caseSensitive
boolean

caseSensitive

propertiesToNegate
string[]

propertiesToNegate

parameters
object[]
required

Required parameters