AssetDatapointAllQuery
Returns every stored datapoint in the inclusive range, ordered from newest to oldest. Use this when the complete series is needed without aggregation or downsampling. Supports numeric, boolean, text, and JSON-compatible complex attribute values. Unavailable values retain their stored timestamps and are returned as null. Boolean values are returned as 1 for true, 0 for false, and null for unavailable values.
Returns every stored datapoint in the inclusive range, ordered from newest to oldest. Use this when the complete series is needed without aggregation or downsampling. Supports numeric, boolean, text, and JSON-compatible complex attribute values. Unavailable values retain their stored timestamps and are returned as null. Boolean values are returned as 1 for true, 0 for false, and null for unavailable values.
Possible values: [all, interval, lttb, nearest]
- all
- interval
- lttb
- nearest
Aggregates numeric or boolean datapoints from the inclusive range into aligned time buckets and returns buckets in chronological order. Use this to summarize a series at a regular resolution. Numeric attributes support every formula; boolean attributes support every formula except DIFFERENCE and are aggregated as 1 for true and 0 for false.
Aggregation applied per bucket: MIN, AVG, and MAX calculate the corresponding value; DIFFERENCE calculates the change between the last values of consecutive buckets; COUNT counts stored datapoints, including null-valued rows; SUM totals numeric values (or true values for booleans); MODE selects the most frequent value; and MEDIAN selects the middle value. DIFFERENCE is numeric only. For numeric and boolean attributes, MIN, AVG, MAX, SUM, MODE and MEDIAN ignore null values and return null for buckets with no available values. Empty gap-filled buckets return null for COUNT. MODE ties select the smaller numeric value or true for booleans. Boolean MEDIAN returns 1 when the median of available 1/0 values is at least 0.5, otherwise 0; it returns null when unavailable. DIFFERENCE uses the last stored value per bucket. With gap filling enabled, empty buckets carry the previous bucket value, while explicit null values interrupt carry-forward. A difference is null if either endpoint is unavailable. The first returned bucket has a difference of zero if its value is available; observations outside the query range are not used.
Possible values: [MIN, AVG, MAX, DIFFERENCE, COUNT, SUM, MODE, MEDIAN]
When true, returns empty buckets across the requested range using time-bucket gap filling; their aggregate is generally null. When false, only buckets containing datapoints are returned. MODE currently returns only buckets containing datapoints regardless of this flag. Defaults to false.
truePostgreSQL interval literal that sets the bucket width. Include a positive amount and unit, for example 1 hour, 5 minutes, or 1 day.
1 hourDownsamples numeric or boolean datapoints from the inclusive range with the Largest-Triangle-Three-Buckets (LTTB) algorithm while preserving the series' visual shape. Use this to reduce a large series for charts. Results are chronological; boolean values are processed as 1 for true and 0 for false. Null-valued observations are omitted before downsampling, so their timestamps are not returned as gap markers. A range with no available values returns no points. Other attribute value types are rejected.
Requested maximum number of representative datapoints after downsampling. Fewer points are returned when the range contains fewer available datapoints.
500Returns at most one numeric datapoint: the closest value at or before the requested time. Use fromTimestamp as a Unix-seconds timestamp at the HTTP API boundary. toTimestamp, fromTime, and toTime are ignored. The equality boundary is inclusive. If the nearest datapoint has a null value, its timestamp and null value are returned.
Inclusive lower range bound for all, interval, and lttb as an ISO local or offset date-time. A local value is interpreted in the server time zone; an offset value is converted to the server time zone. Takes precedence over fromTimestamp and is ignored by nearest.
2026-01-01T00:00:00ZInclusive lower range bound as Unix time in milliseconds for all, interval, and lttb; ignored when fromTime is supplied. For nearest this is instead the requested time in Unix seconds and is the only time field used.
1767225600000Inclusive upper range bound for all, interval, and lttb as an ISO local or offset date-time. A local value is interpreted in the server time zone; an offset value is converted to the server time zone. Takes precedence over toTimestamp and is ignored by nearest.
2026-01-02T00:00:00ZInclusive upper range bound as Unix time in milliseconds for all, interval, and lttb; ignored when toTime is supplied and not used by nearest.
1767312000000{
"fromTime": "2026-01-01T00:00:00Z",
"fromTimestamp": 1767225600000,
"toTime": "2026-01-02T00:00:00Z",
"toTimestamp": 1767312000000,
"type": "string"
}