To ensure the stable running of your business in ECS and achieve automated O&M, we recommend that you set event notifications to monitor changes in the underlying environments. This topic describes how to subscribe to event notifications in the CloudMonitor console.
Procedure
Result
After event notifications are set, ECS sends notifications based on the notification
method you specified. The following example shows a non-customized event notification
in JSON format. The notification is sent when the status of the ECS instance changes.
{
"eventTime": "20181226T220114.058+0800",
"id": "9435EAD6-3CF6-4494-8F7A-3A********77",
"level": "INFO",
"name": "Instance:StateChange",
"product": "ECS",
"regionId": "cn-hangzhou",
"resourceId": "acs:ecs:cn-hangzhou:169070********30:instance/i-bp1ecr********5go2go",
"userId": "169070********30",
"ver": "1.0",
"content": {
"resourceId": "i-bp1ecr********5go2go",
"resourceType": "ALIYUN::ECS::Instance",
"state": "Stopping"
}
}