GETTABLE
Parameters
Order | Name | Type | Desc |
---|---|---|---|
1 | asset | asset list | Optional A list of asset to get table entries for |
2 | options | map | A list containing query options |
Returns
Places a map onto the stack.
Description
Gets a list of tabular data. The exact table is specified in the options map.
If an asset list is included, this function will return only lines valid for the given assets.
The map can (optionally) contain any of the following…
Key | Default | Meaning |
---|---|---|
table | none | The table to query |
to | now - 1 days | The start time for the query, in UTC YYYY-MM-DD hh:mm:ss format |
from | now | The end time for the query, in UTC YYYY-MM-DD hh:mm:ss format |
Example
A('TE101') {“Table”: “Calibrations”} GETTABLE
This function will return a map containing a list of each of the recent calibrations for device TE101.