rds__ListSlowlogForLts
Query slow log entries for a specified RDS instance within a time range, with filters for database and SQL statement type to diagnose performance issues.
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__ListSlowlogForLts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | 语句类型,取空值,表示查询所有语句类型。 | |
| limit | No | 每页多少条记录(查询结果),取值范围是1~100,不填时默认为10。 | |
| database | No | 数据库名称。 | |
| end_time | Yes | 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 | |
| line_num | No | 日志单行序列号,第一次查询时不需要此参数,后续分页查询时需要使用,可从上次查询的返回信息中获取。line_num应在start_time和end_time之间。 | |
| project_id | Yes | 租户在某一region下的project ID。获取方法请参见获取项目ID。 | |
| start_time | Yes | 开始日期,格式为“yyyy-mm-ddThh:mm:ssZ”。 | |
| instance_id | Yes | 实例ID。 | |
| search_type | No | 搜索方式。默认forwards。配合line_num使用,以line_num为起点,向前搜索或向后搜索。 |