13 Libraries
Libraries is the central repository of reusable definitions used across TDengine IDMP. It is accessed from the Libraries menu in the main navigation bar.
The Libraries menu contains the following sections:
| Section | Description |
|---|---|
| Element Template | Define reusable element structures with attribute templates (see Chapter 3) |
| Event Template | Define event schemas and notification rules (see Chapter 6) |
| Enumeration Sets | Map integer values to human-readable labels |
| Categories | Define classification tags for elements, attributes, events, and more |
| UOM | Manage units of measurement and automatic conversion |
| Composite Metric | Define virtual metrics computed from other attributes (see Chapter 7) |
| Action Template | Define reusable automated actions that analyses invoke when a trigger condition is met |
This chapter covers Enumeration Sets, Categories, UOM, and Action Templates.
📄️ Enumeration Sets
An enumeration set maps integer (or other numeric) values to human-readable labels. When an attribute's data type is an integer that represents a discrete state — such as 0 = Stopped, 1 = Running, 2 = Fault — you can assign an enumeration set to the attribute so that IDMP displays the label instead of the raw number.
📄️ Categories
Categories are classification tags that can be applied to objects in IDMP to make them easier to filter, search, and organize. Any element, attribute, event, dashboard, panel, or RT analysis can be tagged with one or more categories.
📄️ Units of Measurement
In industrial and IoT environments, measurements collected from different devices or systems often use different units. Even after data is stored in TDengine TSDB, unit inconsistencies can remain across assets or over time. IDMP manages this through a Units of Measurement (UOM) library that enables automatic unit conversion in attribute formulas, calculations, and display.
📄️ Action Templates
An action template defines a reusable automated action that real-time analyses invoke when a trigger condition is met. For example, when a distribution transformer's analysis outputs an average voltage above a threshold, it can automatically send an alert notification to the operations group. By capturing actions as templates, multiple analyses can reference the same template and adjust its runtime parameters locally within each analysis, without affecting the template itself.
