Hello,
I am new to SWQL. i am trying to make a graph of nodes which are in critical, UP, DOWN state. i found how to take count of nodes which are in critical state, but when i try to make a graph i am getting an error, because i do not have a time Column.

SELECT Count(*) as TOTAL
,(SELECT Count(*) as UP FROM Orion.Nodes Where Status = 1) as UP
,(SELECT Count(*) as DOWN FROM Orion.Nodes Where Status = 2) as DOWN
,(SELECT Count(*) as Warning FROM Orion.Nodes Where Status = 3) as Warning
,(SELECT Count(*) as Critical FROM Orion.Nodes Where Status = 14) as Critical
FROM Orion.Nodes