Queries the information about an alert rule.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesDescribeDedicatedClusterMonitorRule

The operation that you want to perform. Set the value to DescribeDedicatedClusterMonitorRule.

DedicatedClusterIdStringNodtsClustervcwn1oeyu5fx4yf

The ID of the cluster.

RegionIdStringNocn-hangzhou

The ID of the region in which the instance resides.

Response parameters

ParameterTypeExampleDescription
HttpStatusCodeString200

The HTTP status code.

RequestIdString621BB4F8-3016-4FAA-8D5A-5D3163CC****

The request ID.

ErrCodeStringInternalError

The error code returned if the request failed.

SuccessStringtrue

Indicates whether the request was successful.

ErrMessageStringThe Value of Input Parameter %s is not valid.

The error message returned if the request failed.

DedicatedClusterIdStringdtsClustervcwn1oeyu5fx4yf

The ID of the cluster.

NoticeSwitchString1

Indicates whether the alert feature is enabled. Valid values:

  • 1: The alert feature is enabled.
  • 0: The alert feature is disabled.
DuAlarmThresholdString46

The alert threshold for DTS Unit (DU) usage. Unit: percentage.

CpuAlarmThresholdString80

The alert threshold for CPU utilization. Unit: percentage.

MemAlarmThresholdString80

The alert threshold for memory usage. Unit: percentage.

DiskAlarmThresholdString80

The alert threshold for disk usage. Unit: percentage.

PhonesString186****7653

The mobile phone number to which alerts are sent. Separate multiple mobile phone numbers with commas (,).

Examples

Sample requests

http(s)://dts.aliyuncs.com/?Action=DescribeDedicatedClusterMonitorRule
&DedicatedClusterId=dtsClustervcwn1oeyu5fx4yf
&RegionId=cn-hangzhou
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeDedicatedClusterMonitorRuleResponse>
    <code>200</code>
    <data>
        <NoticeSwitch>0</NoticeSwitch>
        <RequestId>F3284539-46AC-1BC3-A2A6-****</RequestId>
        <DedicatedClusterId>dtscluster_w4****</DedicatedClusterId>
        <Phones>159****2120</Phones>
        <DuAlarmThreshold>100</DuAlarmThreshold>
        <CpuAlarmThreshold>85</CpuAlarmThreshold>
        <MemAlarmThreshold>99</MemAlarmThreshold>
        <DiskAlarmThreshold>99</DiskAlarmThreshold>
        <HttpStatusCode>200</HttpStatusCode>
        <Success>true</Success>
    </data>
    <httpStatusCode>200</httpStatusCode>
    <requestId>F3284539-46AC-1BC3-A2A6-****</requestId>
    <successResponse>true</successResponse>
</DescribeDedicatedClusterMonitorRuleResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "code" : "200",
  "data" : {
    "NoticeSwitch" : 0,
    "RequestId" : "F3284539-46AC-1BC3-A2A6-****",
    "DedicatedClusterId" : "dtscluster_w4****",
    "Phones" : "159****2120",
    "DuAlarmThreshold" : 100,
    "CpuAlarmThreshold" : 85,
    "MemAlarmThreshold" : 99,
    "DiskAlarmThreshold" : 99,
    "HttpStatusCode" : 200,
    "Success" : true
  },
  "httpStatusCode" : "200",
  "requestId" : "F3284539-46AC-1BC3-A2A6-****",
  "successResponse" : true
}

Error codes

For a list of error codes, see Service error codes.