調用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
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。