Alert Notifications sends alerts to you when abnormal metrics or events are detected in your Agora RTC projects. You can receive the alerts through e-mails or API callbacks and take action accordingly.
Alert Notifications provides the following features:
To access the Alert Notifications page, do the following:
An alert rule consists of three parts: associated product, rule settings, and notification type.
This section introduces how to create, enable, edit, and delete an alert rule. It also provides parameter descriptions for alert callbacks.
To create an alert rule, do the following:
Item | Description | Limitations |
---|---|---|
Associated project | The project to which the rule applies. | Each individual rule can only be associated with one project. |
Rule name | A name for the rule. | Rules associated with the same project must have unique names. |
Alert type | Choose one of the following: |
/ |
Alert granularity | Choose one of the following: |
User is the only option for event alerts. |
Rule description | The conditions that must be met to trigger an alert. For instance, the combination of Audio Freeze Rate, 20s Cycle, Lasts for 2 cycles, >=, and 10% indicates: The audio freeze rate is calculated every 20 seconds; if the calculated value equals or exceeds 10% for two continuous 20-second cycles, the alert is triggered. To monitor multiple metrics or events, add additional rule descriptions. You can set the operator between different rule descriptions as "AND" or "OR". |
The maximum number of rule descriptions per rule is 20. |
Silent period | The time period after an alert during which the alert is not triggered even if the same alert rule is met again. In this case, "the same alert rule" means that both the alert granularity and the applicable rule description are identical. | / |
Effective period | The time period during which the alert can be triggered. | / |
Scope | Choose one of the following: |
/ |
Set advanced filters | Predefined filters that help increase the precision of alerts. Click the button to edit or disable the default settings. | / |
Alert level | Choose one of the following: |
/ |
Notification type | Choose one or both: |
A maximum of 500 alert emails can be sent per account per day. The number of emails is calculated based on the total recipients. For example, if two contacts are set to receive alert emails and the rule is triggered 20 times during the day, Agora counts the number of sent emails as 40. |
Email note | The message contained in emails of alert notifications. | Notification type must be Email for this item to appear. |
WeCom bot webhooks | The webhook URL for the WeCom bot. | Notification type must be WeCom bot for this item to appear. |
Alert contacts | Email addresses set to receive alerts. | The maximum number of alert contacts per rule is five. |
Notification language | The language of the alert notification. | / |
Timezone | The timezone displayed in the alert notification. | / |
Alert callbacks | A publicly accessible URL that receives HTTP requests. You can take further action according to the alert information in these requests. See Alert callback parameters. | See Alert callback parameters. |
A newly created alert rule is disabled by default. To enable a rule, do the following:
To enable a group of rules all at once, check the box next to the name of each rule, and click Enabled.
To edit a rule, do the following:
On the top of the page, click Alert rules.
Find the rule you want to edit, and click Edit in the Operation column.
If you did not create this rule, a pop-up window appears. Read the text, and click OK.
Make your changes, and click OK.
To delete a rule, do the following:
To delete a group of rules all at once, check the box next to the name of each rule, and then click Delete.
If you create an alert callback for an alert rule, Agora sends requests to the URL you provide when the rule is triggered. Currently, the alert callback function has the following limitations:
Alert information is sent to you through HTTP POST methods in JSON format. The following sections provide parameter descriptions and request examples for your reference.
Metric alert
If the alert granularity is set as Channel:
{
"alertTime":"1631703720000", // The timestamp (seconds) when the alert is sent
"timeZone":"UTC+8", // The timezone you set for the rule
"projectName":"test", // Your Agora project name
"cname":"d1********02", // The channel name
"enContent":"video freeze rate≥85%", // Alert information("cnContent" means Chinese, and "enContent" means English)
"currentUserNum":"2", // The number of users in the channel
"currentHostNum":"1", // The number of hosts in the channel
"callId":"61********e5", // The call ID
"url":"https://console.agora.io/analytics/call/qoe?id=61********e5", // The corresponding Call Inspector page
"remark":"Video freeze" // The email note you set for the rule
}
If the alert granularity is set as User:
{
"alertTime":"1631780400000", // The timestamp (seconds) when the alert is sent
"timeZone":"UTC+8", // The timezone you set for the rule
"projectName":"test", // Your Agora project name
"cname":"97********e1", // The channel name
"uid":"95****96", // The user ID
"enContent":"video freeze rate≥10%", // Alert information("cnContent" means Chinese, and "enContent" means English)
"currentUserNum":"2", // The number of users in the channel
"currentHostNum":"2", // The number of hosts in the channel
"callId":"61********0e", // The call ID
"url":"https://console.agora.io/analytics/call/qoe?id=61********0e", // The corresponding Call Inspector page
"remark":"Video freeze" // The email note you set for the rule
}
Event alert
{
"alertTime":"1631785450000", // The timestamp (seconds) when the alert is sent
"timeZone":"UTC+8", // The timezone you set for the rule
"projectName":"test", // Your Agora project name
"cname":"t****e", // The channel name
"uid":"6****1", // The user ID
"enContent":"no frame sending,no voice sending,no voice receiving,wifi congestion,system CPU utility too high", // Alert information("cnContent" means Chinese, and "enContent" means English)
"currentUserNum":"100", // The number of users in the channel
"currentHostNum":"1", // The number of hosts in the channel
"callId":"61********f5", // The call ID
"url":"https://console.agora.io/analytics/call/qoe?id=61********f5", // The corresponding Call Inspector page
"remark":"Abnormal events" // The email note you set for the rule
}
Alert contacts lists the contacts you have created for all alert rules. For an individual alert rule, only the contacts you add for the rule receive notifications when the rule is triggered.
This section introduces how to create, edit, and delete a contact.
To create a contact, do the following:
Note the following limitations when creating a contact:
To edit a contact, do the following:
To delete a contact, do the following:
To delete a group of contacts all at once, check the box next to the name of each contact, and then click Delete.
Records of your alert notifications are saved for seven days.
This section introduces how to view and manage alert records.
To view your alert records, do the following:
To manage an alert record, do the following:
To manage a group of alert records all at once, check the box in the first column for each record and click Mark as resolved, Mark as ignored, or Delete.