All Products
Search
Document Center

ApsaraDB for ClickHouse:DescribeProcessList

Last Updated:Nov 12, 2024

Queries the details of queries that are being executed in an ApsaraDB for ClickHouse cluster.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
clickhouse:DescribeProcessListget
  • DBCluster
    acs:clickhouse:{#regionId}:{#accountId}:dbcluster/{#DBClusterId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
DBClusterIdstringYes

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****
QueryDurationMsintegerYes

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
InitialUserstringNo

The account that is used to log on to the database.

user
KeywordstringNo

The keyword that is used to query.

join
OrderstringNo

Sorting by the specified column name. Valid values:

  • elapsed: the cumulative execution time
  • written_rows: the number of written rows
  • read_rows: the number of read rows
  • memory_usage: the memory usage
elapsed
PageSizeintegerNo

The number of entries per page. Valid values:

  • 30 (default)
  • 50
  • 100
30
PageNumberintegerNo

The page number. Pages start from page 1. Default value: 1.

1
InitialQueryIdstringNo

The ID of the query statement.

6c69d508-f05f-4c74-857c-d982b7e7e79f

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

FD61BB0D-788A-5185-A8E3-1B90BA8F6F04
ProcessListobject

The queries.

TableSchemaarray<object>

Details of the columns.

ResultSetobject
Typestring

The column type.

String
Namestring

The column name.

InitialUser
Dataarray<object>

The details of the query.

ResultSetobject
QueryStartTimestring

The beginning of the time range to query. The value is in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in Coordinated Universal Time (UTC).

2021-02-02T09:14:48Z
Querystring

The SQL statement that is executed in the query.

select * from test order by score limit 1;
InitialAddressstring

The IP address of the client that initiates the query.

::ffff:10.1.XX.XX
InitialQueryIdstring

The query ID.

2dd144fd-4230-4249-b15c-e63f964fbb5a
InitialUserstring

The database account.

test
QueryDurationMsstring

The execution duration of the query. Unit: milliseconds.

2000
Rowsstring

The number of rows returned for the query.

1145700
RowsBeforeLimitAtLeaststring

The number of entries returned per page.

1
Statisticsobject

The statistics of the results.

RowsReadinteger

The number of scanned rows.

1000000
ElapsedTimefloat

The average response time.

4156
BytesReadinteger

The size of the data that was scanned. Unit: bytes.

9141300000

Examples

Sample success responses

JSONformat

{
  "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 codeError codeError messageDescription
500InternalErrorAn error occurred while processing your request.An error occurred while processing your request.
503ServiceUnavailableAn 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 timeSummary of changesOperation
2024-09-25API Description Update. The Error code has changedView Change Details