ManageEngine® Applications Manager


显示轮询数据

<< 上一页

主页

下一页 >>

显示轮询数据API

 

这个API可以获取指派给用户的监视器的轮询数据。

 

XML响应API

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

 

JSON响应API

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

 

请求参数

字段 描述
resourceid 这是值是要提取数据的监视器的resourceid
attributeID 这个值是要显示的轮询或归档的属性ID
period 这个值指定的是数据要返回的类型,包括:20显示轮询数据, -7显示7天的归档数据, -30显示30天的归档数据

示例URL:

 

轮询的数据

 

XML响应API

http://[ APM Host ]:[ APM Port ]/AppManager/xml/showPolledData?apikey=8c8ec3f2cd30722d3a6f980df12c1e5f&resourceid=10000042&period=20&attributeID=310

 

JSON响应API

http://[ APM Host ]:[ APM Port ]/AppManager/json/showPolledData?apikey=8c8ec3f2cd30722d3a6f980df12c1e5f&resourceid=10000042&period=20&attributeID=3102

 

最近7天的数据

 

XML响应API

http://[ APM Host ]:[ APM Port ]/AppManager/xml/showPolledData?apikey=8c8ec3f2cd30722d3a6f980df12c1e5f&resourceid=10000042&period=-7&attributeID=3102

 

JSON响应API

http://[ APM Host ]:[ APM Port ]/AppManager/json/showPolledData?apikey=8c8ec3f2cd30722d3a6f980df12c1e5f&resourceid=10000042&period=-7&attributeID=3102

 

最近30天的数据

 

XML响应API

http://[ APM Host ]:[ APM Port ]/AppManager/xml/showPolledData?apikey=8c8ec3f2cd30722d3a6f980df12c1e5f&resourceid=10000042&period=-30&attributeID=3102

 

JSON响应API

http://[ APM Host ]:[ APM Port ]/AppManager/json/showPolledData?apikey=8c8ec3f2cd30722d3a6f980df12c1e5f&resourceid=10000042&period=-30&attributeID=3102

 

响应明细

字段 描述

StartTime

这是生成7/30/显示轮询数据报表的开始时间(毫秒格式)

EndTime

这是生成7/30/显示轮询数据报表的结束时间(毫秒格式)
StartDateTime 这是生成7/30/显示轮询数据报表的开始时间(日期时间格式)
EndDateTime 这是生成7/30/显示轮询数据报表的结束时间(日期时间格式)
ResourceName 这是数据返回的监视器名称
ResourceType 这是数据返回的资源类型
AttributeName 这是属性的名称
Unit 这是属性的单位
AttributeID 这是属性的ID
ReportType 这是API要返回的数据类型(轮询数据/7天数据/30天数据)
BusinessPeriod 这代表工作时间段名称
ResourceId 这是监视器的resourceid
AttributeImage 这是此次响应返回数据的属性图表
Status 这是REST API响应获取轮询数据的状态
Period 这个值指定的是数据要返回的类型,包括:20显示轮询数据, -7显示7天的归档数据, -30显示30天的归档数据
RawData CollectionTime -- 代表数据收集的时间(ms)
DateTime -- 代表书记收集的日期时间
Value -- 代表参数的值
ArchiveData ArchivedTime -- 代表归档时间(ms)
DateTime -- 代表归档的日期时间
AvgValue -- 这是归档期间值的平均值
MinValue -- 这是数据归档期间的最小值
MaxValue -- 这是数据归档期间的最大值

