Update an usage meter
This API lets you update an existing usage meter.
Path parameters
Request body
Example request
{
"type": "COUNTER",
"computations": [
{
"matcher": "{\n \"and\": [\n {\"in\": [{\"var\": \"dimension.city\"}, \"chennai\", \"mumbai\"]},\n \"or\": [\n {\">\": [{\"var\": \"attribute.distance\"}, 100]},\n {\"<\": [{\"var\": \"attribute.distance\"}, 20]}\n ]\n ]\n}\n"
}
]
}Response
Response for Create and Get usage event requests
Example response
{
"name": "rides-usage",
"billableName": "Rides Usage",
"description": "Meter to track cab rides",
"type": "COUNTER",
"status": "DRAFT",
"computations": [
{
"matcher": "{\n \"and\": [\n {\"in\": [{\"var\": \"dimension.city\"}, \"chennai\", \"mumbai\"]},\n \"or\": [\n {\">\": [{\"var\": \"attribute.distance\"}, 100]},\n {\"<\": [{\"var\": \"attribute.distance\"}, 20]}\n ]\n ]\n}\n"
}
]
}Changes
Changed in 5 of the 34 revisions of this API.167
- ○
added the new optional request property
filtersnew-optional-request-property
- ○
added the optional property
filtersto the response with the200statusresponse-optional-property-added
- ○
- ○
added the new optional request property
eventSchemaNamenew-optional-request-property
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added the required property
displayNameto the response with the200statusresponse-required-property-added
- ○
- ○
added the new optional request property
billableNamenew-optional-request-property
- ○
added the new optional request property
namenew-optional-request-property
- ○
added the optional property
billableNameto the response with the200statusresponse-optional-property-added
- ○
- ▲
removed the required property
displayNamefrom the response with the200statusresponse-required-property-removed
- ●
removed the request property
billableNamerequest-property-removed
- ●
removed the request property
eventSchemaNamerequest-property-removed
- ●
removed the request property
filtersrequest-property-removed
- ●
removed the request property
namerequest-property-removed
- ●
removed the optional property
billableNamefrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
filtersfrom the response with the200statusresponse-optional-property-removed
This revision also has 74 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