system.alarm.queryJournal() is returning alarm names as labels instead of labels

I don't really want to create another post on this matter but I think there might actually be an issue.

I have created an alarm journal and have enabled the 'Static Config' setting on it. I can see when the records are being created in the alarm_event_table there is a row being created with the propname 'label'. The Alarm Journal Table is correctly retrieving the labels and displaying them in the 'Label' column.

However, when iterating through the results from system.alarm.queryJournal() and inspecting the .label on the PyAlarmEvents (or calling .getLabel()), the value is consistently returning the alarm's name instead of the label. Am I missing something else or is this broken? Does anybody have an suggestions for a work around? (I've tried using the alarm's tag path with system.tag.getConfiguration() but it doesn't provide information about the alarm's label as far as I can tell.)

Never mind, including the includeData=True argument of system.alarm.queryJournal() resolves this problem.

1 Like