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