Query data usage
https://api.coralogix.com/mgmt/openapi/5/dataplan/data-usage/v1/queryReturns billable data usage aggregated into daily or hourly buckets. Supports filtering and grouping by labels listed by the capabilities endpoint.
Requires the following permissions:
data-usage:Read
Authorizations
Request
Body
Shared query payload used by both unary and streamed data-usage methods.
- oneOf
- Option 1
- Option 2
- Option 3
- Option 1
- Option 2
- Option 3
- Option 1
- Option 2
- Option 3
Day-oriented query. Always returns 1-day UTC buckets.
oneOfHalf-open UTC calendar date interval [start, end). Both bounds are required full calendar dates.
Relative day-oriented presets resolved by the server at request time.
Possible values: [DAILY_RELATIVE_RANGE_UNSPECIFIED, DAILY_RELATIVE_RANGE_CURRENT_MONTH, DAILY_RELATIVE_RANGE_PREVIOUS_MONTH, DAILY_RELATIVE_RANGE_CURRENT_YEAR, DAILY_RELATIVE_RANGE_LAST_7_DAYS, DAILY_RELATIVE_RANGE_LAST_14_DAYS, DAILY_RELATIVE_RANGE_LAST_30_DAYS, DAILY_RELATIVE_RANGE_LAST_90_DAYS, DAILY_RELATIVE_RANGE_LAST_180_DAYS, DAILY_RELATIVE_RANGE_LAST_365_DAYS]
Label predicates applied before aggregation.
Possible values: <= 16
Label keys to group results by. Supported keys are listed by the capabilities endpoint.
Hour-oriented query. Always returns 1-hour buckets. Max window: 14 days.
oneOfRelative hour-oriented presets resolved by the server at request time.
Possible values: [HOURLY_RELATIVE_RANGE_UNSPECIFIED, HOURLY_RELATIVE_RANGE_LAST_12_HOURS, HOURLY_RELATIVE_RANGE_LAST_24_HOURS, HOURLY_RELATIVE_RANGE_LAST_48_HOURS, HOURLY_RELATIVE_RANGE_LAST_7_DAYS, HOURLY_RELATIVE_RANGE_LAST_14_DAYS]
Half-open timestamp interval [start, end). Both bounds are required.
Per-bucket result-size cap. The server may reject queries whose pre-cap size still exceeds its hard limits.
Measurement kind filter applied before aggregation. Omit (or pass an empty list) to include all supported measurement kinds.
Possible values: [MEASUREMENT_KIND_UNSPECIFIED, MEASUREMENT_KIND_PROCESSED_DATA_SIZE, MEASUREMENT_KIND_EVALUATIONS, MEASUREMENT_KIND_PROCESSED_EVENTS, MEASUREMENT_KIND_OLLY], <= 8
Response
Bucket-first usage results for the resolved query interval.