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
Key | Datatype | Required | Description |
---|---|---|---|
month | string | Datetime 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) | |
day | string | Datetime 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) | |
names | string | Comma-separated list of metric names. | |
names | string | Comma-separated list of metric names. | |
limit | number | Maximum number of results to return (between 1 and 5000) - defaults to 500 results if limit not specified. | |
next_record_id | string | List following results with a next_record_id provided in the previous query. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
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"}]}