监视器dlbv3

监控器验证节点、池或池内结点群的健康性和可用性

使用下列操作查看并管理负载平衡器中的监视器和监视器配置

取回监视器

取回负载平衡器配置显示器

获取/监测器

操作不接受请求体

响应

取回监视器列表

{     "data": [         {             "acceptRcode": "no-error",             "address": "any",             "answerContains": "query-type",             "appService": null,             "defaultsFrom": null,             "description": null,             "id": "dns",             "interval": 5,             "manualResume": "disabled",             "port": {                 "type": "any",                 "value": "any"             },             "qname": null,             "qtype": "a",             "recv": null,             "reverse": "disabled",             "timeUntilUp": 0,             "timeout": 16,             "transparent": "disabled",             "type": "dns",             "upInterval": 0         },         {             "address": "any",             "appService": null,             "cert": null,             "cipherlist": null,             "compatibility": null,             "defaultsFrom": null,             "description": null,             "id": "https",             "interval": 5,             "ipDscp": 0,             "key": null,             "manualResume": "disabled",             "password": null,             "port": {                 "type": "any",                 "value": "any"             },             "recv": null,             "recvDisable": null,             "reverse": "disabled",             "send": "//www.marisma21.com/support/reference/\"GET /\\r\\n\"",             "timeUntilUp": 0,             "timeout": 16,             "transparent": "disabled",             "type": "https",             "upInterval": 0,             "username": null         },         {             "address": "1.2.3.27",             "appService": null,             "defaultsFrom": "tcp",             "description": "//www.marisma21.com/support/reference/\"Updated value\"",             "id": "FakeTestMonitor",             "interval": 5,             "ipDscp": 0,             "manualResume": "disabled",             "port": {                 "type": "equal",                 "value": 86             },             "recv": "stuff",             "recvDisable": "disabled",             "reverse": "disabled",             "send": null,             "timeUntilUp": 0,             "timeout": 16,             "transparent": "enabled",             "type": "tcp",             "upInterval": 0         }     ] }

通过ID取回监视器

使用监视器ID检索指定监视器信息

获取/监测器/{监测器Id}

操作不接受请求体

响应

检索指定监视器的细节

{     "data": [         {             "id": "MON-TCP-80",             "type": "tcp",             "address":"any",             "port": {                 "type": "equal",                 "value": 80             },             "appService": null,             "defaultsFrom": "tcp",             "description": "none",             "interval": 5,             "ipDscp": 0,             "manualResume": "disabled",             "recv": null,             "recvDisable": null,             "reverse": "disabled",             "send": null,             "timeUntilUp": 0,             "timeout": 16,             "transparent": "disabled",             "upInterval": 0         }     ] }

更新监视器

更新负载平衡器配置的专用监视器

PUT/监控器/{monitorId}

请求主体

{     "address": "1.2.3.27",     "port": {         "type": "any",         "value": "86"     },     "type": "tcp",     "defaultsFrom": "/Common/tcp",     "description": "Updated value",     "interval": 5,     "ipDscp": 0,     "manualResume": "disabled",     "recv": "stuff",     "recvDisable": "disabled",     "reverse": "disabled",     "send": null,     "timeUntilUp": 0,     "timeout": 0,     "transparent": "enabled",     "upInterval": 0 }

响应

更新负载平衡器显示器

{数据}{事件b2a-0edf-4583-8e2c-ab0b54c78193}
         
          事件/事件/
          
           时间标识:2016-03-18T03:18:35.5077939Z}
          
         

创建监视器

向负载平衡器配置添加监视器

POST/监听器/{monitorId}

请求

地址 : 1.2.3.27, 端口 : 类型 : equality, equality, equality

响应

{数据}{事件d
         
          状态处理 资源处理
          
           事件/事件/
           
            时间标识:2016-03-18T03:18:35.5077939Z}
           
          
         

从负载平衡器删除监视器

从负载平衡器配置中删除指定的监视器

DELETE/监听器/{monitorId}

操作不接受请求体

响应

{数据}{事件d
         
          状态处理 资源处理
          
           时间标识 : 2016-03-24T10:41:08.61946Z
           
            }}
           
          
         
Baidu
map