Relative time range

object

A duration representing a relative-to-now span of time. Generally the start time is floored to the requested granularity. Eg 7d from now, with 1day granularity initiated at 2024-01-08T17:11:00+05:00 will query for the time range from 2024-01-01T00:00:00+05:00 to 2024-01-08T17:11:00+05:00. The exact start and end timestamps are returned in the result query in the meta.start and meta.end fields. If the granularity for the previous query was 1hour, it would query a time range from 2024-01-01T17:00:00+05:00 to 2024-01-08T17:11:00+05:00.

tzstring

Default:Etc/UTC

typestringrequired

Allowed values:relative

time_rangestringrequired

Allowed values:15m1h6h12h24h7d30dcurrent_weekcurrent_monthprevious_weekprevious_month

Default:1h

Example

Absolute time range

object

A duration representing an exact start and end time.

tzstring

Default:Etc/UTC

typestringrequired

Allowed values:absolute

startstring(date-time)
endstring(date-time)
Example

TimeRange

The time range to query.

Default:{"type":"relative","time_range":"1h"}

One Of
tzstring

Default:Etc/UTC

typestringrequired

Allowed values:relative

time_rangestringrequired

Allowed values:15m1h6h12h24h7d30dcurrent_weekcurrent_monthprevious_weekprevious_month

Default:1h

Example

LLMMetrics

array

List of aggregated metrics to collect across the requested time span.

Default:ai_request_count

Filter by ai_plugin

One Of
operatorstringrequired

The type of filter to apply. in filters will limit results to only the specified values, while not_in filters will exclude the specified values.

Allowed values:innot_in

valuearray[string]required

The values to include in the results.

fieldstringrequired

The field to filter.

Allowed values:ai_plugin

Example