GETHISTORY

Parameters

OrderNameTypeDesc
1pointspoint listA list of points to get history for
2optionsmapA list containing query options

Returns

Places a list of points onto the stack with history for each of the points.

Description

Gets history information for every point in the point list.

The map can (optionally) contain any of the following…

KeyDefaultMeaning
typeinterpThe type of request - values include interp (interpolated), continue (interpolated data without preceeding values) and raw (raw data).
startnow - 1 daysThe start time for the query, in UTC YYYY-MM-DD hh:mm:ss format
endnowThe end time for the query, in UTC YYYY-MM-DD hh:mm:ss format
grain-100The number of seconds between samples (positive), or the number of samples in the returned data (ifnegative)
tzUTCName of the time-zone that the requested range and returned values are in. May be local to use the configured time-zone of the ARDI site.

Example

A('TE101') P('Temperature') POINTS { “start”: “2020-01-01 00:00:00”, “end”: “2020-01-02 00:00:00” } GETHISTORY

This function will return a point for Temperature on asset TE101, if such a point exists.

See Also

LAG