ManageEngine® Applications Manager 告警动作 | ||
该API用于在Applications Manager中执行告警动作,例如指派、取消指派、清除告警和添加、列出注释。
API的XML响应:
http://[ APM Host ]:[ APM Port ]/AppManager/xml/AlarmAction?apikey=<api_key>&action=<action_type>&entity=<alarm_entity>&username=<user name>&message=<message>;
API的JSON响应:
http://[ APM Host ]:[ APM Port ]/AppManager/json/AlarmAction?apikey=<api_key>&action=<action_type>&entity=<alarm_entity>&username=<user name>&message=<message>;
请求参数:
字段 | 描述 |
AppManager_Host | 安装Applications Manager的服务器。 |
AppManager_Port | Applications Manager的web服务器端口。 |
api_key | 执行操作的用户的API密钥。 |
action_type | 收集告警 / 取消收集告警 / 清除告警 / 添加注释 / 列出注释 |
entity | 监视器的资源ID或属性ID |
message | 指定为告警作注释的消息 |
username | 用于收集告警的API密钥用户的用户名 |
示例XML输入: http://apm-prod1:9090/AppManager/xml/AlarmAction?apikey=37097301e45784daa94889f35f2509ab&action=ClearAlarm&entity=10000285_527
示例XML响应: <AppManager-response uri="/AppManager/xml/AlarmAction"><result><response response-code="4000"><message>Successfully Cleared the Alarm!</message></response></result></AppManager-response> |
JSON输入 http://apm-prod1:9090/AppManager/json/AlarmAction?apikey=37097301e45784daa94889f35f2509ab&action=ClearAlarm&entity=10000285_527
JSON响应 {"response":{"result":[{"message":"Successfully Cleared the Alarm!"}],"uri":"/AppManager/json/AlarmAction"},"response-code":"4000"} |
API执行操作 |
应用许可 |