Skip to main content
POST
List aggregated metrics
For grouping, paging, and series limits, see Querying metrics.

Authorizations

Authorization
string
header
required

Authorization: Bearer <token>

Body

application/json

Query for fetching aggregated metric data in tabular form, used to populate list views.

Unlike [TimeseriesQuery], which returns data points over time, a ListQuery returns one Row [blocked] per unique combination of group-by values, with each row containing aggregated metric values.

from
string<date-time>
required

Start of the time range to query (inclusive).

to
string<date-time>
required

End of the time range to query (inclusive).

site_id
string
required

The site to fetch metrics for.

select
object[]
required

Selectors that define which metrics and fields to fetch. Each selector contributes a key-value entry in the resulting Row::data [blocked] map.

group_by
(object | enum<string>)[]
required

How to group metrics into rows. Each unique combination of group-by values produces one Row [blocked], whose id is derived from the grouped values.

Specifies how rows in a List [blocked] are grouped.

resolution
null | enum<string>

The desired interval for aggregation. When None, a resolution is automatically chosen based on the time range.

Available options:
HOURLY,
MINUTELY,
DAILY
limit
integer<int32> | null

Maximum number of rows to return. When None, no limit is applied.

pagination
null | object

Id-cursor paging (per_page 1 to 1000, rows ordered by id); takes precedence over limit. A page shorter than per_page is the last.

Response

One row per unique combination of group-by values.

A tabular collection of [Row]s, returned for list-view queries.

Each row represents an aggregated metric value grouped by tags, used for displaying metric data in table format in the frontend.

resolution
enum<string>
required

The time interval used for aggregation (e.g. one minute, one hour).

Available options:
HOURLY,
MINUTELY,
DAILY
from
string<date-time>
required

Start of the queried time range (inclusive).

to
string<date-time>
required

End of the queried time range (inclusive).

rows
object[]
required

The rows of aggregated metric data.