My ultimate goal is to change the way the alarm status table Filters my alarms (in perspective).
Each tag which has alarms enabled can create multiple alarm events. In other words I could have the following scenario:
I have an ALARM_LOW tag which is Boolean (with an alarm setup on it to be active when the tag is true).
It is false at time 1, it then becomes true at time 2 and then back to false at time 3 and back to true at time 4. This would result in two entries in my alarm status table.
ALARM_LOW, Timestamp 2, (Cleared, Unacked) -------- (1)
ALARM_LOW, Timestamp 4, (Active, Unacked) ---------- (2)
I want to filter my Alarm Status Table to only show the most recent eventID for that alarm, so at time 4 the table would go from showing (1) to showing only (2). Not both (1) and (2).
I have tried extensively to do this using the filterAlarm extension function however this only filters the incoming alarm event.
My initial idea was:
When the filterAlarm extension function fires, check if any of the other alarms events (not the one being fired) have the same name. If so, change their alarm Event displayPath slightly so it wouldn't show in the filtering conditions of the alarm status table. However, the alarm Event properties seem to be read only (which is expected).
Are there any ideas or ways to only show the most recent event of a tag with alarms in the alarm status table.
Any assistance is much appreciated,