Event configuration should be able to match event parameters by key & value
Description
Using the event configuration it is currently possible to associate events with the corresponding configuration based on the event parameter index, and the event parameter values. This is useful for matching SNMP traps which send an ordered list of varbinds.
There are cases however where we would like to be able to match a named event parameter, as opposed to using the index.
For example, let's assume an event is sent with uei=linkStatus and the following parameters {'status': 'up', 'ifDescr': 'eth0'}. Using the event configuration we should be able to associate this event with a definition that has severity=Cleared iff status=up, and severity=Minor otherwise.
While it is technically possible to have multiple values for params, multiple values cannot be matched by the event definition. Only the first instance of a param will be used for matching.
Using the event configuration it is currently possible to associate events with the corresponding configuration based on the event parameter index, and the event parameter values. This is useful for matching SNMP traps which send an ordered list of varbinds.
There are cases however where we would like to be able to match a named event parameter, as opposed to using the index.
For example, let's assume an event is sent with uei=linkStatus and the following parameters {'status': 'up', 'ifDescr': 'eth0'}. Using the event configuration we should be able to associate this event with a definition that has severity=Cleared iff status=up, and severity=Minor otherwise.