stack kb alerting post-alerting-rule-rule-id-alert-alert-id-snooze cli command
Auth required
elastic stack kb alerting post-alerting-rule-rule-id-alert-alert-id-snooze \
--rule-id <rule-id> \
--alert-id <alert-id> \
[options]
Snooze an alert
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--rule-idstringrequired- The identifier for the rule.
--alert-idstringrequired- The identifier for the alert.
--validate-alerts-existence- Set to
trueto validate that the specified alert exists. If a400error is returned, the specified alert does not exist. Defaults totrue. --condition-operatorenum-
Logical operator applied to the conditions array. "any" expires the snooze when at least one condition is met; "all" requires every condition to be met. When conditions are provided but this field is omitted, defaults to "any".
Values: any, all
--conditionsstring[]-
One or more conditions that, when met, automatically expire the snooze. Supported types:
field_change,severity_change,severity_equals.Repeatable: pass
--conditionsmultiple times to supply more than one value --expires-atstring- The datetime at which the snooze expires, in ISO 8601 format (
YYYY-MM-DDTHH:mm:ss.sssZ). When omitted, the snooze persists indefinitely unless manually removed or a defined condition is met. --input-filestring- path to a JSON file to use as command input
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--json-
output as JSON