generate_event/2—generate a new event
The syntax for generate_event/2 is as follows:
generate_event($CLASS,$SLOTS)
generate_event/2 arguments
Argument | Mode | Type | Description |
---|---|---|---|
$CLASS | Input | STRING | Specifies the event class name |
$SLOTS | Input | LIST_OF ANY | Specifies the list of slot settings to be included in the new event |
Use the generate_event/2 to generate a new event of class $CLASS with slot settings as specified in $SLOTS
The value of the $SLOTS argument must be a list of elements of the form SlotName=Value.
generate_event/2 example
generate_event(CUSTOM_EVENT,[severity=INFO,msg=$MSG]);
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*