das__ExportFullSqlDetails
Export full SQL details from DAS paid instances by querying SQL insight tasks with filters for node, username, database, operation type, time range, cost, and status.
Instructions
[DAS] 全量SQL开关打开后,创建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": {
"end_at": "<end_at>",
"instance_id": "<instance_id>",
"project_id": "<project_id>",
"start_at": "<start_at>"
},
"name": "das__ExportFullSqlDetails"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asc | No | 排序顺序(true:正序, false:逆序)。 | |
| page | No | 页码。 | |
| fuzzy | No | 是否模糊匹配。 | |
| limit | No | 每页记录数。最大为100。 | |
| end_at | Yes | 结束时间(Unix timestamp),单位:毫秒。 | |
| db_list | No | 数据库(可组合,用空格分隔)。 | |
| keyword | No | 关键字(可组合,用逗号分隔)。 | |
| node_id | No | 节点ID。 | |
| cost_max | No | 最大执行耗时(毫秒)。 | |
| cost_min | No | 最小执行耗时(毫秒)。 | |
| scan_max | No | 最大扫描行数。 | |
| scan_min | No | 最小扫描行数。 | |
| start_at | Yes | 开始时间(Unix timestamp),单位:毫秒。 | |
| task_ids | No | SQL洞察任务ID列表,时间范围大于1天的SQL洞察任务后台将拆分为多个任务解析,该场景支持多任务过滤导出。 | |
| user_list | No | 用户名(可组合,用空格分隔)。 | |
| affect_max | No | 最大影响行数。 | |
| affect_min | No | 最小影响行数。 | |
| project_id | Yes | 项目ID。 | |
| return_max | No | 最大返回行数。 | |
| return_min | No | 最小返回行数。 | |
| sort_field | No | 排序字段(execute_at:执行时间, execute_cost:执行耗时, lock_wait_time:锁等待时间, rows_examined:扫描行数, rows_returned:返回行数)。 | execute_at |
| instance_id | Yes | 实例ID。 | |
| status_list | No | 执行状态(0:成功,1:失败,可组合,用空格分隔)。 | |
| trx_id_list | No | 事务ID(可组合,用空格分隔)。 | |
| client_ip_list | No | 客户端IP(可组合,用空格分隔)。 | |
| operation_list | No | 操作类型(可组合,用空格分隔)。 | |
| thread_id_list | No | 线程ID(可组合,用空格分隔)。 | |
| session_id_list | No | 会话ID(可组合,用空格分隔)。 | |
| sql_template_ids | No | SQL模板ID(可组合,用空格分隔)。 |