仪表盘列表 API


该API会获取在服务器中创建的仪表板列表,其中包括在仪表板中配置的所有窗口小窗件,因为没有将仪表板/小窗件分配给操作员的概念。但是要补充的数据将基于为用户分配的监视器。


XML响应API: 


http://[ APM Host ]:[ APM Port ]/AppManager/xml/ListDashboards?apikey=[ Api Key ]


JSON响应的API: 


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

 

响应详情:

字段描述
DashboardId 用户名。
DashboardName 这是创建用户帐户时对用户帐户的描述
Widget WidgetName-这表示小窗件的显示名称
WidgetId-这是在此仪表板中创建的小窗件的ID
。 WidgetURL-这是此仪表板的小窗件的链接

 

<AppManager-response uri="/AppManager/xml/ListDashboards">
<result>
<response response-code="4000">
<Dashboard DashboardId="10000001" DashboardName="Default Dashboard">
<Widget WidgetName="Top N Monitors" WidgetId="10000040" WidgetURL="/MyPage.do?method=getWidget&pageid=10000001&widgetid=10000040"/>
<Widget WidgetName="Current Availability " WidgetId="10000044" WidgetURL="/MyPage.do?method=getWidget&pageid=10000001&widgetid=10000044"/>
<Widget WidgetName="Last 24 Hours/30 Days Availability History" WidgetId="10000046" WidgetURL="/MyPage.do?method=getWidget&pageid=10000001&widgetid=10000046"/>
<Widget WidgetName="Last 24 Hours/30 Days Health History" WidgetId="10000047" WidgetURL="/MyPage.do?method=getWidget&pageid=10000001&widgetid=10000047"/>
<Widget WidgetName="Availability,Health and Alarm Summary" WidgetId="10000048" WidgetURL="/MyPage.do?method=getWidget&pageid=10000001&widgetid=10000048"/>
<Widget WidgetName="Monitor Groups" WidgetId="10000057" WidgetURL="/MyPage.do?method=getWidget&pageid=10000001&widgetid=10000057"/>
<Widget WidgetName="Infrastructure Snapshot" WidgetId="10000078" WidgetURL="/MyPage.do?method=getWidget&pageid=10000001&widgetid=10000078"/>
<Widget WidgetName="Recent 10 Alarms" WidgetId="10000079" WidgetURL="/MyPage.do?method=getWidget&pageid=10000001&widgetid=10000079"/>
<Widget WidgetName="Performance Metric Widget" WidgetId="10000088" WidgetURL="/MyPage.do?method=getWidget&pageid=10000001&widgetid=10000088"/>
</Dashboard>
<Dashboard DashboardId="10000005" DashboardName="pavan dashboard">
<Widget WidgetName="Top N Monitors" WidgetId="10000007" WidgetURL="/MyPage.do?method=getWidget&pageid=10000005&widgetid=10000007"/>
<Widget WidgetName="Tabular Data" WidgetId="10000008" WidgetURL="/MyPage.do?method=getWidget&pageid=10000005&widgetid=10000008"/>
<Widget WidgetName="Recent 10 Alarms" WidgetId="10000009" WidgetURL="/MyPage.do?method=getWidget&pageid=10000005&widgetid=10000009"/>
</Dashboard>
</response>
</result>
</AppManager-response>


JSON输入

http://apm-prod1:9090/AppManager/json/ListDashboards?apikey=c4e547c2330e2eb92d3e7af2262da9e9

JSON 响应

{"response-code":"4000","response":{"uri":"/AppManager/json/ListDashboards","result":[{"Widget":[{"WidgetName":"Monitor Groups","WidgetId":"20000001","WidgetURL":"/MyPage.do?method=getWidget&pageid=20000001&widgetid=20000001"},{"WidgetName":"Infrastructure Snapshot","WidgetId":"20000002","WidgetURL":"/MyPage.do?method=getWidget&pageid=20000001&widgetid=20000002"},{"WidgetName":"Recent 10 Alarms","WidgetId":"20000003","WidgetURL":"/MyPage.do?method=getWidget&pageid=20000001&widgetid=20000003"}],"DashboardId":"20000001","DashboardName":"Default Dashboard"}]}}