Skip to main content
Version: 1.28.0

AssetDatapointNearestQuery

Returns 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.

type stringrequired

Returns 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.

Possible values: [all, interval, lttb, nearest]

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.

fromTimestring<date-time>

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.

Example: 2026-01-01T00:00:00Z
fromTimestampinteger<int64>

Inclusive 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.

Example: 1767225600000
toTimestring<date-time>

Inclusive 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.

Example: 2026-01-02T00:00:00Z
toTimestampinteger<int64>

Inclusive upper range bound as Unix time in milliseconds for all, interval, and lttb; ignored when toTime is supplied and not used by nearest.

Example: 1767312000000
AssetDatapointNearestQuery
{
"fromTime": "2026-01-01T00:00:00Z",
"fromTimestamp": 1767225600000,
"toTime": "2026-01-02T00:00:00Z",
"toTimestamp": 1767312000000,
"type": "string"
}