巡檢項:啟用
更新時間 2024-09-25 16:21:01
最近更新時間: 2024-09-25 16:21:01
分享文章
智能巡檢
巡檢項:啟用
接口功能介紹
調用此接口可啟用巡檢項。
接口約束
巡檢項不為空。
URI
POST /v4/monitor/intelligent-inspection/enable-inspection-item
路徑參數
無
Query參數
無
請求參數
請求頭header參數
無
請求體body參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| inspectionItem | 是 | Integer | 本參數表示巡檢項。取值范圍:1:云主機性能評估。2:監控數據健康評估。3:云主機閑置資源檢查。4:云主機磁盤使用預警評估根據以上范圍取值。 | 1 |
響應參數
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| statusCode | Integer | 返回狀態碼(800為成功,900為失敗),默認值:800 | 800 | |
| errorCode | String | 失敗時的錯誤代碼,參見公共錯誤碼說明 | ||
| message | String | 失敗時的錯誤描述,一般為英文描述 | Success | |
| msgDesc | String | 失敗時的錯誤描述,一般為中文描述 | 成功 | |
| error | String | 錯誤碼,請求成功時,不返回該字段 | Openapi.Parameter.Error | |
| returnObj | Object | 返回參數,參考returnObj對象結構 | returnObj |
表 returnObj
| 參數 | 參數類型 | 說明 | 示例* | 下級對象 |
|---|---|---|---|---|
| success | Boolean | 啟用成功標識 | true |
請求示例
請求url
/v4/monitor/intelligent-inspection/enable-inspection-item
請求頭header
無
請求體body
{
"inspectionItem":1
}
響應示例
{
"statusCode":800,
"returnObj":{
"success":true
},
"errorCode":"",
"message":"Success",
"msgDesc":"成功"
}
狀態碼
| 狀態碼 | 描述 |
|---|---|
| 200 | 請求成功 |
錯誤碼
| errorCode | 描述 |
|---|---|
| 其他 | 參見公共錯誤碼說明 |