Hello,
I'm trying to create an SWQL query that returns the value of a custom poller for each hour in the previous day. I understand how to gather the data from the pollers but I am a total noob when it comes to the date time stuff. Specifically, I'm trying to get it to return one hour per row, for each hour in the previous day. So there would be a row for 12:00AM, 1:00AM etc all the way to 11PM with the corresponding custom poller status at that time.
The query that I have right now minus the DateTime stuff looks like this:
SELECT cps.Status
FROM Orion.NPM.CustomPollerStatistics cps
left outer join Orion.NPM.CustomPollerAssignment cpa On (cpa.CustomPollerAssignmentID = cps.CustomPollerAssignmentID)
left outer join Orion.NPM.CustomPollers cp On (cp.CustomPollerID = cpa.CustomPollerID)
Where CustomPollerName='F5_MyAccess'
If I'm correct, this query returns the Status of the custom poller named "F5_MyAccess" at a given time. If anyone can help me out with narrowing it down to an hour by hour for the previous day it would be super helpful!