<AppManager-response uri="/AppManager/xml/ShowPolledData">
<result>
<response response-code="4000">
<Monitorinfo StartTime="1328775260450" EndDateTime="Mar 29, 2012 3:00 PM" ResourceName="APM-Windows" Unit="ms" EndTime="1333013434474" BusinessPeriod="NA" MonitorType="Response Time" ReportType="Polled data" ResourceId="10001267" AttributeID="4602" AttributeImage="/webclient/temp/images/RSVmYs.jpg" ServerType="GlassFish" Status="SUCCESS" StartDateTime="Feb 9, 2012 1:44 PM" Period="20">
<RawData CollectionTime="1333013434474" Value="1" DateTime="Mar 29, 2012 3:00 PM"/>
<RawData CollectionTime="1333013134022" Value="1" DateTime="Mar 29, 2012 2:55 PM"/>
<RawData CollectionTime="1333012833497" Value="1" DateTime="Mar 29, 2012 2:50 PM"/>
<RawData CollectionTime="1333012532708" Value="1" DateTime="Mar 29, 2012 2:45 PM"/>
<RawData CollectionTime="1333012227193" Value="1" DateTime="Mar 29, 2012 2:40 PM"/>
<RawData CollectionTime="1328775260450" Value="1" DateTime="Feb 9, 2012 1:44 PM"/>
</Monitorinfo>
</response>
</result>
</AppManager-response>

JSON输入

http://apm-prod1:9090/AppManager/json/ShowPolledData?apikey=c4e547c2330e2eb92d3e7af2262da9e9&resourceid=20000039&period=20&attributeID=1957

JSON响应

{"response-code":"4000","response":{"uri":"/AppManager/json/ShowPolledData","result":[{"StartTime":"1337928634448","EndDateTime":"May 25, 2012 3:32 PM","ResourceName":"apm-prod1_Windows Vista","Unit":"%","EndTime":"1337940130413","BusinessPeriod":"NA","ReportType":"Polled data","ThresholdDetails":[],"ResourceId":"20000039","AttributeName":"CPU Utilization","AttributeID":"1957","AttributeImage":"/webclient/temp/images/fjrEKg.jpg","Status":"SUCCESS","RawData":[{"CollectionTime":"1337940130413","Value":"18","DateTime":"May 25, 2012 3:32 PM"},{"CollectionTime":"1337939525577","Value":"11","DateTime":"May 25, 2012 3:22 PM"},{"CollectionTime":"1337938920641","Value":"5","DateTime":"May 25, 2012 3:12 PM"},{"CollectionTime":"1337938315808","Value":"6","DateTime":"May 25, 2012 3:01 PM"},{"CollectionTime":"1337937710788","Value":"7","DateTime":"May 25, 2012 2:51 PM"},{"CollectionTime":"1337937105838","Value":"7","DateTime":"May 25, 2012 2:41 PM"},{"CollectionTime":"1337936500971","Value":"9","DateTime":"May 25, 2012 2:31 PM"},{"CollectionTime":"1337935895963","Value":"18","DateTime":"May 25, 2012 2:21 PM"},{"CollectionTime":"1337935291160","Value":"7","DateTime":"May 25, 2012 2:11 PM"},{"CollectionTime":"1337934686297","Value":"31","DateTime":"May 25, 2012 2:01 PM"},{"CollectionTime":"1337934079880","Value":"13","DateTime":"May 25, 2012 1:51 PM"},{"CollectionTime":"1337933475084","Value":"16","DateTime":"May 25, 2012 1:41 PM"},{"CollectionTime":"1337932869853","Value":"34","DateTime":"May 25, 2012 1:31 PM"},{"CollectionTime":"1337932263739","Value":"8","DateTime":"May 25, 2012 1:21 PM"},{"CollectionTime":"1337931658583","Value":"7","DateTime":"May 25, 2012 1:10 PM"},{"CollectionTime":"1337931053751","Value":"17","DateTime":"May 25, 2012 1:00 PM"},{"CollectionTime":"1337930448921","Value":"9","DateTime":"May 25, 2012 12:50 PM"},{"CollectionTime":"1337929844110","Value":"6","DateTime":"May 25, 2012 12:40 PM"},{"CollectionTime":"1337929239270","Value":"3","DateTime":"May 25, 2012 12:30 PM"},{"CollectionTime":"1337928634448","Value":"9","DateTime":"May 25, 2012 12:20 PM"}],"ResourceType":"Windows Vista","StartDateTime":"May 25, 2012 12:20 PM","Period":"20"}]}}

<< 上一页

主页

下一页 >>

搜索

执行操作