Configuration for an alert is built of two parts:
- alerting rule. This is a piece of Python code that goes into the rule processing Python hook script.
See Data Processing Rules. An alert is created by calling function
- notification streams. Streams are configured in the top level section alerts of the main configuration file nw2.conf.
These two parts are tied together when the call to
nw2functions.alert() lists notification streams
by their name in the function parameter streams.