Schedule a snooze for the rule
When you snooze a rule, the rule checks continue to run but alerts will not generate actions. You can snooze for a specified period of time and schedule single or recurring downtimes.
Path parameters
-
id
string Required Identifier of the rule.
POST
/api/alerting/rule/{id}/snooze_schedule
curl \
--request POST 'http://localhost:5622/api/alerting/rule/{id}/snooze_schedule' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: true" \
--data '{"schedule":{"custom":{"duration":"string","recurring":{"end":"string","every":"string","occurrences":42.0,"onMonth":[42.0],"onMonthDay":[42.0],"onWeekDay":["string"]},"start":"string","timezone":"string"}}}'
Request examples
# Headers
kbn-xsrf: true
# Payload
{
"schedule": {
"custom": {
"duration": "string",
"recurring": {
"end": "string",
"every": "string",
"occurrences": 42.0,
"onMonth": [
42.0
],
"onMonthDay": [
42.0
],
"onWeekDay": [
"string"
]
},
"start": "string",
"timezone": "string"
}
}
}
Response examples (200)
{
"body": {
"schedule": {
"custom": {
"duration": "string",
"recurring": {
"end": "string",
"every": "string",
"occurrences": 42.0,
"onMonth": [
42.0
],
"onMonthDay": [
42.0
],
"onWeekDay": [
"string"
]
},
"start": "string",
"timezone": "string"
},
"id": "string"
}
}
}