Configuring Event Notification Rules
This section describes how to configure event notification rules. If you have configured event notification rules, notifications will be sent when instance scheduling, health check, image pull, volume mounting, or container startup succeeds or fails. In this way, you can handle alarms in a timely manner.
![](https://support.huaweicloud.com/intl/en-us/usermanual-cae/public_sys-resources/note_3.0-en-us.png)
- You can configure up to 50 event notification rules.
- The Simple Message Notification (SMN) service is charged separately. For details, see Pricing Details.
Data Privacy Statement
- The SMN service encrypts and saves the subscription endpoint information of the DingTalk robot, Lark robot, and WeCom chatbot entered by users in the database so that SMN can send messages to DingTalk, Lark, and WeCom groups.
- SMN does not use the subscription endpoint information for other purposes except sending group messages.
- After a user deletes a subscription endpoint, SMN permanently deletes the subscription endpoint information from the database.
Creating an Event Notification Rule
- Log in to CAE.
- Choose System Settings.
- Click Edit in the Event Notification Rules module.
- Click Create Event Notification Rule and configure basic information by referring to Table 1.
Table 1 Configuring basic information Parameter
Description
Name
Enter an event notification rule name. The name cannot be changed after creation.
The value starts and ends with a letter and contains 1 to 64 characters, including letters, digits, hyphens (-), and underscores (_).
Trigger Event
Select an event that triggers notification from the drop-down list.
- Health checked
- Health check failed
- Image pulled
- Pull image failed
- Container started up
- Container startup failed
- Volume mounted
- Attach volume failed
Effected Components
- All in the environment: The rule takes effect for all components in the environment.
- All in the application: The rule takes effect for all components in the selected application.
NOTE:
All in the environment and All in the application policies also take effect for newly added components.
- Some: The rule takes effect for the selected components.
NOTE:
Components in the Not deployed state cannot be selected.
Alarm Policy
- Trigger Mode: Select Accumulative or Immediate.
- Monitor for: Set this parameter when Trigger Mode is set to Accumulative.
- 5 minutes
- 20 minutes
- 1 hour
- 4 hours
- 24 hours
- Occurrences: Set this parameter when Trigger Mode is set to Accumulative.
Value range: 1 to 100. The operators > and ≥ are supported.
- Configure the event notification sending mode and endpoint address.
- WeCom chatbot: Enter a webhook address starting with https://qyapi.weixin.qq.com/cgi-bin/webhook/send.
- WeCom chatbot is an OBT function. If you want to configure event notification for it, submit a service ticket to apply for OBT qualification from Huawei Cloud. After the application is approved, you can create event notification rules.
- For details about how to obtain a WeCom subscription endpoint, see How Does DingTalk, Lark, or WeCom Chatbot Obtain Subscription Endpoints?
- Emails: Enter an email address, for example, 12345678@163.com.
- SMS: Enter the subscription endpoint address, for example, 13900000000.
- WeCom chatbot: Enter a webhook address starting with https://qyapi.weixin.qq.com/cgi-bin/webhook/send.
- Click OK.
After creation, click the subscription confirmation link in the email or SMS to confirm the subscription. Otherwise, SMN cannot send messages when the trigger conditions are met.
Editing an Event Notification Rule
- Log in to CAE.
- Choose System Settings.
- Click Edit in the Event Notification Rules module.
- Select the target rule and click Edit in the Operation column.
- Edit the event notification rule again by referring to Table 2.
Table 2 Editing an event notification rule Parameter
Description
Trigger Event
Select an event that triggers notification from the drop-down list.
- Health checked
- Health check failed
- Image pulled
- Pull image failed
- Container started up
- Container startup failed
- Volume mounted
- Attach volume failed
Effected Components
- All in the environment: The rule takes effect for all components in the environment.
- All in the application: The rule takes effect for all components in the selected application.
NOTE:
All in the environment and All in the application policies also take effect for newly added components.
- Some: The rule takes effect for the selected components.
NOTE:
Components in the Not deployed state cannot be selected.
Alarm Policy
- Trigger Mode: Select Accumulative or Immediate.
- Monitor for: Set this parameter when Trigger Mode is set to Accumulative.
- 5 minutes
- 20 minutes
- 1 hour
- 4 hours
- 24 hours
- Occurrences: Set this parameter when Trigger Mode is set to Accumulative.
Value range: 1 to 100. The operators > and ≥ are supported.
- Click OK.
After editing, the event notification rule is enabled.
Deleting an Event Notification Rule
- Log in to CAE.
- Choose System Settings.
- Click Edit in the Event Notification Rules module.
- Select the target rule and click Delete in the Operation column.
- If Deleted is displayed, the rule is deleted.
Viewing an Event Notification Rule
- Log in to CAE.
- Choose System Settings.
- Click Edit in the Event Notification Rules module.
- On the event notification rule details page, you can view the name, status, and configuration of the created event notification rules.
Enabling or Disabling an Event Notification Rule
You can enable or disable a created event notification rule.
- Log in to CAE.
- Choose System Settings.
- Click Edit in the Event Notification Rules module.
- In the event notification rule list, select a rule and click the button in the Status column.
indicates that the rule is enabled.
indicates that the rule is disabled.
- If Event notification rule updated is displayed, the rule is enabled or disabled.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot