Pull Alarm History of Tag Path via Script Console

Hello There,

Is there anyway to pull the alarm history (i.e something like an array of ActiveTime’s) for a given tag path?

Similar to system.tag.read(/x/x/x/x/x/Alarms.LastActiveTime)


You may use the system.alarm.queryJournal function to accomplish what you’re looking for.

For example,
system.alarm.queryJournal(startDate, endDate, journalName, source = “Folder/TagPath”)
You can use the getDataset() on the result to convert to a dataset, and then access the EventTime column to find the times at which the events occcurred.


1 Like