Data points
Deprecated — superseded by Time series
Data points are superseded by time series, and their availability in future versions of OpenGate is not guaranteed.
Do not build new integrations on this API. If you are querying data points today, plan the move: define a time series with the columns and aggregation you need, and query that instead.
What a data point is
A data point is one instance of a data stream at one instant. Its at attribute is when the measurement
was taken, and the whole set of data points for a data stream is the raw history of that measurement.
Why time series replaces it
Both hold history, but they answer differently:
| Data points | Time series | |
|---|---|---|
| Granularity | Every raw value | Values aggregated per time bucket |
| Aggregation | You fetch everything and compute it | Computed on ingestion |
| Cost of a month of data | Every value crosses the wire | One row per device per bucket |
| Future support | Not guaranteed | The supported path |
The practical difference shows up at fleet scale: asking a month of readings for ten thousand devices means millions of data points to transfer and reduce yourself, versus a pre-aggregated table that answers in one request.
Querying data points
While the API remains available, it is a standard Data Lake search:
Filter fields are prefixed datapoints., so datapoints.datastreamId, datapoints.entityIdentifier and
the _current fields of the value.
Response format
Results come back as JSON by default or as CSV through header options. A flattened parameter returns each
data point flat instead of nested, which is easier to feed into a table — see the datapoint parameters in the
specification below.