Setting up EnOS Common Data Service


This page describes how to set up EnOS Common Data Service for the first time.



Prerequisites


  • Common Data Service needs to be obtained, authorized, and enabled in the current OU and the target asset tree needs to be tagged with EnosCDS:true.

  • Common Data Service needs to be authorized to perform the following operations through APIs in the current OU:

    • Obtain the ID, username, email, and phone number of all users in the OU.
    • Obtain all user permissions in the OU.

    For more information about how to assign API permissions, see Authorizing API Permissions.

  • You need to be assigned the required asset permission and operation permission, and a menu group containing all menus of Common Data Service. If not assigned, contact the application administrator.



Workflow


The workflow to set up Common Data Service is as below.


../_images/CDS-Setup-Flow.png


  1. Decide if the existing datasets can meet your needs:
    • If so, get the data through Common Data Service APIs.
    • If not, go to the next step. This page assumes that the existing datasets cannot meet the needs.
  2. Decide if configuring virtual data based on the existing data can meet your needs:
    • If so, configure virtual data and get the data through Common Data Service APIs.
    • If not, go to the next step. This page assumes that configuring virtual data based on the existing data cannot meet the needs.
  3. Prepare the required data sets and standardize the data source API according to specifications, and then register the data source API as well as source metrics in Common Data Service.
  4. After the data source is registered, register the meta data in Common Data Service to declare the data content that the data source can provide.
  5. After the meta data is registered, query data using Common Data Service APIs to verify data configurations.



Step 1: Registering Source Data


Performed By Performed In
Application Creator EnOS Application Portal


Registering source data is a prerequisite for subsequent registration and query of data using Common Data Service. This step describes how to register the data source API and the source metrics it provides.

Registering Data Source API


  1. Log in to EnOS Application Portal and select Common Data Service from the application list.
  2. Select Source Data > Data Sources from the left navigation pane.
  3. Select the Public Sources or Private Sources tab according to the effective scope of the target data source and click New.
  4. Fill in the basic information and configuration details of the data source as required on the opened page and click Submit.


For more information, see Registering a Data Source.

Registering Source Metrics


  1. Select Source Data > Source Metrics from the left navigation pane.
  2. Select the Public Metrics or Private Metrics tab according to the effective scope of the target source metrics, and click Import.
  3. Click Download in the pop-up window and choose to download an Excel and a JSON template file.
  4. Fill in the template file with the metric details to be registered.
  5. Click Upload in the pop-up window. Select the filled template file and click OK.


For more information, see Registering a Source Metric.

Step 2: Registering Meta Data


Performed By Performed In
Application Creator EnOS Application Portal


Common Data Services can be used to register multiple types of data, including object types, dimension types, record types, business metrics, virtual measurement points, and virtual attributes. The steps to register different types of meta data are described below, and you can register on demand based on the data types that the data source can provide.

Registering Object Types


  1. Select Business Object Types from the left navigation pane.
  2. Select the Public Object Types or Private Object Types tab according to the effective scope of the target object types, and click Import.
  3. Click Download in the pop-up window and choose to download an Excel and a JSON template file.
  4. Fill in the template file with the object type details to be registered.
  5. Click Upload in the pop-up window. Select the filled template file and click OK.


For more information, see Registering a Business Object Type.

Registering Dimension Types


  1. Select Business Object Elements > Dimension Types from the left navigation pane.
  2. Select the Public Dimensions or Private Dimensions tab according to the effective scope of the target dimension types, and click Import.
  3. Click Download in the pop-up window and choose to download an Excel and a JSON template file.
  4. Fill in the template file with the dimension type details to be registered.
  5. Click Upload in the pop-up window. Select the filled template file and click OK.


For more information, see Registering a Dimension Type.

Registering Record Types


  1. Select Business Object Elements > Record Types from the left navigation pane.
  2. Select the Public Record Types or Private Record Types tab according to the effective scope of the target record types, and click Import.
  3. Click Download in the pop-up window and choose to download an Excel and a JSON template file.
  4. Fill in the template file with the record type details to be registered.
  5. Click Upload in the pop-up window. Select the filled template file and click OK.


For more information, see Registering a Record Type.

Registering Business Metrics


  1. Select Business Object Elements > Biz Metrics from the left navigation pane.
  2. Select the Public Metrics or Private Metrics tab according to the effective scope of the target business metrics, and click Import.
  3. Click Download in the pop-up window and choose to download an Excel and a JSON template file.
  4. Fill in the template file with the metric details to be registered.
  5. Click Upload in the pop-up window. Select the filled template file and click OK.


For more information, see Registering a Business Metric.

Registering Virtual Measurement Points


  1. Select Business Object Elements > Virtual Points from the left navigation pane.
  2. Select the Public Points or Private Points tab according to the effective scope of the target points, and click Import.
  3. Click Download in the pop-up window and choose to download an Excel and a JSON template file.
  4. Fill in the template file with the point details to be registered.
  5. Click Upload in the pop-up window. Select the filled template file and click OK.


For more information, see Registering a Virtual Measurement Point.

Registering Virtual Attributes


  1. Select Business Object Elements > Virtual Attributes from the left navigation pane.
  2. Select the Public Attributes or Private Attributes tab according to the effective scope of the target attributes, and click Import.
  3. Click Download in the pop-up window and choose to download an Excel and a JSON template file.
  4. Fill in the template file with the attribute details to be registered.
  5. Click Upload in the pop-up window. Select the filled template file and click OK.


For more information, see Registering a Virtual Attribute.

Step 3: Verifying Configuration Results


Performed By Performed In
Application Creator Common Data Service API


After all configuration tasks are completed, you can query various types of data through Common Data Service APIs, including asset data, real-time and historical data of measurement points and metrics, and third-party records. For how to query data using Common Data Service API, see Common Data Service API.