Recompute one metric's statistics
POST/metrics/:metricId/statistics
Recomputes the statistics of a single metric and answers with the result. Synchronous because one metric is cheap - measured at ~112 ms against two years of data at a 15-minute resolution - and because the row it belongs to is waiting for the number.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- default
The freshly computed statistics
the default error response
Unauthorized — the bearer token is missing, expired or invalid, or carries no role. Errors raised by the security aspects contain an ErrorDto body; requests rejected by the security filter chain may have an empty body.
Forbidden — the authenticated user lacks the required role or access rights.
Entity not found.
the default error response