Add a configuration file
The CNaaS team wants a config file that can be used to set:
- a default Incident severity level for all posted Argus incidents
- a severity level based on a mist event type (
ev_type
) - which event types (
ev_type
) should be conveyed to Argus:- Both stateful event type pair ("opening event type + resolving event type")
- also single, "stateless" event types (eg.
AP_RECONFIGURED
)
For now, only webhook messages in the device-events
topic are desirable, so this hard-coded constraint can remain unchanged. Given this constraint, all device-related attributes can be expected to be present on all events, regardless of ev_type
, so the tag producing function can also be left unchanged and unconfigurable.