Create an usage meter and associate with an event schema
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Payload to create usage meter
Request to create usage meter
Name of the usage meter. Must be unique for an organization.
50Type of usage meter
COUNTER Aggregation to be applied on usage meter result
COUNT, SUM Billable name of usage meter. Billable name takes precedence over name to display in invoice.
255Description of the usage meter
255The usage meter's applicability will be determined by comparing the filter condition agianst the events.
Event Schema Identifier
Response for Create and Get usage event requests
Structure of usage meter
Identifier of the usage meter
20Name of the usage meter
50"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.
255Type of usage meter
COUNTER "COUNTER"
Aggregation to be applied on usage meter result
COUNT, SUM Billable name of addon. Billable name takes precedence over name to display in invoice.
255"Rides Usage"
255"Meter to track cab rides"
Status of usage meter
DRAFT, ACTIVE, INACTIVE, ARCHIVED "DRAFT"
1Structure of an event schema