Number of Active Alarms Query

perspective
#1

Hello There,

Is there anyway to write a query to return the number of active alarms inside of a tag folder path?

Many Thanks

0 Likes

#2

Have you looked at using the script function system.alarm.queryStatus()? You should be able to set your path to the tag folder with a wildcard at the end to look at everything in the folder.

1 Like

#3

Thank you. You’re right - I ended up accomplishing it via expression

runScript(“len(system.alarm.queryStatus(source=[’” + “FILTER1” +“FILTER2”+
“*’],state=[‘ActiveAcked’,‘ActiveUnacked’]))”)

0 Likes