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 typeValue of the type parameter
The scale-in activity of a scaling group failsess:ScalingActivity:ScaleInError
The scale-in activity of a scaling group is partially successfuless:ScalingActivity:ScaleInPartialSuccess
The scale-in activity of a scaling group is partially successfuless:ScalingActivity:ScaleInSuccess
The scale-out activity of a scaling group failsess:ScalingActivity:ScaleOutError
The scale-out activity of a scaling group is partially successfuless:ScalingActivity:ScaleOutPartialSuccess
The scale-out activity of the scaling group is successfuless:ScalingActivity:ScaleOutSuccess
Operation performed by Alibaba Cloud on a resourceess:ActionTrail:AliyunServiceEvent
API operation calless:ActionTrail:ApiCall
Operation performed in a consoleess:ActionTrail:ConsoleOperation
The scale-in activity of a scaling group failsess:CloudMonitor:AUTOSCALING[SCALEINERROR]
The scale-in activity of a scaling group startsess:CloudMonitor:AUTOSCALING[SCALEINSTART]
The scale-in activity of a scaling group is successfuless:CloudMonitor:AUTOSCALING[SCALEINSUCCESS]
The scale-in activity of a scaling group is partially successfuless:CloudMonitor:AUTOSCALING[SCALEINWARN]
The scale-out activity of a scaling group failsess:CloudMonitor:AUTOSCALING[SCALEOUTERROR]
The scale-out activity of a scaling group startsess:CloudMonitor:AUTOSCALING[SCALEOUTSTART]
The scale-out activity of a scaling group is successfuless:CloudMonitor:AUTOSCALING[SCALEOUTSUCCESS]
The scale-out activity of a scaling group is partially successfuless:CloudMonitor:AUTOSCALING[SCALEOUTWARN]
The scaling activity of a scaling group is rejectedess:CloudMonitor:AUTOSCALING[SCALEREJECT]
A scheduled task expiresess:CloudMonitor:AUTOSCALING[SCHEDULETASKEXPIRING]
Resource change logs are deliveredess:Config:ConfigurationItemChangeNotification
A notification that a resource is evaluated as non-compliant is sentess: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.

ParameterTypeExampleDescription
causeString
A user changed the Desired Capacity, changing the Total Capacity from \"1\" to \"0\"."
The reason why the scaling activity was triggered.
descriptionStringFail to remove Instances \"i-xxx\" (code:\"LifecycleActionResult.Abandon\", msg:\"Abandon lifecycleActionResult parameter caused the instance to rollback.\")."The description of the scaling activity.
startTimeString2022-09-06T06:29:23.000ZThe time when the scaling activity started.
endTimeString2022-09-06T06:30:10.000ZThe time when the scaling activity ended.
expectNumInt1The expected capacity of the scaling group after the scaling activity is completed.
requestIdStringWOSQ2zMxNTcZOoH1b****The ID of the request.
scalingActivityIdStringasa-xxxThe ID of the scaling activity.
totalCapacityString1The 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.

ParameterTypeExampleDescription
causeString
A user changed the Desired Capacity, changing the Total Capacity from \"1\" to \"0\"."
The reason why the scaling activity was triggered.
descriptionStringFail to remove Instances \"i-xxx\" (code:\"LifecycleActionResult.Abandon\", msg:\"Abandon lifecycleActionResult parameter caused the instance to rollback.\")."The description of the scaling activity.
startTimeString2022-09-06T06:29:23.000ZThe time when the scaling activity started.
endTimeString2022-09-06T06:30:10.000ZThe time when the scaling activity ended.
expectNumInt1The expected capacity of the scaling group after the scaling activity is complete.
requestIdStringWOSQ2zMxNTcZOoH1bu****The ID of the request.
scalingActivityIdStringasa-xxxThe ID of the scaling activity.
instanceIdsArrayi-xxxThe IDs of the instances that you want to remove.
totalCapacityInt1The 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.