Unit 3: Configuring Alerts


To monitor the status of the RPi device, you can define customized alerts in the EnOS Management Console, including alert severities, alert types, alert content, and alert rules for triggering alerts.

Step 1: Define Alert Severities

Alerts can be classified by severity levels. In this step, create two severity levels, High and Middle.

  1. In the EnOS Management Console, find the Alert service in the left navigation panel.

  2. Click Alert Severity > New Severity to enter an ID and description for each severity level.

    ../../_images/alert_severity.png


You can define other alert severity levels based on your business model, such as Error, Warning, Info, etc.

Step 2: Define Alert Types

In this step, create three alert types Temp_Status, Humi_Status, and LED_Status to monitor the RPi device status.

  1. Select Alert > Alert Type from the left navigation panel.

  2. Click New Type and enter an ID and description for each alert type.

    ../../_images/alert_type.png

Step 3: Define Alert Content

In this step, create the alert contents that describe the actual status of the RPi device.

  1. Select Alert > Alert Content from the left navigation panel.

  2. Click New Content to create the following alert contents.

    • LED_On: LED light is on

    • LED_Off: LED light is off

    • Temp_High: Temperature exceeds limit

    • ​Humi_High: Humidity exceeds limit

    ../../_images/alert_content.png

Step 4: Define Alert Rules

In this step, create the alert rules to trigger the alerts.

  1. Select Alert > Alert Rule from the left navigation panel.

  2. Click New Rule to create the following alert rules.

    • LED_On: Light_Flicker value is 1

    • LED_Off: Light_Flicker value is 0

    • Temp_High: Temperature >=30

    • Humi_High: Humidity >=70

    ../../_images/alert_rule.png


After the alert rules are created, they will start running to monitor the temperature, humidity, and LED light status of the RPi device. You can view the active alerts and history alerts that are reported for the device on the Alert Record page.


You can also use the event service APIs to query alert records. For example, the Search Active Alerts API can be used to query active alerts via the organization ID and other filtering conditions. For more information about EnOS APIs, go to EnOS Management Console > EnOS API.

Next Unit

Developing a Python Program to Enable RPi to Connect