DatasourceQuerySchema
Seconds to cache for; -1 disables caching.
Possible values: >= -1
nullDimension/column names to group by.
filters object[]
Filters to apply, AND-ed together.
The column to filter by. Can be either a string (physical or saved expression) or an object (adhoc column)
countryOptional time grain for temporal filters
PT1MIndicates if the filter has been added by a filter component as opposed to being a part of the original query.
The comparison operator.
Possible values: [==, !=, >, <, >=, <=, LIKE, NOT LIKE, ILIKE, NOT ILIKE, IS NULL, IS NOT NULL, IN, NOT IN, IS TRUE, IS FALSE, TEMPORAL_RANGE, CONTAINS_ANY, CONTAINS_ALL, IS_EMPTY, IS_NOT_EMPTY, LENGTH_EQUALS, LENGTH_GREATER_THAN, LENGTH_LESS_THAN, LENGTH_GREATER_THAN_OR_EQUALS, LENGTH_LESS_THAN_OR_EQUALS]
INThe value or values to compare against. Can be a string, integer, decimal, None or list, depending on the operator.
["China","France","Japan"]falseRows to return. Also clamped server-side by ROW_LIMIT.
Possible values: >= 1 and <= 50000
nullSaved metric names, or ad-hoc metric objects (datasets only). See ChartDataAdhocMetricSchema.
Rows to skip, for pagination.
Possible values: >= 0
0order object[]
Ordering terms, applied in sequence. Each carries its own direction.
Metric or dimension name to sort by.
Sort this column descending.
true'json' (default) or 'arrow' for an Arrow IPC stream.
Possible values: [csv, json, xlsx, arrow]
jsonTemporal column the time range applies to. Inferred from the datasource when omitted.
nullISO 8601 duration, e.g. 'P1D' or 'PT1H'.
nulle.g. 'Last 30 days' or '2024-01-01 : 2024-12-31'.
nulltrue{
"cache_timeout": null,
"dimensions": [
null
],
"filters": [
{
"col": "country",
"grain": "PT1M",
"isExtra": true,
"op": "IN",
"val": [
"China",
"France",
"Japan"
]
}
],
"force": false,
"limit": null,
"metrics": [
null
],
"offset": 0,
"order": [
{
"column": "string",
"descending": true
}
],
"time_column": null,
"time_grain": null,
"time_range": null,
"use_cache": true
}