Does anyone have a SWQL query put together that maps the alerts to their triggers? I can't seem to tie it all together this morning.
What I have isn't showing me everything I expect to see:
in SQL
FROM AlertDefinitions ad
JOIN AlertConfigurations ac ON ad.AlertDefID = ac.AlertRefID
LEFT JOIN ActionsAssignments ass ON ac.AlertID = ass.ParentID
LEFT JOIN Actions aa ON ass.ActionAssignmentID = aa.ActionID
LEFT JOIN ActionSchedules ask ON aa.ActionID = ask.ActionID
LEFT JOIN Frequencies freq ON ask.FrequencyID = freq.FrequencyID
in SWQL
FROM Orion.AlertDefinitions ad
LEFT JOIN Orion.AlertConfigurations ac ON ad.AlertDefID = ac.AlertRefID
LEFT JOIN Orion.ActionsAssignments ass ON ac.AlertID = ass.ParentID
LEFT JOIN Orion.Actions aa ON ass.ActionAssignmentID = aa.ActionID
I'm seeing 4 results here, but I should be getting about 30. What am I missing?
Bonus question, is there a way to remove trigger/reset assignments to an alert via the API? It's really great that it's easy to apply actions to multiple alerts, but removing them seems a tad painful by comparison.