In the days before Orion 11.5 and SAM 6.2.2 we used to do a DB query of the AlertDefinitions table to pull a list of alerts for a specific application or component monitor by checking for the name in the TriggerQuery column. Since upgrading, not only is the table different (AlertConfigurations) but the Trigger column (the equivalent of the aforementioned TriggerQuery column) now contains XML instead of T-SQL, but decoding that XML into something that looks like SQL or even SWQL is blowing my mind.
Here's my simple requirement:
Given the name of a application monitor (I'll even forego the component level query!), is there a query (SQL or SWQL) that I can run that will return all of the alerts that are scoped with that application monitor.
Help me Thwacksters, you are my only hope.