Event Center
Serverless App Engine provides the Event Center, a feature dedicated to efficiently and flexibly handling various events from applications and tasks. This helps simplify your O&M processes. This topic describes how to view these events and create event subscription rules.
Background information
In SAE, events are primarily generated from three sources: runtime events, change events, and events generated by system-level operations. These events do not require manual configuration because the system automatically generates them and triggers corresponding actions based on predefined rules.
SAE also provides an event notification feature to send application or job runtime events, change events, or system-generated events to users of subscription rules through DingTalk, SMS, email, WeCom, and Lark. This lays a solid foundation for timely responses and automated O&M. The process is as follows:
When an application or task generates an event, SAE filters the event based on your subscription rules and pushes it through your configured event notification channels.
Features
Event levels
Events are classified into three levels, as described in the following table.
Event level | Description |
INFO | This level indicates general informational messages, not issues or errors. It records the normal processes, state changes, or successful operations for an application or job. |
WARNING | This level indicates a potential issue or a deviation from expected behavior. While these events do not halt operations, they require attention to prevent more serious problems. |
CRITICAL | This is the highest alert level, indicating a severe error that could cause system crashes, data loss, or other catastrophic failures. These events require immediate action. |
Event types
Event types vary by source. The following table provides details for each.
Event source | Resource type | Event type |
runtime event | microservice application | Health check failed, instance restart, OOM, auto scaling, job execution succeeded, job execution failed, image pull failed, insufficient available IPs, deadlock, uneven traffic, abnormal JVM metrics, new exception, sudden increase in error rate, sudden increase in RT, sudden increase in QPS, sudden increase in TopN API error rate, sudden increase in TopN RT, sudden increase in TopN exception rate, microservice graceful shutdown, instance count approaching auto scaling minimum, instance count approaching auto scaling maximum. |
web application | Image pull failed, scale-out succeeded, scale-in succeeded, scale-out failed. | |
change event | microservice application | Update/deployment succeeded, health check failed, image pull failed, manual phased release not executed, release failure. |
web application | Update/deployment succeeded, health check failed, image build failed, version traffic shift succeeded, version traffic shift failed. | |
system event | microservice application | CLB configuration conflict check, gateway route configuration conflict check, instance pending migration, instance auto-migration succeeded. |
Prerequisites
You have created a microservice application or a job.
Query events
Log on to the SAE console. In the left-side navigation pane, choose .
On the Event Query tab, filter events based on the following criteria and click Query.
(Optional) Specify the following filter criteria.
Event Source: You can filter events by runtime event, change event, or system event. If you do not select an event source, events from all sources are returned by default.
Resource Type: You can filter events generated by web applications and microservice applications. If you do not filter by resource type, events from all resource types are returned by default.
Event Type: Select an event type from the drop-down list as needed. If you do not make a selection, events of all types are returned by default.
Event Level: You can filter events by level: INFO, WARNING, or CRITICAL. For details, see the event levels. If you do not select a level, events of all levels are returned by default.
Region: Select the region where your application or job resides. If you do not select a region, events from applications or jobs in all regions are returned by default.
Turn on the Show Advanced Options switch to filter by a specific application.
Namespace: After selecting a region, you can select a namespace from the drop-down list. Otherwise, you must manually enter the namespace name.
Application: After you select a namespace, you can select an application or job from the drop-down list. Otherwise, you must manually enter its name.
NoteBy default, the query returns events from the last week. You can also customize the time range.
In the search results, find the event you want to inspect and click View in the Actions column. The event details are displayed in JSON format.
Based on the event's level and details, take appropriate action on the affected application or job, such as fixing the issue, optimizing its performance, pausing it, or enhancing monitoring.
Create a subscription rule
You can create a subscription rule in one of two ways:
Subscription Rule tab
On the Event Center page, click the Subscription Rule tab and then click Create Subscription Rule.
In the Create Subscription Rule panel, configure the event subscription rule and click Next.
Parameters include Rule Name, Event Source (for example, runtime event), Resource Type (for example, microservice application), and Event Type (for example, health check failed, a WARNING-level event).
NoteDescription of the Applicable Resources parameter:
If you do not select a target namespace, you cannot filter by application or job.
After you select a target namespace, you can select All Applications and Jobs, All Applications, All Jobs, or a specific application or job.
Description of the Check Cycle and Notification Threshold parameters:
These two parameters work together. They specify that an event must occur a certain number of times within a set period to trigger a notification. For example, if you set the check cycle to 1 minute and the notification threshold to 3, a notification is sent only if the same event occurs three or more times for an application or job within one minute.
Configure the notification targets and click Submit.
If you do not enable the rule during creation, you must enable it on the Subscription Rule tab after the rule is created.
NoteSAE provides five event notification methods. You can select one or more.
DingTalk: In the contact settings, configure the webhook URL for the DingTalk chatbot.
WeCom: In the contact settings, configure the webhook URL for the WeCom chatbot.
Lark: In the contact settings, configure the webhook URL for the Lark chatbot.
Email: In the contact settings, configure an email address, such as
****@example.com.SMS: You have a daily quota of 15 free SMS notifications. Additional notifications are not sent. To use SMS notifications on a pay-as-you-go basis, you must activate ARMS alert management and understand the billing rules for alert rules.
You can add one or more contacts. If a contact does not yet exist, click Create Contact to create one.
This example shows how to configure and test a health check failed event to verify that you receive an alert when an application's health check fails.
NoteAlert notifications may be slightly delayed.
This example uses DingTalk, WeCom, and Lark for alert testing.
DingTalk chatbot alert
WeCom chatbot alert
Lark chatbot alert



