Usage
Get customer usage
Changed onRetrieve aggregated usage data for a customer over a specified period.
get/api/v1/usage/customer/{customer_id}
Request
- The document declares no server URL.
- AuthHTTP bearer
Path parameters
customer_idstring required
Customer ID or alias
Query parameters
start_datestring date required
end_datestring date required
metric_idstring MeteroidId
Example:bm_7n42DGM5Tflk9n8mt7Fhc7
Response
Customer usage data
Example response
{
"usage": [
{
"metric_id": "bm_7n42DGM5Tflk9n8mt7Fhc7"
}
]
}Changes
- breaking
for the
queryrequest parametermetric_id, the format changed from no format toMeteroidId - warning
added the new
TOO_MANY_REQUESTSenum value to theresponse property for the response status - warning
added the new
TOO_MANY_REQUESTSenum value to theresponse property for the response status - warning
added the new
TOO_MANY_REQUESTSenum value to theresponse property for the response status - info
added the non-success response with the status
- breaking
- info
endpoint added
- info