Hello,
I'm trying to create an SWQL query that groups the stats of a custom poller in 5 minute intervals. Currently the poller is configured to poll every minute, but I don't need it to be that granular. Just the statistic that was captured at the 5 minute mark each time it was polled. I have the rest of the query ready but I'm unsure on how to do the DateTime part of the query. I'm struggling to figure out how some of this DateTime stuff works so any insight would be appreciated. Here is the query minus the date time stuff:
SELECT N.Caption as Name, cps.Status, {datetime stuff goes here} as date
FROM Orion.Nodes N
INNER JOIN Orion.NPM.CustomPollerAssignment CPA ON N.NodeID=CPA.NodeID
FULL JOIN Orion.NPM.CustomPollerStatistics CPS ON CPS.CustomPollerAssignmentID=CPA.CustomPollerAssignmentID
INNER JOIN Orion.NodesCustomProperties CP ON CP.NodeID= N.NodeID
Where CustomPollerName='F5_MyAccess' AND daydiff(tolocal(CPS.datetime),tolocal(GetDate())) = 1
GROUP BY {datetime stuff goes here}, n.caption, cps.status