get_usage_hourly_attributions
Retrieve hourly usage attribution data from Datadog APIs to analyze resource consumption patterns and identify cost drivers across different services and regions.
Instructions
Get hourly usage attribution. Multi-region data is available starting March 1, 2023.
This API endpoint is paginated. To make sure you receive all records, check if the value of next_record_id
is
set in the response. If it is, make another request and pass next_record_id
as a parameter.
Pseudo code example:
response := GetHourlyUsageAttribution(start_month)
cursor := response.metadata.pagination.next_record_id
WHILE cursor != null BEGIN
sleep(5 seconds) # Avoid running into rate limit
response := GetHourlyUsageAttribution(start_month, next_record_id=cursor)
cursor := response.metadata.pagination.next_record_id
END
Input Schema
Name | Required | Description | Default |
---|---|---|---|
No arguments |
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}