编辑服务监视器API


该API允许您编辑服务监视器的详细信息。

用于编辑服务监视器的API

http://[Host]:[Port]/AppManager/xml/EditMonitor?apikey=[APIKEY]&type=Service Monitoring&resourceid=[RESOURCEID]&newdisplayname=[NEWDISPLAYNAME]&pollInterval=[poll Interval]&command=[COMMAND]&search=[SEARCH]

( 或者 )

http://[Host]:[Port]/AppManager/xml/EditMonitor?apikey=[APIKEY]&type=Service Monitoring&displayname=[DISPLAYNAME]&newdisplayname=[DISPLAYNAME]&pollInterval=[pollIn terval]&command=[COMMAND]&search=[SEARCH]

请求参数

字段 描述
command 连接到端口后将执行的命令。
search 执行命令后必须搜索的字符串
其他常规API

示例请求

  • http://app-windows:9090/AppManager/xml/EditMonitor?apikey=9481566a94f26d8e44ee0889fd7628a0&type=Service Monitoring&resourceid=10000116&newdisplayname=zoho
  • http://app-windows:9090/AppManager/xml/EditMonitor?apikey=9481566a94f26d8e44ee0889fd7628a0&type=Service Monitoring&resourceid=10000116&command=GET/HTTP1.1
  • http://app-windows:9090/AppManager/xml/EditMonitor?apikey=9481566a94f26d8e44ee0889fd7628a0&type=Service Monitoring&resourceid=10000116&search=h
  • http://app-windows:9090/AppManager/xml/EditMonitor?apikey=9481566a94f26d8e44ee0889fd7628a0&type=Service Monitoring&resourceid=10000116&pollInterval=10&search=&command=GET/HTTP1.0&newdisplayname=zoho