调用DescribeDedicatedClusterMonitorRule接口查询报警规则。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | DescribeDedicatedClusterMonitorRule |
系统规定参数。取值:DescribeDedicatedClusterMonitorRule。 |
| DedicatedClusterId | String | 否 | dtsClustervcwn1oeyu5fx4yf |
集群ID。 |
| RegionId | String | 否 | cn-hangzhou |
实例所在地域。 |
返回数据
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| HttpStatusCode | String | 200 |
状态码。 |
| RequestId | String | 621BB4F8-3016-4FAA-8D5A-5D3163CC**** |
请求ID。 |
| ErrCode | String | InternalError |
调用出错时返回的错误码。 |
| Success | String | true |
请求是否成功。 |
| ErrMessage | String | The Value of Input Parameter %s is not valid. |
调用错误时返回的错误信息。 |
| DedicatedClusterId | String | dtsClustervcwn1oeyu5fx4yf |
集群ID。 |
| NoticeSwitch | String | 1 |
报警开关,取值为:
|
| DuAlarmThreshold | String | 46 |
DU报警阈值,单位百分比。 |
| CpuAlarmThreshold | String | 80 |
CPU报警阈值,单位百分比。 |
| MemAlarmThreshold | String | 80 |
内存报警阈值,单位百分比。 |
| DiskAlarmThreshold | String | 80 |
磁盘报警阈值,单位百分比。 |
| Phones | String | 186****7653 |
报警接收电话。如果有多个,用逗号(,)隔开。 |
示例
请求示例
http(s)://dts.aliyuncs.com/?Action=DescribeDedicatedClusterMonitorRule
&DedicatedClusterId=dtsClustervcwn1oeyu5fx4yf
&RegionId=cn-hangzhou
&公共请求参数
正常返回示例
XML格式
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格式
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
}
错误码
访问错误中心查看更多错误码。