Retention
Retention classes define how long LooT stores the values of a node; this page explains how to assign a class and which limits apply.
What retention classes are for#
A time series grows with every measurement. To keep storage from growing without limit, a retention class defines how long the values of a node are kept. LooT removes older values automatically; you do not have to delete anything.
The class belongs to the node: every node that records a time series has exactly one. So a node with raw data can expire after seven days while the energy meter next to it is kept for ten years.
These classes are supplied:
| Class | Period |
|---|---|
| unlimited | Values are never removed |
| 7 days | |
| 30 days | |
| 1 year | |
| 10 years |
System admins can add further classes, for example "10 minutes" or "1 hour" for very short-lived data, or "90 days". You see their list below.
Assigning a class to a node#

- Select the node.
- Open the Properties of the node. When creating a node, you find the same form in the New node dialog.
- Choose the class in the Retention field.
- Save the properties with Save.
New nodes start with Unlimited if you choose nothing. The class concerns the values of the time series; a node without a value type ("no time series") has no values that could expire. The form is described in Editing nodes.
In the text editor the class is the property retention.
Nodes generated from a template and cloned nodes take over the class of the original.
Changing the class of a node that has values#
A node with existing values can change its class too. LooT accepts the change at once and writes new values into the new class right away. It copies the existing values over in the background; meanwhile queries keep returning all values, old and new. The form shows a notice until the copying is finished.
- While copying runs, neither the class nor the value type of the node can be changed.
- LooT copies all values, including those older than the new retention. The regular cleanup removes them afterwards.
- Reload the page to see the current state.
What happens after expiry#
Values older than the retention are removed automatically. Files attached to values (for example blobs) go with them. Removal works in blocks, not value by value. A value may therefore stay visible somewhat longer than the class says: up to 7 days for 1 year, up to 30 days for 10 years; for short classes the delay is a fraction of the period.
If a chart finds no values because they have expired, see Troubleshooting.
Managing classes (system admins)#
Only system admins create and delete classes. You find them in the System administration on the Tenants tab, in the list on the left under For all tenants, as Retention classes; the classes apply to all tenants.
Creating a class#
- Under New class, enter a name.
- Enter the period and choose the unit: minutes, hours, days or years. Alternatively tick Unlimited.
- Optionally enter a short name. Without one, LooT derives it from the period (for example
90d,1y,inf). - Choose Create.
Limits#
- The period is between 1 minute and 100 years.
- The short name has 1 to 16 characters from lowercase letters, digits and the underscore.
- When a class is created, LooT sets up the storage for it; this takes a short moment.
- A class can be deleted only while no node uses it or is being copied out of it. The class unlimited can never be deleted.