Enabling Alarm Notifications¶
You can configure alarm rules for WAF to notify you of exceptions by email, SMS messages, or other method you specify, so that you can handle exceptions in a timely manner and keep your website stable.
WAF supports the following notification types:
Events: If the number of attacks on your website reaches or exceeds the threshold within a specified period, WAF will send an alarm notification to you. The alarm notification contains logs of attacks that are blocked or logged only.
Certificate expired: If the certificate in the selected enterprise project is about to expire, WAF will send an alarm notification to you.
Protection rule expired: If a protection rule is about to expire, WAF will send an alarm notification to you.
Currently, alarm notifications can be configured only for CC attack protection rules, precise protection rules, blacklist rules, and whitelist rules.
Constraints¶
Alarm notifications depend on Simple Message Notification (SMN).
Prerequisites¶
You have connected the website you want to protect to WAF.
You have created a topic on the SMN console and the subscription status is confirmed. For details, see Creating a Topic.
If you want to configure event notifications, ensure that you have configured protection rules. For details, see Configuring Protection Policies.
Enabling Alarm Notifications¶
Log in to the management console. In the upper left corner of the page, click
and choose Security > Web Application Firewall.Click
in the upper left corner and select a region or project.In the navigation pane on the left, choose Instance Management > Notifications.
Click Create, configure notification parameters, and click OK.

Figure 1 Create Notification¶
Table 1 Description of notification setting parameters¶ Parameter
Description
Notification Type
Type of the notification.
Events: If the number of attacks on your website reaches or exceeds the threshold within a specified period, WAF will send an alarm notification to you. The alarm notification contains logs of attacks that are blocked or logged only.
Certificate expired: If the certificate in the selected enterprise project is about to expire, WAF will send an alarm notification to you.
Protection rule expired: If a protection rule is about to expire, WAF will send an alarm notification to you.
Currently, alarm notifications can be configured only for CC attack protection rules, precise protection rules, blacklist rules, and whitelist rules.
Notification Name
Name of the alarm notification.
Enterprise Project
Enterprise project for which the notification takes effect.
Notification Topic
The topic for configuring the terminals for receiving alarm notifications. Select an existing topic from the drop-down list or click View Topic and create a topic on the displayed page.
For more details about topics and subscriptions, see Simple Message Notification User Guide.
Interval
Alarm threshold. An alarm is sent when the number of attacks reaches the threshold within the specified interval.
If you select Events for Notification Type, this parameter is mandatory.
Event Type
Event types. By default, all event types are selected. You can customize the event types.
If you select Events for Notification Type, this parameter is mandatory.
Description
(Optional) A description of the purposes of the alarm.
Click OK.
To disable a notification, locate the row containing the notification and click Disable in the Operation column.
To delete a notification, locate the row containing the notification and click Delete in the Operation column.
To modify a notification, locate the row containing the notification and click Modify in the Operation column.