IndicatorStatistics object computed across all data points stored for the indicator. Statistics are cached in Redis and recomputed on cache expiry.
Path parameters
The indicator’s unique identifier. Must be a valid MongoDB ObjectId (24-character hex string).
Response
Total number of data points stored for the indicator. Returns
0 if no data exists.The smallest x-axis value across all data points. For time-series indicators this is an ISO 8601 datetime string; for numeric indicators it is a float.
null when count is 0.The largest x-axis value across all data points. Same type rules as
min_x. null when count is 0.Arithmetic mean of all
y values. null when count is 0.Minimum
y value across all data points. null when count is 0.Maximum
y value across all data points. null when count is 0.Error responses
| Status | Description |
|---|---|
400 Bad Request | indicator_id is not a valid ObjectId. |
Examples
Example response — indicator with data
200
Example response — indicator with no data
200
Statistics are computed with a MongoDB aggregation pipeline and then cached in Redis. If you ingest new data points and immediately call this endpoint, you may receive stale statistics until the cache expires.