I got below SWQL query from one of the discussions where the output is giving me the availability for last 7 days. However I want to show the availability for last month in the Modern dashboard.
SELECT COUNT(*) AS [100% Available] FROM ( SELECT [Nodes].Caption , AVG([Nodes].ResponseTimeHistory.Availability) AS [Availability] FROM Orion.Nodes AS [Nodes] WHERE [Nodes].Category = '2' -- Put whatever filters here AND [Nodes].ResponseTimeHistory.DATETIME BETWEEN GETDATE() - 7 AND GETDATE() -- this is where you define your time period GROUP BY [Nodes].Caption HAVING AVG([Nodes].ResponseTimeHistory.Availability) = 100 )
Thanks
Indu