Usage Meters
Get usage meter
Get an usage meter using event schema name and usage meter id.
GET
/
usage_meters
/
{usage_meter_id}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
usage_meter_id
string
requiredMaximum length:
50
Query Parameters
includeSchema
boolean
Response
200 - application/json
Structure of usage meter
id
string
requiredIdentifier of the usage meter
Maximum length:
20
name
string
requiredName of the usage meter
Maximum length:
50
displayName
string
requiredDisplay name of usage meter. This is an auto-generated field which contains billableName of usage meter. If billableName is not provided, name will be used as display name.
Maximum length:
255
type
enum<string>
requiredType of usage meter
Available options:
COUNTER
aggregation
enum<string>
requiredAggregation to be applied on usage meter result
- COUNT - Counts number of events matching the usage meter
- SUM - Sums up results of computation of all events matching usage meter
Available options:
COUNT
, SUM
billableName
string
Billable name of addon. Billable name takes precedence over name to display in invoice.
Maximum length:
255
description
string
Maximum length:
255
filters
object[]
status
enum<string>
Status of usage meter
Available options:
DRAFT
, ACTIVE
, INACTIVE
, ARCHIVED
computations
object[]
eventSchema
object
Structure of an event schema
createdAt
string
lastActivatedAt
string
updatedAt
string