This topic describes the types of Auto Scaling events that ActionTrail records or CloudMonitor or Cloud Config monitors and can be published to EventBridge.
Event types
The following table describes the types of Auto Scaling events that can be published to EventBridge.
Event type | Value of the type parameter |
---|---|
The scale-in activity of a scaling group fails | ess:ScalingActivity:ScaleInError |
The scale-in activity of a scaling group is partially successful | ess:ScalingActivity:ScaleInPartialSuccess |
The scale-in activity of a scaling group is partially successful | ess:ScalingActivity:ScaleInSuccess |
The scale-out activity of a scaling group fails | ess:ScalingActivity:ScaleOutError |
The scale-out activity of a scaling group is partially successful | ess:ScalingActivity:ScaleOutPartialSuccess |
The scale-out activity of the scaling group is successful | ess:ScalingActivity:ScaleOutSuccess |
Operation performed by Alibaba Cloud on a resource | ess:ActionTrail:AliyunServiceEvent |
API operation call | ess:ActionTrail:ApiCall |
Operation performed in a console | ess:ActionTrail:ConsoleOperation |
The scale-in activity of a scaling group fails | ess:CloudMonitor:AUTOSCALING[SCALEINERROR] |
The scale-in activity of a scaling group starts | ess:CloudMonitor:AUTOSCALING[SCALEINSTART] |
The scale-in activity of a scaling group is successful | ess:CloudMonitor:AUTOSCALING[SCALEINSUCCESS] |
The scale-in activity of a scaling group is partially successful | ess:CloudMonitor:AUTOSCALING[SCALEINWARN] |
The scale-out activity of a scaling group fails | ess:CloudMonitor:AUTOSCALING[SCALEOUTERROR] |
The scale-out activity of a scaling group starts | ess:CloudMonitor:AUTOSCALING[SCALEOUTSTART] |
The scale-out activity of a scaling group is successful | ess:CloudMonitor:AUTOSCALING[SCALEOUTSUCCESS] |
The scale-out activity of a scaling group is partially successful | ess:CloudMonitor:AUTOSCALING[SCALEOUTWARN] |
The scaling activity of a scaling group is rejected | ess:CloudMonitor:AUTOSCALING[SCALEREJECT] |
A scheduled task expires | ess:CloudMonitor:AUTOSCALING[SCHEDULETASKEXPIRING] |
Resource change logs are delivered | ess:Config:ConfigurationItemChangeNotification |
A notification that a resource is evaluated as non-compliant is sent | ess:Config:NonCompliantNotification |
For more information about the parameters defined in the CloudEvents specification, see Overview.
The scale-in activity of a scaling group fails
The following example shows the event that EventBridge receives when the scale-in activity of a scaling group fails:
{
"id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
"source": "acs.ess",
"specversion": "1.0",
"subject": "arn:acs:ess:cn-hangzhou:123456789xxxxxxx:scalinggroup/asg-xxxxx",
"time": "2020-11-19T21:04:41Z",
"type": "ess:ScalingActivity:ScaleInError",
"aliyunaccountid": "123456789098****",
"aliyunpublishtime": "2020-11-19T21:04:42Z",
"aliyuneventbusname": "default",
"aliyunregionid": "cn-hangzhou",
"aliyunpublishaddr": "172.25.XX.XX",
"data": {
"cause": "A user changed the Desired Capacity, changing the Total Capacity from \"1\" to \"0\".",
"description": "Fail to remove Instances \"i-xxx\" (code:\"LifecycleActionResult.Abandon\", msg:\"Abandon lifecycleActionResult parameter caused the instance to rollback.\").",
"startTime": "2022-09-06T06:29:23.000Z",
"endTime": "2022-09-06T06:30:10.000Z",
"expectNum": 1,
"requestId": "WOSQ2zMxNTcZOoH1bu****",
"scalingActivityId": "asa-xxx",
"totalCapacity": 1
}
}
The following table describes the parameters contained in data.
Parameter | Type | Example | Description |
---|---|---|---|
cause | String |
| The reason why the scaling activity was triggered. |
description | String | Fail to remove Instances \"i-xxx\" (code:\"LifecycleActionResult.Abandon\", msg:\"Abandon lifecycleActionResult parameter caused the instance to rollback.\")." | The description of the scaling activity. |
startTime | String | 2022-09-06T06:29:23.000Z | The time when the scaling activity started. |
endTime | String | 2022-09-06T06:30:10.000Z | The time when the scaling activity ended. |
expectNum | Int | 1 | The expected capacity of the scaling group after the scaling activity is completed. |
requestId | String | WOSQ2zMxNTcZOoH1b**** | The ID of the request. |
scalingActivityId | String | asa-xxx | The ID of the scaling activity. |
totalCapacity | String | 1 | The capacity of the scaling group after the scaling activity is completed. |
The scale-in activity of a scaling group is partially successful
The following example shows the event that EventBridge receives when the scale-in activity of a scaling group is partially successful:
{
"id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
"source": "acs.ess",
"specversion": "1.0",
"subject": "arn:acs:ess:cn-hangzhou:123456789xxxxxxx:scalinggroup/asg-xxxxx",
"time": "2020-11-19T21:04:41Z",
"type": "ess:ScalingActivity:ScaleInPartialSuccess",
"aliyunaccountid": "123456789098****",
"aliyunpublishtime": "2020-11-19T21:04:42Z",
"aliyuneventbusname": "default",
"aliyunregionid": "cn-hangzhou",
"aliyunpublishaddr": "172.25.XX.XX",
"data": {
"cause": "A user changed the Desired Capacity, changing the Total Capacity from \"2\" to \"0\".",
"description": "\"1\" ECS instances are removed",
"startTime": "2022-09-06T06:29:23.000Z",
"endTime": "2022-09-06T06:30:10.000Z",
"expectNum": 1,
"instanceIds": [
"i-xxx"
],
"requestId": "WOSQ2zMxNTcZOoH1bu****",
"scalingActivityId": "asa-xxx",
"totalCapacity": 1
}
}
The following table describes the parameters contained in data.
Parameter | Type | Example | Description |
---|---|---|---|
cause | String |
| The reason why the scaling activity was triggered. |
description | String | Fail to remove Instances \"i-xxx\" (code:\"LifecycleActionResult.Abandon\", msg:\"Abandon lifecycleActionResult parameter caused the instance to rollback.\")." | The description of the scaling activity. |
startTime | String | 2022-09-06T06:29:23.000Z | The time when the scaling activity started. |
endTime | String | 2022-09-06T06:30:10.000Z | The time when the scaling activity ended. |
expectNum | Int | 1 | The expected capacity of the scaling group after the scaling activity is complete. |
requestId | String | WOSQ2zMxNTcZOoH1bu**** | The ID of the request. |
scalingActivityId | String | asa-xxx | The ID of the scaling activity. |
instanceIds | Array | i-xxx | The IDs of the instances that you want to remove. |
totalCapacity | Int | 1 | The capacity of the scaling group after the scaling activity is complete. |
The scale-in activity of a scaling group is partially successful
The following example shows the event that EventBridge receives when the scale-in activity of a scaling group is partially successful:
{
"id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
"source": "acs.ess",
"specversion": "1.0",
"subject": "arn:acs:ess:cn-hangzhou:123456789xxxxxxx:scalinggroup/asg-xxxxx",
"time": "2020-11-19T21:04:41Z",
"type": "ess:ScalingActivity:ScaleInSuccess",
"aliyunaccountid": "123456789098****",
"aliyunpublishtime": "2020-11-19T21:04:42Z",
"aliyuneventbusname": "default",
"aliyunregionid": "cn-hangzhou",
"aliyunpublishaddr": "172.25.XX.XX",
"data": {
"cause": "A user changed the Desired Capacity, changing the Total Capacity from \"1\" to \"0\".",
"description": "\"1\" ECS instances are removed",
"startTime": "2022-09-06T06:29:23.000Z",
"endTime": "2022-09-06T06:30:10.000Z",
"expectNum": 1,
"instanceIds": [
"i-xxx"
],
"requestId": "WOSQ2zMxNTcZOoH1bu****",
"scalingActivityId": "asa-xxx",
"totalCapacity": 0
}
}
For information about the parameters contained in data, see the parameter description table.
The scale-out activity of a scaling group fails
The following example shows the event that EventBridge receives when the scale-out activity of a scaling group fails:
{
"id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
"source": "acs.ess",
"specversion": "1.0",
"subject": "arn:acs:ess:cn-hangzhou:123456789xxxxxxx:scalinggroup/asg-xxxxx",
"time": "2020-11-19T21:04:41Z",
"type": "ess:ScalingActivity:ScaleOutError",
"aliyunaccountid": "123456789098****",
"aliyunpublishtime": "2020-11-19T21:04:42Z",
"aliyuneventbusname": "default",
"aliyunregionid": "cn-hangzhou",
"aliyunpublishaddr": "172.25.XX.XX",
"data": {
"cause": "A user changed the Desired Capacity, changing the Total Capacity from \"0\" to \"1\".",
"description": "Fail to create Instances into scaling group(code:\"LifecycleActionResult.Abandon\", msg:\"Abandon lifecycleActionResult parameter caused the instance to rollback.\").",
"startTime": "2022-09-06T06:29:23.000Z",
"endTime": "2022-09-06T06:30:10.000Z",
"expectNum": 1,
"requestId": "WOSQ2zMxNTcZOoH1bu****",
"scalingActivityId": "asa-xxx",
"totalCapacity": 0
}
}
For information about the parameters contained in data, see the parameter description table.
The scale-out activity of a scaling group is partially successful
The following example shows the event that EventBridge receives when the scale-out activity of a scaling group is partially successful:
{
"id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
"source": "acs.ess",
"specversion": "1.0",
"subject": "arn:acs:ess:cn-hangzhou:123456789xxxxxxx:scalinggroup/asg-xxxxx",
"time": "2020-11-19T21:04:41Z",
"type": "ess:ScalingActivity:ScaleOutPartialSuccess",
"aliyunaccountid": "123456789098****",
"aliyunpublishtime": "2020-11-19T21:04:42Z",
"aliyuneventbusname": "default",
"aliyunregionid": "cn-hangzhou",
"aliyunpublishaddr": "172.25.XX.XX",
"data": {
"cause": "A user changed the Desired Capacity, changing the Total Capacity from \"0\" to \"2\".",
"description": "\"1\" ECS instances are added",
"startTime": "2022-09-06T06:29:23.000Z",
"endTime": "2022-09-06T06:30:10.000Z",
"expectNum": 2,
"instanceIds": [
"i-xxx"
],
"requestId": "WOSQ2zMxNTcZOoH1bu****",
"scalingActivityId": "asa-xxx",
"totalCapacity": 1
}
}
For information about the parameters contained in data, see the parameter description table.
The scale-out activity of the scaling group is successful
The following example shows the event that EventBridge receives when the scale-out activity of the scaling group is successful:
{
"id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
"source": "acs.ess",
"specversion": "1.0",
"subject": "arn:acs:ess:cn-hangzhou:123456789xxxxxxx:scalinggroup/asg-xxxxx",
"time": "2020-11-19T21:04:41Z",
"type": "ess:ScalingActivity:ScaleOutSuccess",
"aliyunaccountid": "123456789098****",
"aliyunpublishtime": "2020-11-19T21:04:42Z",
"aliyuneventbusname": "default",
"aliyunregionid": "cn-hangzhou",
"aliyunpublishaddr": "172.25.XX.XX",
"data": {
"cause": "A user changed the Desired Capacity, changing the Total Capacity from \"0\" to \"1\".",
"description": "\"1\" ECS instances are added",
"startTime": "2022-09-06T06:29:23.000Z",
"endTime": "2022-09-06T06:30:10.000Z",
"expectNum": 1,
"instanceIds": [
"i-xxx"
],
"requestId": "WOSQ2zMxNTcZOoH1bu****",
"scalingActivityId": "asa-xxx",
"totalCapacity": 1
}
}
For information about the parameters contained in data, see the parameter description table.