Usage Meters
Get usage meter
Get an usage meter using event schema name and usage meter id.
GET
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Maximum length:
50
Example:
"um.1zYnCiM9Bpg.1zYn"
Query Parameters
Example:
true
Response
200
application/json
Response for Create and Get usage event requests
Structure of usage meter
Identifier of the usage meter
Maximum length:
20
Name of the usage meter
Maximum length:
50
Example:
"rides-usage"
Display 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 of usage meter
Available options:
COUNTER
Example:
"COUNTER"
Aggregation 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
Billable name of addon. Billable name takes precedence over name to display in invoice.
Maximum length:
255
Example:
"Rides Usage"
Maximum length:
255
Example:
"Meter to track cab rides"
Filter entry with field and value
Status of usage meter
Available options:
DRAFT
, ACTIVE
, INACTIVE
, ARCHIVED
Example:
"DRAFT"
Structure of an event schema