Queries the details of queries that are being executed in an ApsaraDB for ClickHouse cluster.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
DBClusterId | string | Yes | The cluster ID. You can call the DescribeDBClusters operation to query information about all the clusters that are deployed in a specific region. The information includes the cluster IDs. | cc-bp1190tj036am**** |
QueryDurationMs | integer | Yes | The minimum query duration. The minimum value is 1000, and the default value is 1000. Unit: milliseconds. Queries that last longer than this duration are returned in response parameters. | 500 |
InitialUser | string | No | The account that is used to log on to the database. | user |
Keyword | string | No | The keyword that is used to query. | join |
Order | string | No | Sorting by the specified column name. Valid values:
| elapsed |
PageSize | integer | No | The number of entries returned per page. Valid values:
| 30 |
PageNumber | integer | No | The page number. Pages start from page 1. Default value: 1. | 1 |
InitialQueryId | string | No | The ID of the query statement. | 6c69d508-f05f-4c74-857c-d982b7e7e79f |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "FD61BB0D-788A-5185-A8E3-1B90BA8F6F04",
"ProcessList": {
"TableSchema": {
"ResultSet": [
{
"Type": "String",
"Name": "InitialUser"
}
]
},
"Data": {
"ResultSet": [
{
"QueryStartTime": "2021-02-02T09:14:48Z",
"Query": "select * from test order by score limit 1;",
"InitialAddress": "::ffff:10.1.XX.XX",
"InitialQueryId": "2dd144fd-4230-4249-b15c-e63f964fbb5a",
"InitialUser": "test",
"QueryDurationMs": "2000"
}
]
},
"Rows": "1145700",
"RowsBeforeLimitAtLeast": "1",
"Statistics": {
"RowsRead": 1000000,
"ElapsedTime": 4156,
"BytesRead": 9141300000
}
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
500 | InternalError | An error occurred while processing your request. | An error occurred while processing your request. |
503 | ServiceUnavailable | An error occurred while processing your request. | An error occurred while processing your request. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|