ListSlowlog
ListSlowlogQuery read-only slow logs for a Huawei DCS Redis instance by time range to diagnose performance issues, with optional node, sort, and pagination filters.
Instructions
查询慢日志(只读查询)
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": {
"instance_id": "<instance_id>",
"start_time": "<start_time>",
"end_time": "<end_time>"
},
"name": "ListSlowlog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | 查询节点,分为proxy和server。 | |
| limit | No | 每页显示的条目数量。 | |
| offset | No | 偏移量,表示从此偏移量开始查询, offset大于等于0 | |
| region | No | Overrides HUAWEI_REGION. | |
| end_time | Yes | 查询结束时间,时间为UTC时间的Unix时间戳。如:1599494399000。 | |
| sort_dir | No | 降序或升序(分别对应desc和asc,默认为“desc”) | |
| sort_key | No | 返回结果按该关键字排序,支持start_time,duration,默认为“start_time” | |
| project_id | No | Overrides HUAWEI_PROJECT_ID. | |
| start_time | Yes | 查询开始时间,时间为UTC时间的Unix时间戳。如:1598803200000。 | |
| instance_id | Yes | 实例ID。 |