das__ExportSlowSqlStatistics
Exports slow SQL statistics for a DDS Community instance after the slow SQL switch is enabled, with time-range, node, and statistics-field filters.
Instructions
[DAS] 慢SQL开关打开后,导出慢SQL统计数据。
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": {
"datastore_type": "<datastore_type>",
"end_at": "<end_at>",
"instance_id": "<instance_id>",
"project_id": "<project_id>",
"start_at": "<start_at>"
},
"name": "das__ExportSlowSqlStatistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 每页记录数,默认为20,最大取值100。 | |
| end_at | Yes | 结束时间(Unix timestamp),单位:毫秒。 | |
| offset | No | 偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 | |
| node_ids | No | 节点ID列表。 | |
| start_at | Yes | 开始时间(Unix timestamp),单位:毫秒。 | |
| project_id | Yes | 项目ID。 | |
| instance_id | Yes | 实例ID。 | |
| datastore_type | Yes | 数据库类型。慢SQL统计支持的类型:DDS-Community。 | |
| statistics_field | No | 统计字段。支持统计的字段:node_id、sql_type、db_name、collection、user、client。默认使用node_id统计。 |