Get all custom metrics by hourly average

GET {{baseUrl}}/api/v1/usage/top_avg_metrics?month=1992-04-06T18:39:52.088Z&day=1992-04-06T18:39:52.088Z&names=ad deserunt eiusmod&names=sed&limit=500&next_record_id=exercitation consequat

Get all custom metrics by hourly average. Use the month parameter to get a month-to-date data resolution or use the day parameter to get a daily resolution. One of the two is required, and only one of the two is allowed.

Request Params

KeyDatatypeRequiredDescription
monthstringDatetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for usage beginning at this hour. (Either month or day should be specified, but not both)
daystringDatetime in ISO-8601 format, UTC, precise to day: [YYYY-MM-DD] for usage beginning at this hour. (Either month or day should be specified, but not both)
namesstringComma-separated list of metric names.
namesstringComma-separated list of metric names.
limitnumberMaximum number of results to return (between 1 and 5000) - defaults to 500 results if limit not specified.
next_record_idstringList following results with a next_record_id provided in the previous query.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"metadata":{"day":"2023-08-31T13:53:21.322Z","month":"1972-03-18T00:07:05.292Z","pagination":{"limit":5855154,"next_record_id":"incididunt Ut dolor","total_number_of_records":-4755748}},"usage":[{"avg_metric_hour":-49511363,"max_metric_hour":29236947,"metric_category":"custom","metric_name":"esse"},{"avg_metric_hour":-30550565,"max_metric_hour":97137266,"metric_category":"standard","metric_name":"dolor ad"}]}