统计一段时间内不同状态的伸缩活动分布。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ess:DescribeScalingActivityStatistics |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
地域 ID。 |
cn-hangzhou |
| ScalingGroupId |
string |
否 |
伸缩组的 ID。 |
asg-8vbje5pofxxxxxxxx |
| StartTime |
string |
是 |
统计区间开始时间,按照 ISO8601 标准表示,并需要使用 UTC 时间。 |
2025-12-15T08:00Z |
| EndTime |
string |
是 |
统计区间结束时间,按照 ISO8601 标准表示,并需要使用 UTC 时间。 |
2025-12-18T08:00Z |
| MetricType |
string |
否 |
伸缩活动统计的指标名称,取值范围:
默认值:ScalingActivityStatus。 |
ScalingActivityStatus |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
A8F44B4D-BAB4-5176-8705-5984xxxxx |
| ScalingActivityStatusStatistics |
object |
||
| Statistic |
array<object> |
伸缩活动状态统计指标。 |
|
|
object |
伸缩活动状态统计指标。 |
||
| Time |
string |
统计数据生成的时间点(UTC 时间),格式:yyyyMMddHH。 |
2025121623 |
| SuccessActivityCount |
integer |
成功的伸缩活动数量。 |
10 |
| FailedActivityCount |
integer |
失败的伸缩活动数量。 |
1 |
| WarningActivityCount |
integer |
部分执行成功的伸缩活动数量。 |
2 |
| ScalingActivityErrorCodeStatistics |
object |
||
| ErrorStatistic |
array<object> |
伸缩活动错误信息统计指标。 |
|
|
object |
伸缩活动错误信息统计指标。 |
||
| ErrorCode |
string |
伸缩活动错误码 |
QuotaExceeded.PrivateIpAddress |
| Count |
integer |
失败的伸缩活动数量。 |
4 |
| Time |
string |
统计数据生成的时间点(UTC 时间),格式:yyyyMMddHH。 |
2025121623 |
示例
正常返回示例
JSON格式
{
"RequestId": "A8F44B4D-BAB4-5176-8705-5984xxxxx",
"ScalingActivityStatusStatistics": {
"Statistic": [
{
"Time": "2025121623",
"SuccessActivityCount": 10,
"FailedActivityCount": 1,
"WarningActivityCount": 2
}
]
},
"ScalingActivityErrorCodeStatistics": {
"ErrorStatistic": [
{
"ErrorCode": "QuotaExceeded.PrivateIpAddress",
"Count": 4,
"Time": "2025121623"
}
]
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。