| Block Group: | Data Services |
| Icon: | no icon |
The Load History block retrieves information about the value history of a data node.
To automatically create a Load History block for a node at a particular path, you can drag that node's
History icon from the Metrics panel into the dataflow window.
For information on using dataflow blocks, see Dataflow.
The following properties of the Load History block can take input and give output.
invoke causes the history to be loaded. The invoke property only works if enabled is set to TRUE.
enabled specifies whether the Load History block is enabled.
interval specifies how often the history is loaded, in seconds. A value of 0 means that the history is reloaded on autoRun or invoke only.
autoRun specifies whether the history is loaded automatically.
timeout specifies how long, in seconds, the loader attempts to load the history before the request is canceled. The default is 60.
path specifies the history for which to return information.
timeRange specifies the date and time range to return the history for. You can click the button and use the date range picker to specify a range. The default is today.
dataInterval specifies the date or time interval between each consecutive pair of data points. Options are Default (default), None, One year, Three months, One month, One week, One day, Twelve hours, Six hours, Four hours, Three hours, Two hours, One hour, Thirty minutes, Fifteen minutes, Ten minutes, Five minutes, One minute, Thirty seconds, Fifteen seconds, Ten seconds, Five seconds and One second.
rollup specifies the type of rollup used. The value of rollup can be one of the following:
header specifies which string is used to name the "value" column in the output table.
delta specifies what is in the "value" column of the output table.
With With previous, the first row is removed; with With next, the last row is removed.
unifyTimezone specifies the time zone of the timestamps in the output table.
+08:00 or -05:00.The following properties of the Load History block can give output but cannot take input.
loading returns whether the history is currently loading.
output returns a table of the given history's values. Columns are:
error returns the error string, if any. If the request times out, error is timeout.
onError fires if an error occurs or the request times out.
The following image demonstrates how to create a Load History block by dragging a History icon to the dataflow window.