该API允许用户使用Applications Manager中的REST API监视器的自定义属性来更新架构。
XML 输入:
http://[ APM Host ]:[ APM Port ]/AppManager/xml/updateRestAPIMonitorSchema
JSON 输入:
http://[ APM Host ]:[ APM Port ]/AppManager/json/updateRestAPIMonitorSchema
| 字段 | 描述 |
|---|---|
| apikey | 使用管理标签中的生成API密钥选项生成的密钥。 |
| resourceid | REST API监视器的resourceid,以逗号分隔。 |
| responseType | 指示响应类型-XML或JSON。 |
| schema | 要为REST API监视器更新的架构。它应该是XLST或JSON类型。 |
注意:仅应通过HTTP POST方法使用API 。
XML 输入:
http://apm-prod1:9090/AppManager/xml/updateRestAPIMonitorSchema
请求正文中的参数:
apikey=c4e547c2330e2eb92d3e7af2362da9e9resourceid=10000184,10000185responseType=XMLschema=<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:output method="text"/><xsl:template match="/"><xsl:for-each select="AppManager-response/result/response/Monitor"><xsl:value-of select="@DISPLAYNAME"></xsl:value-of>:<xsl:value-of select="@AVAILABILITYATTRIBUTEID"></xsl:value-of><xsl:text></xsl:text></xsl:for-each></xsl:template></xsl:stylesheet>
JSON输入:
http://apm-prod1:9090/AppManager/json/updateRestAPIMonitorSchema
请求正文中的参数:
apikey=c4e547c2330e2eb92d3e7af2362da9e9resourceid=10000184,10000185responseType=JSONschema=Response Code::response-codeURI::response.response.uri
XML输出:
<?xml version="1.0" encoding="UTF-8"?><AppManager-response uri="/AppManager/xml/updateRestAPIMonitorSchema"><result><response response-code="4000"><Status Status="Schema updated for the resourceid(s): 10000185"/></response></result></AppManager-response>
JSON输出:
{"response-code":"4000","response":{"result":[{"Status":"Schema updated for the resourceid(s): 10000185"}],"uri":"/AppManager/json/updateRestAPIMonitorSchema"}}
它允许我们跟踪关键指标,如响应时间、资源利用率、错误率和交易性能。实时监控告警会及时通知我们任何问题或异常,使我们能够立即采取行动。
审稿人角色:研究与开发

Lexmark技术支持经理