Retrieves usage statistics for your organization over a specified time period. Usage metrics include data ingestion volumes, search query counts, and export activities. The results can be broken down into time slices and optionally compared against previous periods for trend analysis.
The period to calculate the usage for.
The period to calculate the usage for.
The num_of_slices parameter defines how the time range is divided into intervals. It is optional, and if not provided, a default value is applied. The default number of slices is 1 minute granularity for up to 12 hours time range and 20 minutes granularity for longer than 12 hours time range up to 720 slices. - default for 20 minutes time window: 20 slices - default for 12 hour time window: 720 slices - default for 1 day time window: 72 slices (1 slice per 20 minutes) - default for 10 days time window: 720 slices (1 slice per 20 minutes) - default for 30 days time window: 720 slices (max number of slices allowed)
The type of usage to query.
ingestion, search, export Enables calculation of the difference between the current and previous time range values. When set to true, the response includes a delta object with the computed difference and its relative change. Defaults to false.
The time period for which to query data for delta comparison. Either delta_time_range or both delta_from_ts and delta_to_ts can be provided if delta is enabled. If delta_time_range is provided, it will take precedence
The starting unix time in milliseconds for which to query data for delta comparison. Either delta_time_range or both delta_from_ts and delta_to_ts can be provided if delta is enabled. If delta_time_range is provided, it will take precedence.
The ending unix time in milliseconds for which to query data for delta comparison. Either delta_time_range or both delta_from_ts and delta_to_ts can be provided if delta is enabled. If delta_time_range is provided, it will take precedence.
Successfully retrieved usage metrics
"550e8400-e29b-41d4-a716-446655440000#home#usage"
"Usage"
"resource='search'"
"p90"
"duration_millis"
58351920
18911006109
timeseries for non-group by queries
Keys used for grouping the metric results
["41521f35-1b06-41f0-9cdc-9a938b5739d1"]
The tags filters for selecting the datasets. Each from_tags should be in the form <key>:<value>, e.g. environment:production.
When multiple from_tags are provided, filters on the same tag key are evaluated with OR logic, while filters on tags with different keys
are evaluated with AND logic (facet style search). e.g. [environment:production, team:A, team:B] will include all production datasets where
the team tag is either B or A.
One of either the logs or the from_tags parameters must be specified.
If both are specified then from_tags takes precedence, and the logs value is ignored.
1 - 50 elements1 - 250["environment:production"]
Expression used to select a set of logs. The expression defines the criteria for which logs are included and is applied across all available logs to produce the input set. Supports logical operators (AND, OR), comparison operators (=, !=), and quoted string literals.
"log_id = '797655e0-bddd-4abe-97a4-e9e419a72baa' OR environment != 'production'"
Auxiliary data for the metric
{ "region": "us-west-1", "service": "s3" }
Statistical distribution of the metric values represented by key quantiles:
{
"min": 691,
"p25": 713.75,
"p50": 796,
"p75": 847.5,
"p90": 1237,
"p95": 1331,
"p99": 1331,
"p999": 1331,
"max": 1331
}
true if the series result is exact, false if it is an approximation
true
timeseries for group by queries
Contains information about the change in the metric aggregations between the specified time range and the delta time range. If the delta time range is not specified, the delta is computed against the time range immediately preceding the requested one