Get the usage over a period of time for a user per log id.
Authorizations
Query Parameters
The relative time range for which to calculate usage data. Time range supported is from minutes to years. For an exact range, use from_ts
and to_ts
instead.
The starting time (unix time in milliseconds) for which to calculate usage data. Must be used together with to_ts
. This parameter is not to be used when using time_range
.
The ending time (unix time in milliseconds) for which to calculate usage data. Must be used together with from_ts
. This parameter is incompatible with time_range
.
The type of usage to query.
search
Returns the top N logs based on the usage. If not provided, the default limit is 50. The maximum limit is 100.
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 usage metric to query
volume
, latency
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.