List queries
GET/unit/query
Lists the queries run in the service unit.
Request
Query Parameters
The ID of the query.
The name of the PDS cluster that is used to run the query.
The start time of the query.
The end time of the query.
The query status.
The query text.
The minimum execution duration.
The maximum execution duration.
Whether Adaptive Query Scaling is enabled.
Possible values: >= 1
Default value: 10
The number of items returned per page.
Possible values: >= 1
Default value: 1
The sequence number of the current page.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
The response code.
data
object
The summary of the query.
The sequence number of the current page.
The number of items displayed per page.
records
object[]
The records in the current page.
queryBaseInfo
object
The number of pages in total.
The response message.
{
"code": 0,
"data": {
"pageNumber": 0,
"pageSize": 0,
"records": [
{
"catalog": "string",
"createTime": 0,
"cumulativeUserMemory": "string",
"database": "string",
"debug": "string",
"debugInfo": "string",
"details": "string",
"dpsName": "string",
"elapsedTime": 0,
"endTime": 0,
"engineType": "string",
"executionTime": "string",
"instanceId": "string",
"nodeIp": "string",
"nodeType": "string",
"processId": "string",
"queryBaseInfo": {
"completedDrivers": 0,
"cumulativeUserMemory": "string",
"elapsedTime": "string",
"executionTime": "string",
"peakUserMemoryReservation": "string",
"totalCpuTime": "string",
"userMemoryReservation": "string"
},
"queryBossInfo": "string",
"queryHash": "string",
"queryId": "string",
"queryPattenHash": "string",
"queryState": "string",
"queryText": "string",
"queryType": "string",
"schema": "string",
"timestamp": "string",
"totalCpuTime": "string",
"user": "string",
"version": "string"
}
],
"total": 0
},
"msg": "string"
}