ManageEngine® Applications Manager


阈值配置

<< 上一页

主页

下一页 >>

阈值配置API

 

这些API允许管理员用户在Applications Manager中配置阈值。阈值配置API支持GET和POST请求:

请求参数


关于执行该API的请求参数如下:

 

字段 描述        
thresholdname

阈值显示名称。如果阈值或动作的显示名称包含特殊字符,例如 # , &或 + :

  • # 应该替换为 %23
  • & 应该替换为 %26
  • + 应该替换为 %2B

然后在RESTAPI中传递thresholdname参数。

criticalcondition、warningcondition、clearcondition

可能的值有:

  • 数值型与浮点型阈值条件:
    • LT - 小于httpValue
    • GT - 大于httpValue
    • EQ - 等于httpValue
    • NE - 不等于httpValue
    • LE - 小于或等于
    • GE - 大于或等于
  • 字符型阈值条件
    • CT - 包含
    • DC - 不包含
    • QL - 等于
    • NQ - 不等于
    • SW - 开头
    • EW - 结尾
criticalvalue, clearvalue, warningvalue
严重,警告或清除状态的值。
criticalpolls, warningpolls, clearpolls
值表示严重、警告或清除轮询。
warningmessage, clearmessage, criticalmessage
通知用户严重、警告或清除条件的消息。
Type

阈值类型,可能的值有:

  • 1 为数字型阈值
  • 4 为浮点型阈值
  • 3 为字符型阈值

添加阈值

该API允许管理员用户在Applications Manager中添加阈值。

 

语法

对于XML响应:

http://[ APM Host ]:[ APM Port ]/AppManager/xml/threshold?apikey=[ API Key ]&clearvalue=[ Clear Value ]&criticalpolls=[ Critical Polls ]&clearcondition=[ Clear Condition ]&criticalmessage=[ Critical Message ]&thresholdname=[ Threshold name ]&clearmessage= [Clear Message ]&type=1&criticalcondition=GT&warningcondition=GT&warningmessage=Warning Message&warningpolls=[ Warning Polls ]&clearpolls=[ Clear polls ]&warningvalue=[ Warning Value ]&criticalvalue=[ Critical Value ]

 

 

对于JSON响应:

http://[ APM Host ]:[ APM Port ]/AppManager/json/threshold?apikey=[ API Key ]&clearvalue=[ Clear Value ]&criticalpolls=[ Critical Polls ]&clearcondition=[ Clear Condition ]&criticalmessage=[ Critical Message ]&thresholdname=[ Threshold name ]&clearmessage= [Clear Message ]&type=1&criticalcondition=GT&warningcondition=GT&warningmessage=Warning Message&warningpolls=[ Warning Polls ]&clearpolls=[ Clear polls ]&warningvalue=[ Warning Value ]&criticalvalue=[ Critical Value ]

示例

http://app-windows:59090/AppManager/xml/threshold?apikey=09eebdd6893db4d20e16b84dff6664f1&clearvalue=5&criticalpolls=3&clearcondition=EQ&criticalmessage=Critical message&thresholdname=Sample Threshold&clearmessage=Clear Message&type=1&criticalcondition=GT&warningcondition=GT&warningmessage=Warning Message&warningpolls=3&clearpolls=3&warningvalue=15&criticalvalue=5

 

 

更新阈值

该API允许管理员用户编辑在Applications Manager中添加的阈值。

 

语法:

对于XML响应:

http://[ APM Host ]:[ APM Port ]/AppManager/xml/threshold?apikey=[ API Key ]&clearvalue=[ Clear Value ]&criticalpolls=[ Critical Polls ]&clearcondition=[ Clear Condition ]&criticalmessage=updated message&clearmessage=&type=1&criticalcondition=GT&warningcondition=GT&warningmessage=&warningpolls=0&description=&newthresholdname=Sample Threshold&clearpolls=[ Warning Polls ]&thresholdid=[ Threshold Id ] &warningvalue=[ Warning Value&criticalvalue=[ Critical Value]

 

对于JSON响应:

http://[ APM Host ]:[ APM Port ]/AppManager/json/threshold?apikey=[ API Key ]&clearvalue=[ Clear Value ]&criticalpolls=[ Critical Polls ]&clearcondition=[ Clear Condition ]&criticalmessage=updated message&clearmessage=&type=1&criticalcondition=GT&warningcondition=GT&warningmessage=&warningpolls=0&description=&newthresholdname=Sample Threshold&clearpolls=[ Warning Polls ]&thresholdid=[ Threshold Id ] &warningvalue=[ Warning Value&criticalvalue=[ Critical Value]

示例

http://app-windows:59090/AppManager/xml/threshold?apikey=09eebdd6893db4d20e16b84dff6664f1&clearvalue=5&criticalpolls=0&clearcondition=GT&criticalmessage=updated message&clearmessage=&type=1&criticalcondition=GT&warningcondition=GT&warningmessage=&warningpolls=0&description=&newthresholdname=Sample Threshold&clearpolls=0&thresholdid=10001&warningvalue=5&criticalvalue=5

 

删除阈值

该API允许管理员用户删除Applications Manager中的阈值。

 

语法:

对于XML响应:

http://[ APM Host ]:[ APM Port ]/AppManager/xml/threshold?apikey=[ API Key ]&thresholdid=[ Threshold Id=],&TO_DELETE=true

 

对于JSON响应:

http://[ APM Host ]:[ APM Port ]/AppManager/json/threshold?apikey=[ API Key ]&thresholdid=[ Threshold Id=],&TO_DELETE=true

示例

http://app-windows:59090/AppManager/xml/threshold?apikey=09eebdd6893db4d20e16b84dff6664f1&thresholdid=10001,10003,10002,10000,&TO_DELETE=true

阈值列表

该API允许管理员用户列出Applications Manager中的阈值。

 

语法:

对于XML响应:

http://[ APM Host ]:[ APM Port ]/AppManager/xml/threshold?apikey=[ API Key ]

 

对于JSON响应:

http://[ APM Host ]:[ APM Port ]/AppManager/json/threshold?apikey=[ API Key ]

示例

http://app-windows:59090/AppManager/xml/threshold?apikey=09eebdd6893db4d20e16b84dff6664f1

页首

<< 上一页

主页

下一页 >>

邮件服务器配置

错误处理