Trying to get average Availability for a KPI widget for the last 7 days and using below Query
SELECT AVG(E0.[AvgResponseTime]) AS Counter
FROM Orion.Nodes AS E0
WHERE ( ( E0.[CustomProperties].[x_x_x] = 'abc' )) AND Date.Time BETWEEN GETDATE() - 7 AND GETDATE()
But I am getting below error when validating the query:
Provided SWQL query is not valid. Details: RunQuery failed, check fault information. Entity Date not found in FROM clause for property Date.Time
Can anyone tell here what is wrong here ? If I remove the Time condition , SWQL runs just fine.