You can create a notification template to quickly set alert rules for business targets in batches.
Procedure
Log in to the OceanBase Cloud console.
In the left-side navigation pane, click Alerts.
Enter the Alert Management page and click the Alert Notification Templates tab.
On the Alert Notification Template tab, click Create Notification Template.
Configure the following template rules and click Create.
Parameter Description Template Name Specifies the name of the alert notification template. Notification Method Specify the alert notification method. Supports email, DingTalk, Lark, Telegram, and custom webhooks. Alert Type Select Instance or Tenant. Notification Effective Period The start and end times of the effective period must be on the same day and the start time must be earlier than the end time. If you do not specify the effective period, the alert rule takes effect 24 hours a day. Alert Notification Template Title The title displayed in alert notifications. You can use the ${alertName}format to input variables, where alertName represents the alert name.Note
The maximum length is 50 characters, which also applies to the parsed content of the input variables. Excess characters will be truncated.
Alert Notification Template Content The content displayed in an alert notification. You can preview and test the sending of the content on the right. You can enter variables in the format of ${alertName}, where alertName represents the name of the alert. For more information about the supported variables, see Alert variables.Note
The maximum length is 500 characters, which also applies to the parsed content of the input variables. Excess characters will be truncated.
Alert Resolution Notification Template Title The title displayed in alert resolution notifications. You can use the ${alertName}format to input variables, where alertName represents the alert name.Note
The maximum length is 50 characters, which also applies to the parsed content of the input variables. Excess characters will be truncated.
Alert Resolution Notification Template Content The content displayed in the alert resolution notification. You can preview and test the sending of the content on the right. You can enter variables in the format of ${alertName}, where alertName represents the name of the alert. For more information about the supported variables, see Alert variables.Note
The maximum length is 500 characters, which also applies to the parsed content of the input variables. Excess characters will be truncated.
After the alert rule is created, you can view and manage it in the list.
Alert variables
The following variables are supported in alert notifications:
| Variable | Description |
|---|---|
| ${AlertName} | The name of the alert. |
| ${AlertLevel} | The level of the alert. |
| ${MetricNames} | The name of the alert metric. |
| ${AlertStartTime} | The time when the alert was triggered. |
| ${AlertUpdateTime} | The time of the last alert. |
| ${AlertResourceInfo} | The description of the alert object. |
| ${AlertSummary} | The summary of the alert. |
| ${AlertDescription} | The description of the alert. |
| ${AlertDetailUrl} | The link to the alert. |