Describes currently running queries.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
clickhouse:DescribeProcessList |
list |
*EnterpriseDBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-beijing |
| DBInstanceId |
string |
Yes |
The cluster ID. |
cc-xxxxx |
| QueryDurationMs |
string |
No |
The minimum query execution duration, in milliseconds (ms). Only queries that run for this duration or longer are returned. The minimum value is 1,000. |
1000 |
| InitialUser |
string |
No |
The query user. |
testuser |
| Keyword |
string |
No |
The keyword in the query statement. |
SELECT |
| InitialQueryId |
string |
No |
The query ID. |
1 |
| QueryOrder |
integer |
No |
The criteria by which to sort the results. The results are sorted in descending order. Valid values:
|
0 |
| PageSize |
integer |
No |
The number of entries to return on each page. |
30 |
| PageNumber |
integer |
No |
The page number. |
1 |
| ComputingGroupId |
string |
No |
The computing group ID. |
cc-gs5j3sua77******-clickhouse |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| RequestId |
string |
The request ID. |
xxx-xxx-xxx |
| Data |
object |
The data object. |
|
| DBInstanceID |
integer |
The cluster ID. |
cc-xxxx |
| DBInstanceName |
string |
The cluster name. |
测试使用 |
| TotalCount |
integer |
The total number of entries that match the filter criteria. |
1 |
| ResultSet |
array<object> |
The result set. |
|
|
object |
The details of a query. |
||
| InitialQueryId |
string |
The query ID. |
'79f7e40b-87e2-4ef4-b6df-21889a3a030e' |
| QueryStartTime |
string |
The start time of the query. The time is in UTC and follows the |
2023-07-23T10:13:23Z |
| InitialAddress |
string |
The address from which the query was initiated. |
0:0:0:0:0:ffff:1edd65ea |
| Query |
string |
The query statement. |
select * from test |
| InitialUser |
string |
The user who initiated the query. |
bany |
| QueryDurationMs |
integer |
The execution duration of the query, in milliseconds (ms). |
1000 |
Examples
Success response
JSON format
{
"RequestId": "xxx-xxx-xxx",
"Data": {
"DBInstanceID": 0,
"DBInstanceName": "测试使用",
"TotalCount": 1,
"ResultSet": [
{
"InitialQueryId": "'79f7e40b-87e2-4ef4-b6df-21889a3a030e'",
"QueryStartTime": "2023-07-23T10:13:23Z",
"InitialAddress": "0:0:0:0:0:ffff:1edd65ea",
"Query": "select * from test",
"InitialUser": "bany",
"QueryDurationMs": 1000
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.