Optional
decimalsOptional
extendedWhether or not you want to query for extra data-points, one before the start date and one beyond the end date (if they exist).
Optional
factorThe factor to multiply the value by
Optional
fromUsed to override the global time-range for this specific query
For example 2019-01-01T00:00:00Z
Optional
limitHow many values should be fetched. The postAggr is applied to reduce the set of points to the limit.
Optional
offsetStarting point for returned values
Must be null if postAggr is set
Optional
orderThe order to order datapoints by
Optional
postAggregrator for aggregation after data storage
Must be null if offset is set
Optional
postApply a transform. Only applies when postAggr is 'last'
.
'difference'
takes the difference between the last value in a bucket and the bucket before it.
Optional
preWhen omitted, the pre-aggregator is determined automatically based on a couple of factors, but in most cases it defaults to "raw".
Optional
refReference used to identify the value. If not set, a unique reference is generated.
When the output is formatted as CSV, this reference will be used as the column header. In this
case, the variable $TH_UNIT
can be used to dynamically render a unit suffix, if applicable.
If no unit is configured, it will fallback to an empty string.
For example:
a reference value of "Weight$TH_UNIT"
would in CSV format output as "Weight (kg)"
.
Optional
selectorThe selector for getting data from a specific tag or variable. Can be used instead of tag or variable field
Formatted as
Optional
stepNumber of seconds between subsequent data-points
Optional
tagThe tag to fetch the data from. Must be null if variable is set
Optional
toUsed to override the global time-range for this specific query
For example 2019-01-01T23:59:59Z
Optional
unitThe unit of the value
Optional
variableThe variable to fetch the data from. Must be null if tag is set
Number of decimals to be returned