Updated on 2024-04-15 GMT+08:00

Creating an Alarm Action Rule

You can create an alarm action rule and associate it with an SMN topic and a message template. When the resource or metric data meets the alarm condition, the system sends an alarm notification based on the associated SMN topic and message template.

Prerequisites

  • A topic has been created.
  • A topic policy has been set.
  • A subscriber, that is, an email or SMS message recipient has been added for the topic.

Precautions

You can create a maximum of 1000 alarm action rules. If this number has been reached, delete unnecessary rules.

Procedure

  1. On the menu bar, choose Monitoring Center.
  2. In the navigation pane, choose Alarm Management > Alarm Action Rules.
  3. On the Action Rules tab page, click Create.
  4. Set parameters such as Rule Name and Action Type by referring to Table 1.

    Table 1 Parameters of an alarm action rule

    Parameter

    Description

    Rule Name

    Action rule name. Enter up to 100 characters. Only digits, letters, and underscores (_) are allowed. Do not start or end with an underscore.

    Description

    Description of the action rule. Enter up to 1024 characters.

    Action Type

    Type of action that is associated with the SMN topic and message template. Select your desired action from the drop-down list. Currently, only Notification is supported.

    Topic

    SMN topic. Select your desired topic from the drop-down list.

    If there is no topic you want to select, create one on the SMN console.

    Message Template

    Notification message template. Select your desired template from the drop-down list.

    If there is no message template you want to select, create one by referring to Creating a Message Template.

  1. Click OK.

More Operations

After an alarm action rule is created, you can perform operations described in Table 2.

Table 2 Related operations

Operation

Description

Modifying an alarm action rule

Click Modify in the Operation column.

Deleting an alarm action rule

  • To delete a single rule, click Delete in the Operation column in the row that contains the rule, and then click Yes on the displayed page.
  • To delete one or more rules, select them, click Delete above the rule list, and then click Yes on the displayed page.
    NOTE:

    Before deleting an alarm action rule, you need to delete the alarm rule bound to the action rule.

Searching for an alarm action rule

Enter a rule name in the search box in the upper right corner and click .