You can call the DescribeProcessList operation to view 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 execution duration of a slow query, in milliseconds (ms). The minimum value is 1000. |
1000 |
| InitialUser |
string |
No |
The user who initiated the query. |
testuser |
| Keyword |
string |
No |
A keyword in the search statement. |
SELECT |
| InitialQueryId |
string |
No |
The query ID. |
1 |
| QueryOrder |
integer |
No |
The column for sorting in descending order.
|
0 |
| PageSize |
integer |
No |
The number of records on each page. |
30 |
| PageNumber |
integer |
No |
The page number. |
1 |
| ComputingGroupId |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned parameters. |
||
| RequestId |
string |
The request ID. |
xxx-xxx-xxx |
| Data |
object |
The returned result. |
|
| DBInstanceID |
integer |
The cluster ID. |
cc-xxxx |
| DBInstanceName |
string |
The cluster name. |
测试使用 |
| TotalCount |
integer |
The total number of records. |
1 |
| ResultSet |
array<object> |
The result set. |
|
|
object |
|||
| InitialQueryId |
string |
The query ID. |
'79f7e40b-87e2-4ef4-b6df-21889a3a030e' |
| QueryStartTime |
string |
The start time of the query. The format is yyyy-MM-ddTHH:mm:ssZ in Coordinated Universal Time (UTC). |
2023-07-23T10:13:23Z |
| InitialAddress |
string |
The query address. |
0:0:0:0:0:ffff:1edd65ea |
| Query |
string |
The statement that is being queried. |
select * from test |
| InitialUser |
string |
The user who initiated the query. |
bany |
| QueryDurationMs |
integer |
The minimum query duration. The minimum value is 1000. Unit: milliseconds. |
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.