Alert notification

更新时间:
复制 MD 格式

After integrating Alibaba Cloud Captcha, set up monitoring rules and subscribe to alert notifications to detect anomalies in your Captcha traffic. When thresholds are breached, Captcha sends alerts via phone call, SMS, DingTalk, email, and more.

The setup has two parts:

  1. Configure monitoring rules in the Captcha console.

  2. Create alert contacts and subscribe to CloudMonitor notifications.

Prerequisites

Before you begin, ensure that you have:

Configure monitoring rules

Monitoring rules define which metrics to watch, the time window, and the threshold that triggers an alert. Captcha tracks four metrics:

MetricWhat it measures
Initialization volumeTotal number of Captcha initialization requests received
Verification volumeTotal number of verification attempts submitted by users
Interception volumeTotal number of requests blocked by Captcha
Interception rateRatio of blocked requests to total requests, expressed as a percentage
For data compliance, call data from the Chinese Mainland and outside the Chinese Mainland are counted separately. Alert notification data cannot be merged across regions.

Add a monitoring rule

You can add a maximum of 15 monitoring rules.

  1. Log on to the Captcha 2.0 console.

  2. In the left-side navigation pane, click Alert Notifications.

  3. In the Configure Monitoring Rules section, click Add, configure the following fields, and then click Save.

FieldDescription
RegionSelect Chinese Mainland or Outside Chinese Mainland.
Scenario NameSelect the scenario to monitor.
Time WindowSelect Last 24 Hours or Last 1 Hour.
RuleSelect a rule type. See Rule types below.
ThresholdEnter a positive integer from 1 to 99,999.
StatusEnable the toggle to activate the rule.

Rule types

Choose a rule based on what you want to detect:

24-hour absolute volume rules — alert when a metric exceeds a fixed threshold over the past 24 hours:

  • Last 24 hours initialization/verification/interception volume greater than: triggers when the volume exceeds the threshold.

  • Last 24 hours interception rate greater than: triggers when the interception volume exceeds 1,000 and the interception rate exceeds the threshold.

1-hour growth rate rules — alert when a metric spikes compared to the previous hour:

  • Last 1 hour initialization/verification/interception volume growth rate greater than: triggers when the volume in the last hour exceeds 100 and the growth rate compared to the previous hour exceeds the threshold.

  • Last 1 hour interception rate growth rate greater than: triggers when the interception rate increase compared to the previous hour exceeds the threshold.

1-hour decrease rate rules — alert when a metric drops compared to the previous hour:

  • Last 1 hour initialization/verification volume decrease rate greater than: triggers when the volume in the last hour exceeds 100 and the decrease rate compared to the previous hour exceeds the threshold.

High-frequency alerts are subject to a 10-minute suppression by default — duplicate alerts within a 10-minute window are not sent. To extend this suppression window, configure a suppression time greater than 10 minutes when setting up your CloudMonitor subscription policy.

Manage monitoring rules

To disable a rule, turn off the toggle image in the Status column.

To delete a rule, click image in the Actions column.

Configure alert notifications

To receive alerts, create alert contacts and contact groups in CloudMonitor, then subscribe to Captcha monitoring notifications.

Create alert contacts and contact groups

If you have already configured alert contacts and contact groups in CloudMonitor, skip to Subscribe to Captcha alerts.

  1. In the Alert Notification Configuration area, click Create Contact and Contact Group to open the CloudMonitor console.

  2. Create an alert contact:

    1. On the Alert Contacts tab, click Create Alert Contact.

    2. In the Set Alert Contact panel, configure the following parameters:

      ParameterDescription
      NameContact name. Must start with a letter and be 2–40 characters. Accepts letters, digits, periods (.), and underscores (_).
      Region for Alert Notification ServiceRegion where contact data (name, email address) is stored and processed.
      PhoneMobile phone number. Only numbers with country code 86 support SMS alerts.
      Email IDEmail address of the contact.
      DescriptionOptional description.
      DingTalk | Lark | WeCom | Slack webhook URLWebhook URL for the contact. Must start with http:// or https://. Click Test to verify connectivity before saving.
      Language of alert notificationsDefaults to Automatic, which matches the language of your Alibaba Cloud account.
    3. Click OK.

    4. Activate the contact's email address. The email address starts in Pending Activation state. The contact must click the activation link in the email within 24 hours. After activation, the email address appears in the contact list and alerts can be delivered.

    5. (Optional) Activate the email address and mobile phone number of the alert contact.

      If you set an email address and a mobile phone number for an alert contact, their status is Pending Activation by default. The alert contact must click the activation link in the email and text message within 24 hours. Otherwise, the contact cannot receive alert notifications. After activation, the mobile phone number and email address of the alert contact appear in the alert contact list.

  3. Create an alert contact group:

    1. Log on to the CloudMonitor console.

    2. In the left-side navigation pane, choose Alerts > Alert Contacts.

    3. Click the Alert Contact Group tab, then click Create Alert Contact Group.

    4. Enter a name for the group, add contacts, and click Confirm.

  4. (Optional) Add multiple contacts to a group in bulk:

    1. Log on to the CloudMonitor console.

    2. In the left-side navigation pane, choose Alerts > Alert Contacts.

    3. On the Alert Contacts tab, select the contacts to add.

    4. Click Add to Contact Group, select the target group, and click OK.

Subscribe to Captcha alerts

Subscribe to Captcha system events in CloudMonitor to start receiving alert notifications. Alerts are delivered via the channels you configure (phone call, SMS, DingTalk, email, and more).

CloudMonitor alert notifications may incur charges. For details, see Billing overview.
Note

We recommend using DingTalk and text messages for alert notifications. DingTalk can be used for free, and alert text messages provide a free usage quota, which helps you save costs effectively. For more information about billing for other CloudMonitor alert methods, see Billing overview.

  1. In the Subscribe to Monitoring Notifications area, click Subscribe Now to open the CloudMonitor console.

  2. On the Create Subscription Policy page, configure the following:

    Basic information

    FieldValue
    NameA descriptive name, for example, Information verification abnormal alert.
    DescriptionOptional.

    Alert subscription

    FieldValue
    Subscription typeSelect System Events.
    ProductsSelect Captcha.
    Event typeSelect Captcha > Abnormal.
    Event nameLeave blank.
    Event levelLeave blank.
    Application groupingLeave blank.
    Event contentLeave blank.
    Event resourcesLeave blank.

    Combined noise reduction

    FieldValue
    Merge contentLeave blank.
    Noise reductionTo extend the default 10-minute suppression window, enter a value greater than 10 minutes. Otherwise, leave blank to use the default.

    Notification

    FieldValue
    Notification configurationSelect the alert contacts or contact groups to notify.
    Custom notification methodCustomize delivery channels if needed, or keep the defaults.
    Push channelOptional.

What to do when you receive an alert

After completing the setup, alerts are sent to your contacts when Captcha metrics exceed the configured thresholds. When you receive an alert:

  • Check the metric details in the Data Report section of the Captcha console to understand the scope of the anomaly.

  • Review your scenario configuration if interception rates spike unexpectedly.

  • Contact Alibaba Cloud support if the anomaly cannot be explained by traffic patterns.