tencent cloud

Elastic MapReduce

  • Release Notes and Announcements
  • Product Introduction
  • Purchase Guide
    • EMR on CVM Billing Instructions
    • EMR on TKE Billing Instructions
    • EMR Serverless HBase Billing Instructions
    • EMR Serverless TCBase Billing Overview
  • Getting Started
  • EMR on CVM Operation Guide
    • Planning Cluster
    • Administrative rights
    • Configuring Cluster
    • Managing Cluster
    • Managing Service
    • Monitoring and Alarms
    • TCInsight
  • EMR on TKE Operation Guide
  • EMR Serverless HBase Operation Guide
  • EMR Serverless TCBase Operation Guide
  • EMR Development Guide
    • Hadoop Development Guide
    • Spark Development Guide
    • HBase Development Guide
    • Phoenix on Hbase Development Guide
    • Hive Development Guide
    • Presto Development Guide
    • Sqoop Development Guide
    • Hue Development Guide
    • Oozie Development Guide
    • Flume Development Guide
    • Kerberos Development Guide
    • Knox Development Guide
    • Alluxio Development Guide
    • Kylin Development Guide
    • Livy Development Guide
    • Kyuubi Development Guide
    • Zeppelin Development Guide
    • Hudi Development Guide
    • Superset Development Guide
    • Impala Development Guide
    • Druid Development Guide
    • TensorFlow Development Guide
    • Kudu Development Guide
    • Ranger Development Guide
    • Kafka Development Guide
    • StarRocks Development Guide
    • Flink Development Guide
    • JupyterLab Development Guide
    • MLflow Development Guide
  • Practical Tutorial
    • Practice of EMR on CVM Ops
    • Data Migration
    • Practical Tutorial on Custom Scaling
  • API Documentation
    • History
    • Introduction
    • API Category
    • Making API Requests
    • Cluster Resource Management APIs
    • Cluster Service APIs
    • User Management APIs
    • Information Query APIs
    • Information Query APIs
    • Scaling APIs
    • Configuration APIs
    • Other APIs
    • Cluster Lifecycle APIs
    • Serverless HBase APIs
    • YARN Resource Scheduling APIs
    • Data Types
    • Error Codes
  • FAQs
    • EMR on CVM
  • Service Level Agreement
  • Contact Us

ModifyInspectionSettings

Baixar
Modo Foco
Tamanho da Fonte
Última atualização: 2026-10-10 14:58:51

1. API Description

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.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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.

3. Output Parameters

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.

4. Example

Example1 Setting the Inspection Task Configuration

Input Example

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": []
        }
    ]
}

Output Example

{
    "Response": {
        "Info": "OK",
        "JobId": "499",
        "RequestId": "c1ff0d96-48a7-47ef-bdde-ab6bf1fc5f15"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

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.

Ajuda e Suporte

Esta página foi útil?

comentários