This command modifies an event definition. The event definition includes actions that can be triggered when an event occurs that matches the definition. These actions override the global actions that you can define for all events using eventdefinitionconfig modify.
Usage
eventdefinition modify --id ID [--email-recipients RECIPIENTS] [--webhook-url URL] [--webhook-method POST|GET|DELETE|PUT|PATCH] [--webhook-data PAYLOAD] [--webhook-params key1=value1,key2=value2,...] [--severity CRITICAL|MAJOR|MINOR|INFO] [--trigger-on TRIGGER_ON] [--trigger-off TRIGGER_OFF] [--time-frame TIMEFRAME] [--disable-actions] [--enable-actions] [--disable] [--enable] [--disable-alarm-only] [--enable-alarm-only]
Required Parameters
Options
Example
This example configures a webhook for a specific event definition. The webhook triggers a POST request on an external application, sending the event message in the payload . Since --disable-alarm-only
is specified, the webhook will be triggered by all events of this definition, rather than only by alarms.
vcli: admin> eventdefinition modify --id 117 --disable-alarm-only --webhook-url https://hooks.slack.com/services/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 --webhook-method POST --webhook-data {"text": "$event"}
Comments
0 comments
Article is closed for comments.