Skip to main content

Build Data Models

Tier0 uses UNS (Unified Namespace) to organize data into a clear tree structure. Each path and topic in the model automatically generates an MQTT topic, making it easy to get real-time data.

Additional Parameter Definition

  • Path-Additional Settings
ItemDescription
Extended AttributeAdd extended attributes for the path. Eg. unit.
TemplateSelect a template to inherit attributes from it. See Building Template.
Generate TemplateClick icon to add an attribute to the path, at the same time you can select to generate a same template for future use.
  • Topic-Topic Type
TypeDescription
StateWorks as an API to receive system state data.
ActionWorks as an API to execute CRUD commands.
MetricReal-time data. For example, equipment temperature.
  • Topic-Attribute Generation Method
Attribute Generation MethodDescription
Pre-definedCustomize attributes.
TemplateInherit attributes from the selected template.
Auto-ParsedUse JSON text to generate attributes with the same structure.
  • Topic-Linked Operation
ItemDescription
Mock DataGenerates a data flow with mock data in UNS > Source Flow.
Generate DashboardGenerates a dashboard in UNS > Dashboards.
Enable HistoryEnable historical data storage for the topic.

How to Build a Data Model

Based on simple folder-file structure, you can define the data hierarchy to a tree map.

Building Models Manually

note

factory/equipment/CNC will be used as an example, in which factory and equipment are paths and CNC is a topic.

  1. Log in to Tier0, landed on the Namespace page.
  2. Under Topic, click > New Path to add a path (e.g. factory).
  1. Select equipment, and then click > New Topic to add a topic (e.g.CNC) under it.
  1. Enter the information of the topic, and then click Save.

Importing Models

  1. Log in to Tier0, landed on the Namespace page.
  2. Click Import at the upper-right corner.
  1. Import JSON to create models.
  • Directly enter JSON.
  • Click Upload File to download the template and enter the model content according to template rules.
tip

You can manually add a path and topic, export it and use it as an example for import.

  1. Save the template file, and then click Import on the Namespace page.
  2. Select the template, and then click Save.

Optional Features

Building Template

  1. On the Namespace page, click Template.
  2. Click , and then enter the information of the template.
tip

Click Source to select added models and inherit their attributes.

  1. Click Save.

Creating Label

Labels are used for categorizing data models.

  1. On the Namespace page, click Label.
  2. Click , and then enter the label name.
  3. Click Save, and then click to add topics under the label.
  1. Click Save.