What Are Attributes?
Attributes allow storing supplementary metadata alongside time series data without modifying the underlying values. Each attribute has a defined data type that determines how the associated information is structured and stored.
Attribute Assignment
Section titled “Attribute Assignment”Attribute assignments allow for flexible categorization and management of time series data. An attribute can be assigned to multiple time series, and each time series can have multiple attributes.
As such using attributes a time series can be categorized on two levels:
- Is a given attribute assigned or not (helpful for aggregating all time series of a specific type - e.g. all customers for all locations)
- By the value of a given attribute (e.g. to aggregate all time series of a given location)
Time Slots
Section titled “Time Slots”Attribute values can be assigned to a time series as a whole or for a specific time slot only. The attribute assignment itself is unaffected by this as it is still assigned to the time series exactly once. But instead of a single value for the entire time series, the attribute can have any number of time slots, each of which can be assigned different values.
Deleting Attributes
Section titled “Deleting Attributes”Attributes can be deleted using the PowerTSM HTTP API or the PowerTSM .NET API. By default neither will delete an attribute if it is still in use in attribute to time series assignments. To deal with this, both offer a force delete option that allows deletion of attributes even if they have existing assignments to time series. However, using force delete will also remove all associated assignments and assignment data, which may lead to loss of metadata for those time series.