das__ExportTopSqlTemplatesDetails
Exports TopSQL template details for a DAS instance with TopSQL enabled, using a start and end time within a one-hour window; supports paid instances only.
Instructions
[DAS] TopSQL开关打开后,导出TopSQL模板列表。该功能仅支持付费实例。查询时间间隔最长一小时。
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__ExportTopSqlTemplatesDetails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asc | No | 排序顺序(true:正序, false:逆序)。 | |
| sort | No | 排序字段(executeNum:执行次数, totalCost:总耗时, avgCost:平均耗时, totalScan: 总扫描行数, avgScan:平均扫描行数)。 | avgCost |
| limit | No | 每页记录数,默认为20,最大取值100。 | |
| end_at | Yes | 结束时间(Unix timestamp),单位:毫秒。 | |
| offset | No | 偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。 | |
| node_id | No | 节点ID。 | |
| start_at | Yes | 开始时间(Unix timestamp),单位:毫秒。 | |
| project_id | Yes | 项目ID。 | |
| instance_id | Yes | 实例ID。 | |
| datastore_type | Yes | 数据库类型。支持MySQL和GaussDB(for MySQL)。 |