Domain name for API request: emr.intl.tencentcloudapi.com.
This API is used to query Trino(PrestoSQL) query information.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: DescribeTrinoQueryInfo. |
| Version | Yes | String | Common Params. The value used for this API: 2019-01-03. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| InstanceId | Yes | String | Cluster ID. |
| StartTime | Yes | Integer | Obtain the start time for querying information (s). |
| EndTime | Yes | Integer | Obtain the end time for querying information (s). |
| PageSize | Yes | Integer | Page size for pagination queries. Minimum value: 1; maximum value: 100. |
| Page | Yes | Integer | Page number for pagination queries, starting from 1. |
| Parameter Name | Type | Description |
|---|---|---|
| TotalCount | Integer | Total number, which is used for pagination query. |
| QueryInfoList | Array of TrinoQueryInfo | Query result array. Note: This field may return null, indicating that no valid values can be obtained. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: emr.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeTrinoQueryInfo
<Common request parameters>
{
"InstanceId": "emr-d82w3t9p",
"PageSize": 10,
"StartTime": 1701792000,
"EndTime": 1701878399,
"Page": 1
}{
"Response": {
"QueryInfoList": [
{
"Catalog": "hive",
"ClientIpAddr": "10.0.1.104",
"CompletedSplits": "",
"CpuTime": 0,
"CumulativeMemory": 0,
"DurationMillis": 0,
"EndTime": 0,
"Id": "20240708_111543_00007_lcmdbi8z",
"InternalNetworkBytes": 0,
"OutputBytes": 0,
"PeakUserMemoryBytes": 0,
"PhysicalInputBytes": 0,
"ProcessedInputBytes": 0,
"SqlCompileTime": 0,
"StartTime": 0,
"State": "QUEUED",
"Statement": "create table impala_ranger",
"User": "hadoop",
"WrittenBytes": 0
}
],
"RequestId": "cfbbbe0f-5d30-4bf7-b87b-428b14ac3ws22",
"TotalCount": 18
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| ResourceNotFound.ClusterNotFound | The instance was not found. |
| UnauthorizedOperation.AppIdMismatched | The appId is inconsistent. |
Feedback