Database Autonomy Service (DAS) provides the event subscription feature. After you enable the event subscription feature for a database instance, you can receive a notification every time a subscribed event is triggered. You can specify a notification method based on your business requirements.
Prerequisites
The database instance that you want to manage is of one of the following types:
ApsaraDB RDS for MySQL
ApsaraDB MyBase for MySQL
ApsaraDB for Redis
ApsaraDB RDS for PostgreSQL
PolarDB for MySQL Standard Edition or Cluster Edition
Background information
In the autonomy center of DAS, you can query events that occurred within a specific time range, such as exceptions, optimization suggestions, and auto scaling events. For more information about the autonomy center and how to use its features, see Autonomy center.
Procedure
- Log on to the DAS console.
- In the left-side navigation pane, click Instance Monitoring.
- Find the database instance that you want to manage and click the instance ID. The instance details page appears.
In the left-side navigation pane of the instance details page, click Autonomy Center. In the upper-right corner of the page that appears, click Autonomy Service Settings.
On the Event Subscription Settings tab of the Autonomous Function Management panel, turn on Enable Subscription Service and configure the parameters that are described in the following table.
Parameter
Description
Urgency
The lowest severity level of events for which DAS sends notifications. After an event at or above this level occurs, DAS sends a notification. Valid values:
Critical: events that affect the operation of databases.
Warning: events that may affect the operation of databases.
Optimize: events for which optimization suggestions are generated based on the status of databases.
Notification: database exceptions for which no suggestions are generated.
Select Contacts/Contact Groups
The alert contacts or alert groups to which DAS sends notifications. Select one or more alert contacts or alert groups in the Existing Contacts/Contact Groups section and click the icon to add the alert contacts or alert groups to the Selected Contacts/Contact Groups section.
Notification Method
The method that DAS uses to send notifications. Valid values:
SMS
Webhook
SMS + Webhook
SMS + Email
NoteWebhook is supported for DingTalk, WeCom, Lark, and Application Real-Time Monitoring Service (ARMS).
Notification Language
The language of the notification. Only Chinese is supported.
Minimum Notification Interval
The minimum interval between two notifications for the same event. If an event persists after DAS sends a notification about this event, DAS sends the notification again only after this interval ends.
Click OK.
Related API operations
Operation | Description |
Configures the event subscription settings of a database instance. | |
Queries the event subscription settings of a database instance. | |
Queries the details of events of a database instance. | |
Queries the events of one or more severity levels within a period. |