as__ListScalingActivityV2Logs
Query detailed auto-scaling activity logs with filters for time range, activity type, status, and pagination to inspect instance scaling, ELB migration, or standby events.
Instructions
[AS] 根据输入条件过滤查询伸缩活动日志,支持查询实例伸缩、ELB迁移、实例备用等类型活动。查询结果分页显示。查询伸缩活动日志V2版本与V1版本区别在于,V2版本展示了更详细的实例伸缩日志,如ELB迁移日志,实例备用日志信息。可根据起始时间,截止时间,起始行号,记录数,伸缩活动类型等作为条件过滤查询。若不加过滤条件默认查询最多20条伸缩活动日志信息。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"scaling_group_id": "<scaling_group_id>"
},
"name": "as__ListScalingActivityV2Logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | 查询的伸缩活动类型(查询多类型使用逗号分隔): | |
| limit | No | 查询记录数,默认20,最大100。 | |
| log_id | No | 伸缩活动日志ID | |
| status | No | 查询的伸缩活动状态:SUCCESS:成功;FAIL:失败;DOING:伸缩中 | |
| end_time | No | 查询的截止时间,格式是“yyyy-MM-ddThh:mm:ssZ”。 | |
| project_id | Yes | 项目ID。 | |
| start_time | No | 查询的起始时间,格式是“yyyy-MM-ddThh:mm:ssZ”。 | |
| start_number | No | 查询的起始行号,默认为0。 | |
| scaling_group_id | Yes | 伸缩组ID。 |