Update an alert
Deprecated
Deprecated in 7.13.0. Use the update rule API instead.
Body
Required
-
A name to reference and search.
-
The condition for throttling the notification.
Values are
onActionGroupChange
,onActiveAlert
, oronThrottleInterval
. -
The parameters to pass to the alert type executor
params
value. This will also validate against the alert type params validator, if defined. -
The schedule specifying when this alert should be run. A schedule is structured such that the key specifies the format you wish to use and its value specifies the schedule.
-
How often this alert should fire the same actions. This will prevent the alert from sending out the same notification over and over. For example, if an alert with a schedule of 1 minute stays in a triggered state for 90 minutes, setting a throttle of
10m
or1h
will prevent it from sending 90 notifications during this period.
curl \
--request PUT 'http://localhost:5601/api/alerts/alert/41893910-6bca-11eb-9e0d-85d233e3ee35' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "kbn-xsrf: string" \
--data '{"actions":[{"actionTypeId":"string","group":"string","id":"string","params":{}}],"name":"string","notifyWhen":"onActionGroupChange","params":{},"schedule":{"interval":"1d"},"tags":["string"],"throttle":"string"}'