Get all custom metrics by hourly average
GET {{baseUrl}}/api/v1/usage/top_avg_metrics?month=2007-08-06T13:18:56.043Z&day=2007-08-06T13:18:56.043Z&names=do est&names=commodo tempor&limit=500&next_record_id=c
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":"1998-12-22T02:34:03.360Z","month":"2021-09-22T16:41:27.640Z","pagination":{"limit":-15258608,"next_record_id":"do exercitation","total_number_of_records":-30060387}},"usage":[{"avg_metric_hour":-28385173,"max_metric_hour":80959517,"metric_category":"standard","metric_name":"in aute consequat non"},{"avg_metric_hour":-7126108,"max_metric_hour":-27247430,"metric_category":"custom","metric_name":"pariatur laboris"}]}