ManageEngine® Applications Manager 阈值配置 | ||
这些API允许管理员用户在Applications Manager中配置阈值。阈值配置API支持GET和POST请求:
关于执行该API的请求参数如下:
字段 | 描述 |
thresholdname |
阈值显示名称。如果阈值或动作的显示名称包含特殊字符,例如 # , &或 + :
然后在RESTAPI中传递thresholdname参数。 |
criticalcondition、warningcondition、clearcondition |
可能的值有:
|
criticalvalue, clearvalue, warningvalue |
严重,警告或清除状态的值。 |
criticalpolls, warningpolls, clearpolls |
值表示严重、警告或清除轮询。 |
warningmessage, clearmessage, criticalmessage |
通知用户严重、警告或清除条件的消息。 |
Type | 阈值类型,可能的值有:
|
该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
邮件服务器配置 |
错误处理 |