I am trying to create an alert that will alert me when two Component Statistic Data values are different. I have created a Linux/unix script that returns a integer value lets say "6" and another that returns a value of "7". If I look at the node it is attached to it shows both numbers under statistical data. I cannot find how to create this in an alert. I have also tried to create a Custom SWQL Alert but when you select Set up your sqal condition and choose Application from the drop down it automatically puts in "Select Application.Uri, Application.DisplayName From Orion.APM.Application As Application" . I need it to be more like Select StatisticData From Orion.APM.ComponentAlert" but none of the drop downs apply this and it is greyed out so it can't be modified. Has anyone created a custom alert with StatisticData? I am running Orion Platform 2019.2 and SAM 6.9.1. I have downloaded and running the SWQL Studio so I can run queries against the database and return the values I need. I just don't know how to translate this into an alert. Any help is greatly appreciated!
Example..
SELECT StatisticData
FROM Orion.APM.ComponentAlert
WHERE ComponentName = 'LCECNET'
or
SELECT ComponentStatisticData
FROM Orion.APM.CurrentStatistics
WHERE ComponentName = 'LCECNET'