Ping API


此API将用于对给定服务器或与给定监视器的resourceid对应的服务器执行ping操作。将执行ping命令,并将结果作为请求的响应传递。

语法

XML响应API:

http://[ APM Host ]:[ APM Port ]/AppManager/xml/Ping?apikey=[ API Key ]&resourceid='10000157'

JSON响应的API:

http://[ APM Host ]:[ APM Port ]/AppManager/json/Ping?apikey=[ API Key ]&host='hemachand-0591'

请求参数

字段描述
resourceid此值指定监视器的resourceid,以便我们可以ping与监视器相对应的主机。
host这是任何服务器的主机,可以将其作为参数从Applications Manager服务器传递到ping。

响应参数

字段描述
APIKey这是用户名。
Describe这是创建用户帐户时对用户帐户的描述
EmailID这是用户的电子邮件ID
GroupName这是用户拥有的帐户类型。例如:操作员,管理员,经理等,
UserImage这是用户图像路径
UserID这是用户的ID
UserName这是用户的用户名

示例请求

XML 输入:

http://prod-server:9090/AppManager/xml/Ping?apikey=apikey=c4e547c2330e2eb92d3e7af2262da9e9&resourceid='10000157'

XML 响应:

<AppManager-response uri="/AppManager/xml/Ping">
<result>
<response response-code="4000">
<PingResult Output="Pinging 127.0.0.1 with 32 bytes of data:<br>Reply from 127.0.0.1: bytes=32 time<1ms TTL=128<br><br>Ping statistics for 127.0.0.1:<br> Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),<br>Approximate round trip times in milli-seconds:<br> Minimum = 0ms, Maximum = 0ms, Average = 0ms<br>" Host="127.0.0.1" IPAddress="127.0.0.1"/>
</response>
</result>
</AppManager-response>

JSON 输入:

http://apm-prod1:9090/AppManager/json/Ping?apikey=c4e547c2330e2eb92d3e7af2262da9e9&host=apm-prod1

JSON 响应:

{"response-code":"4000","response":{"uri":"/AppManager/json/Ping","result":[{"Output":"Pinging apm-prod1.csez.zohocorpin.com [fe80::51a4:f642:390a:7e1f%14] with 32 bytes of data:<br>Reply from fe80::51a4:f642:390a:7e1f%14: time<1ms <br><br>Ping statistics for fe80::51a4:f642:390a:7e1f%14:<br> Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),<br>Approximate round trip times in milli-seconds:<br> Minimum = 0ms, Maximum = 0ms, Average = 0ms<br>","Host":"apm-prod1.csez.zohocorpin.com","IPAddress":"192.168.26.79"}]}}

受到世界各地客户的喜爱

"具有广泛监控功能的Standout工具"

它允许我们跟踪关键指标,如响应时间、资源利用率、错误率和交易性能。实时监控告警会及时通知我们任何问题或异常,使我们能够立即采取行动。

审稿人角色:研究与开发

我喜欢Applications Manager,因为它可以帮助我们检测服务器和SQL数据库中存在的问题。
卡洛斯·里韦罗

Lexmark技术支持经理

受到全球6000多家企业的信任

我们的客户