Spaces method and path for this operation:
Refer to Spaces for more information.
Path parameters
-
The identifier for the rule.
Maximum length is
256. -
The identifier for the alert.
Maximum length is
1000.
Query parameters
-
Set to
trueto validate that the specified alert exists. If a400error is returned, the specified alert does not exist. Defaults totrue.
Body
-
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 are
anyorall. -
One or more conditions that, when met, automatically expire the snooze. Supported types:
field_change,severity_change,severity_equals.Not more than
10elements. -
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.Maximum length is
30.
curl \
--request POST 'https://localhost:5601/api/alerting/rule/{rule_id}/alert/{alert_id}/_snooze' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"condition_operator":"any","conditions":[{"field":"string","type":"field_change"}],"expires_at":"string"}'