Hello,
I've been trying to get accurate availability information using SQL for use with the modern dashboards, but I'm running into issues with the information. I am seeing a big discrepancy in the numbers. The code I am using I pulled from this forum, but is not pulling the information I am looking for.
The Code:
SELECT [Nodes].Caption
, AVG([Nodes].ResponseTimeHistory.Availability) AS [Availability]
FROM Orion.Nodes AS [Nodes]
WHERE [Nodes].Caption = '??????????'
AND [Nodes].ResponseTimeHistory.ObservationTimestamp >= ADDDAY(-30, GETUTCDATE())
GROUP BY [Nodes].Caption
Out put:
| ?????????? | 45.6265984654731 |
The GUI for the machine is showing:
Can anyone show me where I am going wrong?
Thanks,