gaussdb__ShowSlowLogStatistics
Retrieves slow query log statistics for a GaussDB instance within a specified time range, supporting database, node, and statement-type filters with sorting and pagination.
Instructions
[GAUSSDB] 查询慢日志统计信息
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>",
"node_id": "<node_id>",
"project_id": "<project_id>",
"start_time": "<start_time>"
},
"name": "gaussdb__ShowSlowLogStatistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | 指定排序字段。 | |
| type | No | 语句类型,取空值,表示查询所有语句类型。 | |
| limit | No | 每页多少条记录(查询结果),取值范围是1~100,不填时默认为10。 | |
| order | No | 排序顺序。默认desc。 | |
| offset | No | 索引位置,偏移量。默认为0,表示从第一条数据开始查询。 | |
| node_id | Yes | 节点ID。 | |
| database | No | 数据库名称。数据库名称不支持包含特殊字符 < > & 等的搜索。 | |
| end_time | Yes | 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 | |
| project_id | Yes | 租户在某一Region下的project ID。 | |
| start_time | Yes | 开始日期,格式为“yyyy-mm-ddThh:mm:ssZ”。 | |
| instance_id | Yes | 实例ID,严格匹配UUID规则。 |