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]
[--webhooks IDs]
[--cooldown SECONDS]
[--raise-at-count COUNT]
[--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
| Specifies the event definition to modify. |
Options
| Configures email recipients to be notified on events and/or alarms of this definition. Specify RECIPIENTS as a comma separated list of email addresses (no spaces). Example: |
| Attaches webhooks to the event definition. Specify |
| Sets a minimum number of seconds to wait between two consecutive events. |
| Sets the number of event occurrences after which the alarm is raised. |
| Changes the severity of events with this definition. |
| Sets the value at which an alarm is triggered on. Relevant to the following event types: OBJECT_MODIFIED , THRESHOLD, RATE. For OBJECT_MODIFIED type events, specify one or more valid values for the property in the definition of the event. Separate the values with a comma. For example: For THRESHOLD and RATE type events, specify an operator and a numeric value in the format:
For example: |
| Sets the value at which an alarm is triggered off. Relevant to the following event types: OBJECT_MODIFIED and THRESHOLD. Input format as for |
| Sets the time frame for a RATE type event, in which an alarm is triggered if a property exceeds a threshold value within the configured time frame. For example: |
| Disables any configured email recipients and webhook for the event definition. |
| Reenables email recipients and webhook for the event definition, if disabled. |
| Disables the event definition, which stops events of the given definition being logged as events, or triggering call home, alarms or actions such as email, webhook or syslogs. |
| Re-enables a disabled event definition. See |
| If specified, email recipients and webhooks (if configured) are initiated by all events of this definition and not only by alarms. For example, if the object type is CNode, and the Property is state , then if |
| If specified, email recipients and webhooks (if configured) are initiated only by alarms and not by any and every event of this definition. |
Example
This example attaches a webhook with webhook ID 2 to event definition 117:
vcli: admin> eventdefinition modify --id 117 --webhooks 2