该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"> |
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"}]}}
|