Check a rule without storing it
POST/alarm-rules/validation
Checks a rule definition and reports what it would watch: the hit set of the selector, the objects that drop out with their reason, and warnings about configurations that are legal but unlikely to be meant. Nothing is stored, and the rule does not need an id - this is what the editor asks before saving.
Request
Responses
- 200
- 400
- 401
- 403
- default
OK
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.
the default error response