Get hourly logs usage by retention

GET {{baseUrl}}/api/v1/usage/logs-by-retention?start_hr=2007-08-06T13:18:56.043Z&end_hr=2007-08-06T13:18:56.043Z

Get hourly usage for indexed logs by retention period. Note: hourly usage data for all products is now available in the Get hourly usage by product family API. Refer to Migrating from the V1 Hourly Usage APIs to V2 for the associated migration guide.

Request Params

KeyDatatypeRequiredDescription
start_hrstring(Required) Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
end_hrstringDatetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage ending
before this hour.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"usage":[{"indexed_events_count":40727369,"live_indexed_events_count":-70109079,"org_name":"sed Excepteur irure cillum","public_id":"in veniam dolore","rehydrated_indexed_events_count":-19495064,"retention":"enim ad cillum sunt ut"},{"indexed_events_count":-64874850,"live_indexed_events_count":-40670685,"org_name":"dolore officia anim","public_id":"veniam sunt","rehydrated_indexed_events_count":44749508,"retention":"dolor tempor"}]}