Unit 2: Creating an Application


Operator

Location

Application builder

EnOS Application Portal > Developer Console, EnOS Application Portal administration console


This unit explains how application builders use the acquired Unified Monitoring component to create a visualized monitoring application in EnOS that meets their business needs.

Prerequisites


Before you begin, make sure that your account has been assigned permission to access the Application Registration and Service Account menus in EnOS Application Portal > Developer Console. If it has not, contact the system administrator.

Step 1: Registering an Application


  1. Sign in to EnOS Application Portal > Developer Console and select Application Registration from the left navigation pane.

  2. On the Organization Applications tab, select Create Application.

  3. On the application creation page, enter the following information.

    Field

    Description

    Application name

    Enter Smart Monitoring.

    Identifier

    Enter monitor.

    Application URL

    Customize the URL of the application. This can be left empty.

    Application category

    Select an application category, such as General.

    Application type

    Select web to indicate that the application runs on the web.

    Description

    Describe the functions of the application, for example, Intelligent monitoring of multi-domain assets.

  4. Select OK.


After completing the preceding steps, application builders can see the application named Smart Monitoring, along with basic information such as its Access Key, category, and type, on the Application Registration > Organization Applications tab.

Step 2: Creating Menus


After the application is created, add the Landing Page menu of the Unified Monitoring component to the Smart Monitoring application as follows:

  1. On the Application Registration > Organization Applications tab, select the Smart Monitoring application card to open the application details page.

  2. On the Menu Management tab of the application details page, select Create Menu.

  3. In the Create Menu pop-up window, enter the following information.

    Field

    Description

    Name

    Enter the menu name, for example, Multi-domain Dashboard.

    Identifier

    Enter the identifier, for example, landingpage.

    Level

    Select Level 1 Menu.

    Parent menu

    A Level 1 menu does not require a parent menu.

    Order

    Enter 1 to display this menu at the top of the application menu.

    URL

    Enter /encom-landing-page/#/, the default URL for the Unified Monitoring Landing Page.

    Description

    Describe the functions of the menu, for example, Visualized monitoring page for multi-domain assets.

  4. Select OK.

  5. (Optional) In real-world scenarios, an application often has more than one menu. To support different monitoring scenarios, application builders can repeat the preceding steps to freely add, combine, and configure the following Smart Monitoring features.


Feature

URL

Description

Asset Overview

/encompass-monitor-hmi/#/portfolio/runtime

Uses an interactive asset map as the core to present the distribution and data of assets across multiple levels and types. For more information, see Asset Overview.

Asset List

/encompass-monitor-hmi/#/asset-list

Provides lists of multi-domain regions, sites, and devices, as well as the attributes, measurement points, and metric information of the related assets. For more information, see Asset List.

Charting Tool

/encompass-monitor-hmi/#/charting-tool

Uses visualized charts to show data trends for devices of sites or site groups over a specified period. For more information, see Charting Tool.

Common KPI Inquiry

/encompass-monitor-hmi/#/metric-tool

Uses metric reports to show the basic information and data of devices in sites, regions, or device groups over a specified period. For more information, see Common KPI Inquiry.


After completing the preceding steps, application builders can see each menu of the Smart Monitoring application, along with information such as the menu identifiers and URLs, in the menu list on the Application Details > Menu Management tab.

Step 3: Creating Permission Points


Permission points determine whether users can perform specific operations in an application. On Landing Pages, users need the corresponding permission points to:

  • Configure the features of a Landing Page

  • Manage the components on a page

  • Manage Landing Page templates

  • Control related devices or sites


Therefore, application builders need to add the corresponding permission points to the application as follows:

  1. On the Application Registration > Organization Applications tab, select the Smart Monitoring application card to open the application details page.

  2. On the Permission Point Management tab of the application details page, select Create Permission Point.

  3. In the pop-up window, enter the following information.

    Field

    Description

    Name

    Enter a permission-point name, for example, Configure Page Features.

    Identifier

    Enter monitor_ou_template.

    Description

    Describe the functions of the permission point, for example, Access permission for the feature configuration page.

    Note

    Application builders can customize permission-point names and descriptions, but the permission-point identifiers must be consistent with the identifiers given in this tutorial.

  4. Select OK.

  5. Repeat the preceding steps to configure the following permission points for the Smart Monitoring application.


Name

Identifier

Description

Edit Components

dtv_edit

Edits the DTV components displayed on the current Landing Page.

Manage Components and Templates

dtv_ou_edit

Edits the DTV components displayed on the current Landing Page. Manages Landing Page templates.

Control Assets

control_execute

Controls device and site assets.


For these permission points:

  • Users with the Configure Page Features permission can select Function Configurations i_fx in the upper-right corner of the page and configure the features on the page.

  • Users with the Edit Components permission can select Edit Page i_edit in the upper-right corner of the page to add, delete, configure, or move the components on the current page.

  • Users with the Manage Components and Templates permission can select Templates in the upper-left corner of the page to manage the templates of Landing Pages.

  • Users with the Control Assets permission can select Control in the upper-right corner of the page to control the assets on the page.

Note

The control panel needs to be configured in the Fleet Control component in advance.

Step 4: Authorizing the Service Account


EnOS controls the resources that an application can access by assigning policies to the application. To ensure that the Smart Monitoring application can retrieve data such as the attributes, measurement points, and metrics of assets in the OU, assign the corresponding policy to the Smart Monitoring application as follows:

  1. From the left navigation pane of EnOS Application Portal > Developer Console, select Identity and Authorization > Service Account.

  2. Select Authorize i_auth for the Smart Monitoring application to open the authorization page.

  3. On the Policy List tab, select Add Policy Permission.

  4. In the pop-up window, select the plus icon of the administrator predefined permission and select Save to assign this permission to the Smart Monitoring application.

After completing the preceding steps, the Smart Monitoring application can retrieve data such as the attributes, measurement points, and metrics of assets in the OU. For more information about service account authorization, see Obtain an SA Account.

Step 5: Enabling the Application


Applications created or acquired in EnOS Application Portal > Developer Console are automatically synchronized to the application management page in the EnOS Application Portal administration console. Enable the Smart Monitoring application through the following steps and display the application in the left navigation pane of Application Portal for later access:

  1. Sign in to EnOS Application Portal and select Administration Console i_console.

  2. In the left navigation pane of the administration console, select Application Management.

  3. Hover over the ellipsis icon (…) of the Smart Monitoring application and select Manage.

  4. In the Application Settings section, select the Enable Application and Display this application in the navigation pane check boxes.

After completing the preceding steps, users with access permission can select and access Smart Monitoring from the left navigation pane of Application Portal. For more information about enabling and displaying applications in Application Portal, see Manage Applications.

Step 6: Assigning Access Permissions


Contact the OU administrator to assign the required permissions to the current account, so that the account can access the menus in the Smart Monitoring application and view the relevant assets and asset data. Also, to ensure that the current account can configure Smart Monitoring pages, contact the OU administrator to assign the following permission points to the account.


Permission point

Required or optional

Description

Configure Page Features

Required

Ensures that the current account can configure the page features.

Manage Components and Templates

Required

Ensures that the current account can edit the DTV components displayed on the page and manage the page templates.

Edit Components

Optional

Ensures that the current account can edit the DTV components displayed on the page. If the Manage Components and Templates permission point has been assigned, this permission point does not need to be assigned to the current account.

Control Assets

Optional

Ensures that the current account can control assets on the page.

Next Unit


Unit 3: Prepare Visualization Pages