I want to show a table with history alarms in a dashboard, but I only want to show the latest alarm for every alarm tree. Basically like the History Tracking feature in the Cube alarm console.
If I use the "Get Alarms" data source, there will be multiple alarms returned with the same root ID (if the alarm was updated in some way). Is there any way (with a custom operator?) to only have the latest (highest Alarm ID/timestamp) alarm of every tree?
Hi Matthijs,
Indeed, a custom operator sounds like the way to go here. You can sort the alarms by time in descending order and return the first root alarm you encounter. A HashSet can be used to track these efficiently.
Thanks, I implemented it in a custom operator: https://github.com/SkylineCommunications/SLC-GQIO-RemoveRowsWithDuplicateValue