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) |
This chapter covers Enumeration Sets, Categories, and UOM.
📄️ 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 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.
