Skip to main content
Huawei Cloud Application Operations Management (AOM) can send triggered and recovered alerts to Flashduty On-call through Simple Message Notification (SMN) or webhook data subscriptions. Both methods use the same AOM integration push URL.
Use SMN notifications for most accounts. AOM webhook data subscription is not generally available and should only be used when Huawei Cloud has enabled it for your account.

Create an integration in Flashduty On-call

Use either of the following methods to obtain an integration push URL.

Use a dedicated integration

Use this method when you do not need to route alerts to different channels.
  1. In the Flashduty console, select Channels and open the target channel.
  2. Select Configuration → Integrations → Private integration, then click Add integration.
  3. Select Huawei Cloud AOM and click Save.
  4. Open the generated integration card and copy the push URL.

Use a shared integration

Use this method when you need to route alerts to different channels based on their payload.
  1. In the Flashduty console, select Integration Center → Alert events.
  2. Select Huawei Cloud AOM and enter an integration name.
  3. Configure the default route and select a channel. You can add more routing rules under Routes after creating the integration.
  4. Click Save and copy the generated push URL.

Prerequisites

  • You have created a Huawei Cloud AOM integration in Flashduty and obtained its HTTPS push URL.
  • You have created or prepared an AOM alarm rule.
  • To use SMN, your Huawei Cloud account can create topics, subscribe endpoints, and list topics.
  • The alarm rule sends notifications for both alarm triggered and alarm recovered.

Method 1: Use SMN

1

Create a topic and an HTTPS subscription in Huawei Cloud SMN

Where: Huawei Cloud console › Simple Message Notification (SMN) › Topic Management › Topics › Create TopicAfter saving, click Add Subscription on the Flashduty topic:
Create a Flashduty topic in Huawei Cloud SMN
Add the Flashduty HTTPS endpoint to an SMN topic
Flashduty verifies the SMN confirmation request and automatically visits the Huawei Cloud confirmation URL. SMN starts sending alerts after the subscription status changes to Confirmed.
2

Create a message template in Huawei Cloud AOM

Where: Huawei Cloud AOM 2.0 console › Alarm Center › Alarm Notifications › Message Templates › Create Message TemplateIn some console versions, the path is Alarms › Alarm Action Rules › Message Templates.Flashduty supports the following content formats:
HTML templates can be in Chinese or English. Add the report type as the first line so that Flashduty can reliably distinguish triggered and recovered alerts.Chinese template
English template
Put each field on a separate line and keep the trailing semicolon. A resource identifier can span multiple lines. Flashduty parses its key-value pairs into labels.
3

Create an alarm notification rule in Huawei Cloud AOM

Where: Huawei Cloud AOM 2.0 console › Alarm Center › Alarm Notifications › Notification Rule Management › Create Alarm Notification RuleEnable notifications in the AOM alarm rule and make sure that the notification scenarios include both alarm triggered and alarm recovered.
4

Trigger an alert and confirm

Where: Huawei Cloud AOM 2.0 console › Alarm Center › Alarm RulesTrigger a test alert and then recover it. In Flashduty, verify that the integration’s latest event time has changed and that the alert details contain the expected severity, resource, and recovery status.

Method 2: Use an AOM webhook data subscription

AOM webhook data subscription is not generally available. If the webhook alarm subscription option is not available in your console, submit a Huawei Cloud service ticket or use SMN instead.
If Huawei Cloud has enabled this feature for your account, create a webhook alarm subscription and set its destination to the same Flashduty AOM integration push URL ({integration_url}). Where: Huawei Cloud AOM 2.0 console › Settings › Global Settings › Data Subscription › Create Subscription Rule (set the subscription content to Webhook) The webhook request must use the official AOM structured event format:
A request can contain up to 100 events. Each structured event must contain a valid id, starts_at, and all six required metadata fields.

Correlate triggered and recovered alerts

Flashduty detects recovery in the following order: For Huawei Cloud message templates, the Chinese clear_type values are 触发 and 恢复, and the English values are generated and cleared. Flashduty uses these values first to distinguish triggered and recovered alerts.
If an SMN HTML message does not contain a recognized report type, a subject containing 恢复, _resolved, _recovered, or _clear is treated as a recovery.
The following fields must remain the same between a triggered alert and its recovery:
  • metadata.event_type
  • metadata.event_name
  • metadata.resource_provider
  • metadata.resource_type
  • metadata.resource_id
Flashduty generates the alert fingerprint from these fields. The id is stored as a label but does not participate in correlation, so triggered and recovered notifications may have different IDs. If two independent alerts have identical values for all five fields, Flashduty treats them as the same alert. Make sure that metadata.event_name or metadata.resource_id distinguishes alerts that must be handled separately.

Field and severity mappings

Common AOM fields are converted into Flashduty labels: Severity mapping:

Troubleshooting

Make sure that the endpoint is the complete HTTPS integration push URL and that its integration_key has not been changed. Flashduty only visits valid Huawei Cloud HTTPS confirmation URLs.
The SMN signature is bound to the message body, message ID, subject, topic, timestamp, and message type. Changing any of these fields invalidates the original signature. Send a real test notification through AOM and SMN instead of modifying a historical request.
Make sure that the alarm rule sends recovery notifications. Add ${clear_type} to an HTML template. For SMN JSON, Flashduty first checks for an ends_at value greater than 0 and falls back to the subject when the value is missing, empty, or 0. A webhook data subscription must provide an ends_at value greater than 0. Also verify that the five correlation fields are identical in the triggered and recovered events.
SMN JSON is carried in the message field of an SMN notification, whose outer object still contains a signature and subject. A webhook data subscription directly sends an {“events”:[…]} object without SMN fields. Do not combine both outer formats in one request.

Huawei Cloud references