rds__ListSlowLogStatisticsForLts
Retrieve slow query log statistics for an RDS instance within a specified time range, with optional filtering by database, statement type, and sorting.
Instructions
[RDS] 查询实例慢日志的统计数据。
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": {
"end_time": "<end_time>",
"instance_id": "<instance_id>",
"project_id": "<project_id>",
"start_time": "<start_time>"
},
"name": "rds__ListSlowLogStatisticsForLts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | 指定排序字段。"executeTime",表示按照执行时间降序排序。字段为空或传入其他值,表示按照执行次数降序排序。 | |
| type | No | 语句类型,取空值,表示查询所有语句类型。 | |
| limit | No | 每页多少条记录(查询结果),取值范围是1~100,不填时默认为10。 | |
| order | No | 排序顺序。默认desc。 | |
| offset | No | 索引位置,偏移量。默认为0,表示从第一条数据开始查询。 | |
| database | No | 数据库名称。 | |
| end_time | Yes | 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 | |
| project_id | Yes | 租户在某一region下的project ID。获取方法请参见获取项目ID。 | |
| start_time | Yes | 开始日期,格式为“yyyy-mm-ddThh:mm:ssZ”。 | |
| instance_id | Yes | 实例ID。 |