This is an old revision of the document!
Query Queries
This type of Grafana query allows you to use a full AQL-syntax query to get points from the ARDI server.
History
Remember to add 'GETHISTORY' if you want to request historical data - otherwise, it will only request live information.
History Range
Use '{}' to let ARDI automatically fill in the parameters to the GETHISTORY function. Alternatively if you want to specify some of the parameters to GETHISTORY (such as the grain/sample rate), you can end the parameters with }**. For example... <code> 'Temperature' PROPERTY ALLPOINTS {} GETHISTORY </code> Will get the history of all temperature points across the entire system. Note that range and resolution will be automatically determined. <code> 'Machine #1' ASSET ALLPOINTS {"grain": -200,} GETHISTORY </code> Will get the history of all points in the asset named 'Machine 1'. Roughly 200 samples of data will be returned, regardless of the range requested. ===Example Queries=== <code> 'My Machine' ASSET ALLPOINTS </code> All of the points available on My Machine <code> 'Temperature' PROPERTY ALLPOINTS </code> Every temperature value across the system. <code> 'Entry' ASSET 'Process' RELATIONSHIP 'downi' RELATED 'Temperature' PROPERTY VALUES </code> All temperatures across the process line, in process order <code> 'Oven' ASSET INSIDE 'Temperature' PROPERTY VALUES </code> All temperatures inside the oven.