edit-icon download-icon

3-1 Create an alarm control

Last Updated: Jun 01, 2018

ARMS sends alarms by email or SMS in real time when the configured alarm conditions are met.

How alarm works

Default alarm conditions:

  • To avoid the explosive growth of alarm messages, if the same alarm goes off successively, a message about this situation is sent within 24 hours.
  • If no duplicate alarm is generated within five minutes, ARMS sends a recovery email notifying you that the alarm has been cleared.
  • After a recovery email is sent, the alarm status is reset. If this alarm goes off again, the alarm is deemed as a new one.

You can click query and delete distory in Alarm Management to query exceptions of a data record in a log at a specified historical time point.

Alarm controls and dataset

In ARMS, alarm controls are essentially the data presentation of a dataset. Therefore, when you create an alarm control, ARMS also creates a dataset, which corresponds to the underlying data storage of the alarm control.

In the left-side navigation pane of the console, choose Custom Monitoring > Datasets, and query data in the target dataset, and get sample code of calling APIs.

Create an alarm

Prerequisites

  • A custom monitoring job is required before you can create and setup an alarm control. For instructions on how to create a monitoring job, see Step 1 and Step 2.
  • Before configuring alarms, set the contacts and contact groups. Alarm configuration only supports contact groups. You must set the contact groups after setting contacts.

Add and configure an alarm

Assuming that the user log is as follows:

  1. 2016-11-14 15:56:46|9|EADS|BIZ-MONITOR|0|Category=Men's wear&Region=Hangzhou&eventTeyp=1&Gender=1&Price=2140
  2. 2016-11-14 15:56:46|9|EADS|BIZ-MONITOR|0|Category=Houseware&Region=Shanghai&eventTeyp=3&Gender=0&Price=8305

To carry out statistical analysis on this log as the data source, and create an alarm control The sales volume within one minute is less than the minimum or greater than the maximum value specified, follow these steps:

  1. In the left-side navigation pane of the console, choose Custom Monitoring > Jobs.

  2. On the Instance List page, click Edit next to the monitoring job you just created, and click Next until the Dataset and Alarm Configuration tab is displayed.

  3. In the Alarm Settings area, click Add Alarm.

    Button Add Alarm

  4. In the Add Alarm dialog box, enter related information and click Save.

    Dialog Box Add alarm

    • Filter: Configure a filter for the alarm. The alarm is triggered only when the filter is satisfied.

      Note: Select the filter criteria with caution. Meet the following criteria simultaneously corresponds to the AND relationship, and Meet any of the following criteria corresponds to the OR relationship.

    • Alarm Rule: It is the most important field in alarm settings. ARMS generates alarms based on the configured alarm rules.

      Note: Select the alarm rule with caution. Meet the following criteria simultaneously corresponds to the AND relationship, and Meet any of the following criteria corresponds to the OR relationship.

    • Time Field: Select the time field corresponding to log splitting in the previous operations.

    • Notification Mode: Select the notification mode.

    • Notification Time: Alarms are sent only within the specified time period. Beyond the specified time period, alarms are generated and valid, but you are not notified of them. You can query the alarms generated beyond the specified time period on the Alarm History tab.

    • Alarm Contacts: Select one or more alarm contact groups. You can click a contact group to add it to Selected Contact Groups.

      Tip: If no group is available in All Contact Groups, configure contact groups on the Contacts page.

    • Alarm Severity: Set the alarm severity.

    • Dimension: Configure the alarm dimension field. ARMS generates alarms for different dimensions. For example, if you set Dimension to Gender, ARMS generates alarms for male and female, respectively.

    • Sampling Field: ARMS gets data from the specified field in the minute when the alarm is generated. The sampling data helps identify the cause of the alarm.

    • Notification Content: You can customize the alarm content.

  5. Return to the Instance List page, and click Start to activate the alarm.

  6. In the left-side navigation pane of the console, choose Alarms > Alarm Policy , and click View History next to the alarm control you created. All alarm records are displayed. Alternatively, you can use the search box to query the target alarms.

Thank you! We've received your feedback.