Set how the values of a signal's MQTT metric are compressed
PUT/signals/:signalId/metric-compression
Sets the compression the mqtt-client applies to the metric of the signal (HET-2188). The compression belongs to the metric, so it applies to every signal reading the metric. Takes effect with the mqtt-client's next reconciliation (30 s); stored values stay as they are. Needs the write right on every live signal reading the metric, not only on this one; 403 without naming the others, which the caller may not be allowed to read. 400 when the metric is not MQTT or the compression is not one the platform offers (interval, deadband).
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- default
The compression as stored.
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 metric is being deleted.
the default error response