Hi, I'm still learning the ropes for SWQL and trying to get a query going for a modern dashboard widget. I want it to show the availability percentage for a given interface over the past 24 hours. I found this query but it doesn't seem to be working, wondering if anyone can help me understand what needs to be tweaked:
SELECT ROUND(AVG(Availability), 2) AS [Availability] FROM Orion.ResponseTime WHERE Day(DateTime) = DAY(ADDDAY(-1, GETDATE())) AND NodeID IN ({node_ID}) OR
InterfaceID IN ({interface_ID})