Skip to main content
POST
Allows you to create a billable metric out of the raw ingested events.

Request

string
required
The name of the billable metric. This should be clear and concise to represent the usage you are tracking.
string
required
A detailed explanation of what the metric measures, such as the number of specific customer transactions.
string
required
The name of the event that triggers the metric. This event represents a customer action or transaction.
[]object
An array of filter groups used to refine which events contribute to the metric. Filters allow you to narrow down events based on specific properties.
object
required
The aggregation settings for the metric. This defines how event data is calculated to produce the final metric value.

Response

string
The unique identifier for the metric.
string
A brief description of what the metric measures.
string
The name of the metric.
string
The event that triggers the metric.
[]object
An array of filter groups applied to the metric to narrow down the events counted.
object
The aggregation settings that define how the events are calculated to produce the metric value.
datetime
The timestamp when the metric was created.
datetime
The timestamp when the metric was last updated.
string
The unique identifier for the organization associated with the metric.