I created a report that contains Alert Name, trigger query, suppression definition, and target.
I'd like to include the AlertAction.TriggerMessage, but I don't see how they relate? (i.e. how do I join the trigger message with it's Alert).
Here is what I have:
SELECT
AlertDefinitions.AlertName AS Alert_Name,
AlertDefinitions.TriggerQuery AS Trigger_Query,
AlertDefinitions.SuppressionQuery AS SuppressionQuery,
ActionDefinitions.Target AS To_Addr
FROM AlertDefinitions
INNER JOIN ActionDefinitions ON AlertDefinitions.AlertDefID = ActionDefinitions.AlertDefID
Where
AlertDefinitions.Enabled='True' AND ActionDefinitions.ActionType = 'EMail'
ORDER BY 1 ASC