as__ListScalingPolicyExecuteLogs
Query and filter paginated history of Auto Scaling policy executions by log ID, resource type or ID, trigger type, and time range; returns up to 20 records by default.
Instructions
[AS] 根据输入条件过滤查询策略执行的历史记录。查询结果分页显示。可根据日志ID,伸缩资源类型,伸缩资源ID,策略执行类型,查询额起始,查询截止时间,查询起始行号,查询记录数进行条件过滤查询。若不加过滤条件默认查询最多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_policy_id": "<scaling_policy_id>"
},
"name": "as__ListScalingPolicyExecuteLogs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 查询记录数,默认20,最大100。 | |
| log_id | No | 日志ID。 | |
| end_time | No | 查询的截止时间,格式是“yyyy-MM-ddThh:mm:ssZ”。 | |
| project_id | Yes | 项目ID。 | |
| start_time | No | 查询的起始时间,格式是“yyyy-MM-ddThh:mm:ssZ”。 | |
| execute_type | No | 策略执行类型:SCHEDULED:自动触发(定时)。RECURRENCE:自动触发(周期)。ALARM:自动触发(告警)。MANUAL:手动触发。 | |
| start_number | No | 查询的起始行号,默认为0。 | |
| scaling_policy_id | Yes | 伸缩策略ID。 | |
| scaling_resource_id | No | 伸缩资源ID。 | |
| scaling_resource_type | No | 伸缩资源类型:伸缩组:SCALING_GROUP。带宽:BANDWIDTH |