告警规则:获取告警设备类型列表 接口功能介绍 获取监控/告警服务的设备类型列表。 接口约束 无。 URI GET /v4/monitor/querydevicetypes 请求参数 Query参数 无。 响应参数 参数 参数类型 说明 示例 下级对象 statusCode Integer 返回状态码(800为成功,900为失败),默认值:800 800 errorCode String 失败时的错误代码,参见公共错误码说明 message String 失败时的错误描述,一般为英文描述 Success msgDesc String 失败时的错误描述,一般为中文描述 成功 returnObj Object 返回对象 returnObj 表returnObj 参数 参数类型 说明 示例 下级对象 devices Array of Objects 设备类型列表 device 表device 参数 参数类型 说明 示例 下级对象 device String 设备类型 vm description String 描述 云主机 请求示例 GET /v4/monitor/querydevicetypes 响应示例 json { "statusCode": 800, "returnObj": { "devices": [ {"device": "vm", "description": "云主机"}, {"device": "disk", "description": "云硬盘"}, {"device": "baremetal", "description": "物理机"}, {"device": "eip","description": "弹性ip/ipv6"} ] }, "errorCode": "", "message": "Success", "msgDesc":"成功" }