Domain name for API request: emr.intl.tencentcloudapi.com.
This API is used to set the inspection task configuration.
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: ModifyInspectionSettings. |
| 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 | Instance ID. |
| Type | Yes | String | Inspection type. Valid values: FixedTime and RealTime. |
| Settings.N | Yes | Array of InspectionTaskSettings | Task configuration. |
| StartTime | No | Integer | Start timestamp. |
| EndTime | No | Integer | End timestamp. |
| Strategy | No | String | Inspection cycle, such as EveryDay, EveryWeek or EveryMonth. |
| Clock | No | String | Start time of each day. |
| DayOfWeek | No | String | Day of the week. |
| DayOfMonth | No | String | Day of the month. |
| JobId | No | String | Inspection job ID. |
| Parameter Name | Type | Description |
|---|---|---|
| Info | String | Return value description. |
| JobId | String | ID of the successfully modified inspection task. |
| 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: ModifyInspectionSettings
{
"StartTime": 1741795200,
"EndTime": 1741837980,
"InstanceId": "emr-mwyixwxp",
"Type": "RealTime",
"Settings": [
{
"Name": "The CPU utilization continuously exceeds the threshold.",
"Group": "Node",
"TaskType": "CpuUsageMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "Threshold",
"Value": "85",
"Editable": "true"
},
{
"Key": "WindowSize",
"Name": "Duration (s)",
"Value": "1800",
"Editable": "true"
}
]
},
{
"Name": "The average CPU IOwait exceeds the threshold.",
"Group": "Node",
"TaskType": "CpuIOWaitAvgMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "Threshold",
"Value": "60",
"Editable": "true"
},
{
"Key": "WindowSize",
"Name": "Duration (s)",
"Value": "1800",
"Editable": "true"
}
]
},
{
"Name": "The memory utilization continuously exceeds the threshold.",
"Group": "Node",
"TaskType": "MemoryFreeException",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "Threshold",
"Value": "85",
"Editable": "true"
},
{
"Key": "WindowSize",
"Name": "Duration (s)",
"Value": "1800",
"Editable": "true"
}
]
},
{
"Name": "The total number of system processes continuously exceeds the threshold.",
"Group": "Node",
"TaskType": "ProcessCntMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "Threshold",
"Value": "10000",
"Editable": "true"
},
{
"Key": "WindowSize",
"Name": "Duration (s)",
"Value": "1800",
"Editable": "true"
}
]
},
{
"Name": "Metadata database exception",
"Group": "Node",
"TaskType": "MetaDBPingFail",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "The HDFS storage space utilization continuously exceeds the threshold.",
"Group": "HDFS",
"TaskType": "HDFSCapacityUsedRateMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "Threshold",
"Value": "85",
"Editable": "true"
},
{
"Key": "WindowSize",
"Name": "Duration (s)",
"Value": "1800",
"Editable": "true"
}
]
},
{
"Name": "NameNode primary/secondary switchover occurred",
"Group": "HDFS",
"TaskType": "HDFSNameNodeSwitch",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "NameNode full GC occurred",
"Group": "HDFS",
"TaskType": "NameNodeFullGC",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "The NameNode JVM memory utilization continuously exceeds the threshold.",
"Group": "HDFS",
"TaskType": "NameNodeJvmMemoryUsageMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "Threshold",
"Value": "85",
"Editable": "true"
},
{
"Key": "WindowSize",
"Name": "Duration (s)",
"Value": "1800",
"Editable": "true"
}
]
},
{
"Name": "ResourceManager primary/secondary switch occurred",
"Group": "YARN",
"TaskType": "YarnRMSwitch",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "ResourceManager full GC occurred",
"Group": "YARN",
"TaskType": "YarnRmFullGCMoreThanThreshold",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "The ResourceManager JVM memory utilization continuously exceeds the threshold.",
"Group": "YARN",
"TaskType": "YarnRmJvmMemoryUsageMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "RM JVM memory utilization",
"Value": "85",
"Editable": "true"
},
{
"Key": "WindowSize",
"Name": "Duration (s)",
"Value": "1800",
"Editable": "true"
}
]
},
{
"Name": "The number of RIT regions in the cluster continuously exceeds the threshold.",
"Group": "HBASE",
"TaskType": "HbaseRitRegionNumMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "Number of RIT regions",
"Value": "1",
"Editable": "true"
},
{
"Key": "WindowSize",
"Name": "Duration (s)",
"Value": "60",
"Editable": "true"
}
]
},
{
"Name": "The HMaster JVM memory utilization continuously exceeds the threshold.",
"Group": "HBASE",
"TaskType": "HbaseHmJvmMemoryUsageMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "HMaster JVM memory utilization",
"Value": "85",
"Editable": "true"
},
{
"Key": "WindowSize",
"Name": "Duration (s)",
"Value": "1800",
"Editable": "true"
}
]
},
{
"Name": "HiveServer2 full GC occurred",
"Group": "HIVE",
"TaskType": "HiveServer2FullGC",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "The HiveServer2 JVM memory utilization continuously exceeds the threshold.",
"Group": "HIVE",
"TaskType": "HiveServer2JvmMemoryUsageMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "HiveServer2 JVM memory utilization",
"Value": "85",
"Editable": "true"
},
{
"Key": "WindowSize",
"Name": "Duration (s)",
"Value": "1800",
"Editable": "true"
}
]
},
{
"Name": "The number of Impala Beeswax API client connections exceeds the threshold.",
"Group": "IMPALA",
"TaskType": "ImpalaThriftServerBeeswaxFrontendConnMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "Impala Beeswax API client connections",
"Value": "64",
"Editable": "true"
}
]
},
{
"Name": "The number of Impala HS2 client connections exceeds the threshold.",
"Group": "IMPALA",
"TaskType": "ImpalaThriftServerHS2ConnMoreThanThrshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "Impala HS2 client connections",
"Value": "64",
"Editable": "true"
}
]
},
{
"Name": "JVM OLD region exception",
"Group": "Cluster",
"TaskType": "JVMOldException",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "The single-disk INODES utilization continuously exceeds the threshold.",
"Group": "Node",
"TaskType": "SingleDiskInMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "Threshold",
"Value": "85",
"Editable": "true"
},
{
"Key": "WindowSize",
"Name": "Duration (s)",
"Value": "1800",
"Editable": "true"
}
]
},
{
"Name": "The single-disk I/O device utilization continuously exceeds the threshold.",
"Group": "Node",
"TaskType": "SingleDiskUtilMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "Threshold",
"Value": "85",
"Editable": "true"
},
{
"Key": "WindowSize",
"Name": "Duration (s)",
"Value": "1800",
"Editable": "true"
}
]
},
{
"Name": "The single-disk space utilization continuously exceeds the threshold.",
"Group": "Node",
"TaskType": "SingleDiskSpaceMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "Threshold",
"Value": "85",
"Editable": "true"
},
{
"Key": "WindowSize",
"Name": "Duration (s)",
"Value": "1800",
"Editable": "true"
}
]
},
{
"Name": "HBase: Both HMaster services are in the Standby status.",
"Group": "HBASE",
"TaskType": "HmStandbyStatusMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "WindowSize",
"Name": "Both HMaster nodes are in the Standby status for over 90 seconds, exceeding the metric value range (second).",
"Value": "300",
"Editable": "true"
}
]
},
{
"Name": "HDFS: Both NameNode services are in the Standby status.",
"Group": "HDFS",
"TaskType": "NNStandbyStatusMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "WindowSize",
"Name": "Both NameNode nodes are in the Standby status for over 90 seconds, exceeding the metric value range (second).",
"Value": "300",
"Editable": "true"
}
]
},
{
"Name": "The UTC-to-NTP time difference of the sub-machine exceeds the threshold.",
"Group": "Node",
"TaskType": "NodeUTCNTPTimeOffsetMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "Threshold",
"Value": "30000",
"Editable": "true"
}
]
},
{
"Name": "HDFS: NameNode enters the security mode.",
"Group": "HDFS",
"TaskType": "HDFSNameNodeEnterSafeMode",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "HDFS: The MissingBlocks quantity continuously exceeds the threshold.",
"Group": "HDFS",
"TaskType": "HDFSMissingBlocksNumMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "Threshold",
"Value": "1",
"Editable": "true"
},
{
"Key": "WindowSize",
"Name": "Duration (s)",
"Value": "1800",
"Editable": "true"
}
]
},
{
"Name": "Node failure",
"Group": "Node",
"TaskType": "NodeFailure",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "Node disk I/O exception",
"Group": "Node",
"TaskType": "DiskIOError",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "Health status exception of the service role",
"Group": "Cluster",
"TaskType": "ProcessDetectionAbnormal",
"Selected": "true",
"TaskSettings": [
{
"Key": "WindowSize",
"Name": "Duration (s)",
"Value": "300",
"Editable": "true"
}
]
},
{
"Name": "Execution failure of the auto scaling policy",
"Group": "Cluster",
"TaskType": "AutoScaleStrategyFailure",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "Execution timeout of the auto scaling policy",
"Group": "Cluster",
"TaskType": "AutoScaleStrategyTimeOut",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "HMaster primary/secondary switch occurred",
"Group": "HBASE",
"TaskType": "HMasterSwitch",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "ZooKeeper leader switch occurred",
"Group": "ZOOKEEPER",
"TaskType": "ZKLeaderSwitch",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "YARN ResourceManager has no active status.",
"Group": "YARN",
"TaskType": "YarnRmNoActiveStatusMoreThanThreshold",
"Selected": "true",
"TaskSettings": [
{
"Key": "WindowSize",
"Name": "YARN ResourceManager service without active status, duration (s)",
"Value": "90",
"Editable": "true"
}
]
},
{
"Name": "Process killed by OOMKiller",
"Group": "Cluster",
"TaskType": "ProcessOutOfMemory",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "Instance hard disk exception, pending authorization",
"Group": "Node",
"TaskType": "InstanceDiskErrorInquiring",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "Instance running exception, pending authorization",
"Group": "Node",
"TaskType": "InstanceRunningAbnormallyInquiring",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "Sub-machine NVMe device error",
"Group": "Node",
"TaskType": "NvmeError",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "Machine restart",
"Group": "Node",
"TaskType": "GuestReboot",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "Memory OOM",
"Group": "Node",
"TaskType": "GuestOom",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "Kernel failure",
"Group": "Node",
"TaskType": "GuestCoreError",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "Read-only disk",
"Group": "Node",
"TaskType": "CvmDiskReadonly",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "Ping unreachable",
"Group": "Node",
"TaskType": "PingUnreachable",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "Enabling security group ports in public network environments poses risks.",
"Group": "Cluster",
"TaskType": "NetworkSecurityHighRiskPortDetection",
"Selected": "true",
"TaskSettings": []
},
{
"Name": "HDFS directory full",
"Group": "HDFS",
"TaskType": "HdfsDirFull",
"Selected": "true",
"TaskSettings": [
{
"Key": "Threshold",
"Name": "Percentage threshold",
"Value": "95",
"Editable": "true"
}
]
},
{
"Name": "Trino full-table scan partition table",
"Group": "TRINO",
"TaskType": "TrinoFullScanPartTable",
"Selected": "false",
"TaskSettings": []
}
]
}
{
"Response": {
"Info": "OK",
"JobId": "499",
"RequestId": "c1ff0d96-48a7-47ef-bdde-ab6bf1fc5f15"
}
}
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 |
|---|---|
| InvalidParameter | Parameter error. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários