No way to know the alarm type (as type 1, 2 or 3) from web UI
Description
If alarms pop up in OpenNMS you don't have any chance to see, if there is a possible resolution event. But we have this information in the event definitions.
Take uei.opennms.org/nodes/nodeDown alert as an example. There is no information that the event uei.opennms.org/nodes/nodeUp could resolve this alarm.
Don't be curious, my nodeDown is a little bit modified to show more information that we need, but doesn't matter for this topic.
The alarm page just have to show this information.
We could have a field like this which tells that there is an event that could resolve it (in this example uei.opennms.org/nodes/nodeUp) or if there is clear event.
If alarms pop up in OpenNMS you don't have any chance to see, if there is a possible resolution event.
But we have this information in the event definitions.
Take uei.opennms.org/nodes/nodeDown alert as an example. There is no information that the event uei.opennms.org/nodes/nodeUp could resolve this alarm.
Don't be curious, my nodeDown is a little bit modified to show more information that we need, but doesn't matter for this topic.
This is the default nodeDown event definition:
https://github.com/OpenNMS/opennms/blob/develop/opennms-base-assembly/src/main/filtered/etc/events/opennms.pollerd.events.xml#L353-L368
The counterpart to resolve/clear nodeDown is nodeUp:
https://github.com/OpenNMS/opennms/blob/develop/opennms-base-assembly/src/main/filtered/etc/events/opennms.pollerd.events.xml#L467-L480
With the information we have in nodeUp's event clear-key and alarm type we can perfectly find our that we have a possible resolution. See here: https://github.com/OpenNMS/opennms/blob/develop/opennms-base-assembly/src/main/filtered/etc/events/opennms.pollerd.events.xml#L479
The alarm page just have to show this information.
We could have a field like this which tells that there is an event that could resolve it (in this example uei.opennms.org/nodes/nodeUp) or if there is clear event.