All Products
Search
Document Center

ApsaraDB for ClickHouse:DescribeProcessList

Last Updated:Jul 17, 2024

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

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

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 returned 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.

object
Typestring

The column type.

String
Namestring

The column name.

InitialUser
Dataarray<object>

The details of the query.

object
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
No change history