Event Query tab
If you create a subscription rule from this tab, the Event Source, Resource Type, Event Type, and Applicable Resources fields are automatically populated based on the selected event. You can modify these default settings.
On the Event Query tab, search for the target event.
Click Subscribe in the Actions column of the target event.
In the Create Subscription Rule panel, configure the event subscription rule and click Next.
Parameters include Rule Name, Event Source (for example, runtime event), Resource Type (for example, microservice application), and Event Type (for example, health check failed, a WARNING-level event).
NoteDescription of the Applicable Resources parameter:
If you do not select a target namespace, you cannot filter by application or job.
After you select a target namespace, you can select All Applications and Jobs, All Applications, All Jobs, or a specific application or job.
Description of the Check Cycle and Notification Threshold parameters:
These two parameters work together. They specify that an event must occur a certain number of times within a set period to trigger a notification. For example, if you set the check cycle to 1 minute and the notification threshold to 3, a notification is sent only if the same event occurs three or more times for an application or job within one minute.
Configure the notification targets and click Submit.
If you do not enable the rule during creation, you must enable it on the Subscription Rule tab after the rule is created.
NoteSAE provides five event notification methods. You can select one or more.
DingTalk: In the contact settings, configure the webhook URL for the DingTalk chatbot.
WeCom: In the contact settings, configure the webhook URL for the WeCom chatbot.
Lark: In the contact settings, configure the webhook URL for the Lark chatbot.
Email: In the contact settings, configure an email address, such as
****@example.com.SMS: You have a daily quota of 15 free SMS notifications. Additional notifications are not sent. To use SMS notifications on a pay-as-you-go basis, you must activate ARMS alert management and understand the billing rules for alert rules.
You can add one or more contacts. If a contact does not yet exist, click Create Contact to create one.
This example shows how to configure and test a health check failed event to verify that you receive an alert when an application's health check fails.
NoteAlert notifications may be slightly delayed.
This example uses DingTalk, WeCom, and Lark for alert testing.
DingTalk chatbot alert
WeCom chatbot alert
Lark chatbot alert



Related operations
On the Subscription Rule tab, find the rule you want to manage and then select one of the following actions: Clone, Edit, Enable, Disable, or Delete.