Trying to create an alert on this SWQL query, when the number of identical alerts is more than X over 24 hours. The query works fine in SWQL Studio, but I need to join it to another table when creating the alert (as required by the alert config). There do not seem to be any common columns in the Nodes and AlertHistory tables, so I need to find another one.
SELECT COUNT(*) as NumberOfDeauthentications, Message
FROM Orion.AlertHistory
Where Message like '%Max%'
AND
(TimeStamp > (GetUtcDate() - 1))
group by Message

I did a similar alert based on an event, but it does not work for an alert: https://thwack.solarwinds.com/t5/Alert-Lab-Discussions/Is-there-a-way-in-the-alert-to-include-how-many-times-the-alert/m-p/607168#M6414
Any help is appreciated.