Queries the execution information about distributed tasks in a stage of a query.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
adb:DescribeDiagnosisTasks | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DBClusterId | string | Yes | The cluster ID. Note
You can call the DescribeDBClusters operation to query the IDs of all AnalyticDB for MySQL Data Warehouse Edition (V3.0) clusters within a region.
| am-bp1r053byu48p**** |
RegionId | string | No | The region ID of the cluster. Note
You can call the DescribeRegions operation to query the most recent region list.
| cn-hangzhou |
ProcessId | string | Yes | The query ID. Note
You can call the DescribeProcessList operation to query the IDs of queries that are being executed.
| 202011191048151921681492420315100**** |
StageId | string | Yes | The ID of a stage in the query that is specified by the | Stage[26] |
Order | string | No | The order in which to sort the tasks by field. Specify the value in the JSON format. Example: Note
| [{"Field":"StartTime", "Type": "desc" }] |
PageNumber | integer | No | The page number. | 1 |
PageSize | integer | No | The number of entries per page. Valid values:
| 30 |
State | string | No | The state of the asynchronous import or export task to be queried. Valid values:
| RUNNING |
Host | string | No | The IP address from which the query was initiated. | 192.168.XX.XX |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "F0983B43-B2EC-536A-8791-142B5CF1E9B6",
"TaskList": [
{
"ScanCost": 0,
"OutputDataSize": 123,
"InputDataSize": 123,
"State": "FINISHED",
"OperatorCost": 3,
"OutputRows": 105,
"ScanDataSize": 123,
"ElapsedTime": 456,
"ScanRows": 0,
"PeakMemory": 234,
"TaskId": "22568****",
"InputRows": 105,
"TaskCreateTime": 0,
"TaskEndTime": 0,
"TaskHost": "192.168.XX.XX",
"Drivers": "16",
"QueuedTime": "12",
"ComputeTimeRatio": "0.89"
}
],
"TotalCount": 33
}
Error codes
For a list of error codes, visit the Service error codes.