Domain name for API request: emr.intl.tencentcloudapi.com.
This API is used to obtain insight result 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: DescribeInsightList. |
| 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 | Start time of the obtained insight result. This time is used to filter the start time of App or Hive queries. |
| EndTime | Yes | Integer | End time of the obtained insight result. This time is used to filter the start time of App or Hive queries. |
| PageSize | Yes | Integer | Number of items returned per page. Minimum value: 1. Maximum value: 100. |
| Page | Yes | Integer | Page number for pagination queries, starting from 1. |
| Type | No | String | Query type. Types such as HIVE, SPARK, DLC_SPARK, SPARK_SQL, SCHEDULE, MAPREDUCE, and TRINO are supported. All are queried by default. |
| MustHasContext | No | Boolean | Whether information such as specific parameter suggestions is included. |
| Parameter Name | Type | Description |
|---|---|---|
| TotalCount | Integer | Total number, which is used for pagination query. |
| ResultList | Array of InsightResult | Insight result array. |
| 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: DescribeInsightList
<Common request parameters>
{
"InstanceId": "emr-d82w3t9p",
"PageSize": 10,
"StartTime": 1701792000,
"EndTime": 1701878399,
"Page": 1
}
{
"Response": {
"TotalCount": 9,
"RequestId": "12345678999",
"ResultList": [
{
"ScheduleTaskName": "",
"RuleID": "HIVE-ScanManyPartition",
"ScheduleTaskExecID": "",
"ScheduleFlowName": "",
"Detail": "easechen_dw.test_orc big scan",
"Value": 0,
"RuleExplain": "The number of scanned partitions exceeds 80% of the total number of table partitions.",
"Suggestion": "Add partition scan conditions.",
"RuleName": "HIVE-Large Table Scan"
"JobConf": "",
"Type": "HIVE",
"ID": "hadoop_20231206140857_1bbd81e2-b752-424b-aa61-a811a40c3099",
"Context": "{\"allocatedMemMBSeconds\":118066,\"confMemSizeMB\":4096,\"minimumWastePercent\":48,\"suggestMemSizeMB\":3072,\"totalWastePercent\":48}"
}
]
}
}
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 cannot be found. |
| UnauthorizedOperation.AppIdMismatched | APPID mismatch. |
フィードバック