Table of Contents

saveInterval attribute

Specifies that only one save operation must be executed per interval.

Caution

Be careful with the use of this feature, as it is still undergoing improvements. The specified interval is not yet functional, and save operations are currently only executed when the element is restarted.

Content Type

duration

Parent

Param

Remarks

Specifies that only one save operation must be executed per interval.

For this attribute to have any effect, the parameter must be saved. For standalone parameters, this is configurable through the save attribute.

For column parameters, saving is enabled by configuring the save option for the column within the table parameter. Additionally, the saveInterval attribute must be specified on both the table parameter and the column parameter to ensure proper functionality.

If you specify a saveInterval attribute, the database will only allow one save operation per interval. Intermediate value updates will not be saved.

When the DMA or the element is stopped, a save operation will be executed to save the value to the database.

The specified value must be a positive duration expressed in the format defined by ISO 8601, for example:

P0Y0M1DT1H20M0S = P1DT1H20M = 1 day, 1 hour and 20 minutes.

For more information about this format, refer to https://www.w3.org/TR/xmlschema11-2/#duration.

Examples

Standalone parameter

The following example parameter is configured to save its value every 20 seconds.

<Param id="1" trending="true" save="true" saveInterval="PT20S ">

Table parameter

The following example table is configured to save the value of a cell every 5 minutes.

<Param id="100" saveInterval="PT5M">
	<Name>myTable</Name>
	<Description>My Table</Description>
	<Type>array</Type>
	<ArrayOptions index="0">
		<ColumnOption idx="0" pid="101" type="retrieved" options="" />
		<ColumnOption idx="1" pid="102" type="retrieved" options=";save" />
	</ArrayOptions>
	...
</Param>
<Param id="101" trending="false">
	...
</Param>
<Param id="102" trending="false" saveInterval="PT5M">
	...
</Param>