Update an usage meter
This API lets you update an existing usage meter.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
50
"um.1zYnCiM9Bpg.1zYn"
Body
Request to update usage meter
Name of usage meter.
255
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
Type of usage meter
- COUNTER - Count usage
COUNTER
"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
COUNT
, SUM
Filter entry with field and value
Response
Structure of usage meter
Identifier of the usage meter
20
Name 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.
255
Type of usage meter
COUNTER
"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
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"
Filter entry with field and value
Status of usage meter
DRAFT
, ACTIVE
, INACTIVE
, ARCHIVED
"DRAFT"
Structure of an event schema