I have a SWQL custom query to get Critical alerts and warning alerts based on custom property, but I'm getting wrong value in it. Please help.
SELECT count(*) as AlertCount
FROM Orion.AlertActive aa, ORION.Nodes N
JOIN Orion.NodesCustomProperties NCP ON N.nodeid = NCP.nodeid
WHERE aa.AlertObjects.AlertConfigurations.Severity=2
AND
NCP.<CustomPropertyName> = '<CustomPropertyValue>'