业务组详情列表 API


此API将获取给定业务组ID的业务组详细信息,其中包括该业务组配置的所有子组和关联的监视器。这还将列出与用户关联的业务组。这将包含有关业务组今天的可用性,监视器在子组和相关监视器之间的健康状况的信息。

 

XML响应API :

http://[ APM Host ]:[ APM Port ]AppManager/xml/ListMGDetails?apikey=[ API Key ]&groupId=10000048

 

JSON响应API:

http://[ APM Host ]:[ APM Port ]AppManager/json/ListMGDetails?apikey=[ API Key ]&groupName=''Test Group'

 

请求参数:

 

字段描述
groupId 此参数用于根据用户的业务组标识获取业务组及其关联的监视器
groupName 此参数用于根据用户的业务组名称获取业务组及其关联的监视器

响应详情:

 

字段描述
NAME \ DISPLAYNAME 这是该组的显示名称
DetailsPageURL 这是该组详细信息页面的URL
TODAYUNAVAILPERCENT 这是该组今天的不可用百分比
Action 这表示是否启用了动作
TODAYAVAILPERCENT 这是此业务组的当前可用性百分比
TODAYSCHEDDOWNPERCENT 这是此业务组的今天计划的停机时间百分比
Type 这代表类型
HEALTHSEVERITY 这代表该组的健康严重程度
AVAILABILITYSEVERITY 这代表该组可用性的严重级别
AVAILABILITYMESSAGE 这代表该组的可用性消息
RESOURCEID 这是该组的resourceid
HealthRCAURL 这是该组的健康状况RCA网址
TODAYUNMANGDPERCENT 这是此业务组的当前未管理百分比
HEALTHMESSAGE 这代表该组的健康信息
HEALTHSTATUS 这是这个组的健康状况
AVAILABILITYSTATUS 这是该组的可用性状态
SubMonitorGroup

DetailsPageURL --------->这是子组的详细信息页面

TODAYUNAVAILPERCENT --------->这是此子组的今天的不可用百分比

AvailabilityRCAURL --------->这是子组的可用性RCA url

Action--------->这是子组的动作状态

NAME \ DISPLAYNAME --------->这是子组的显示名

TODAYA​​VAILPERCENT --------->这是子组今天的可用性百分比

TODAYSCHEDDOWNPERCENT --------->这是子组今天的计划停机时间百分比

HEALTHSEVERITY --------->这是子组的健康严重程度

TYPE --------->这代表组的类型

AVAILABILITYSEVERITY --------->这是子组的可用性严重程度

AVAILABILITYMESSAGE--------->这是子组的可用性消息

RESOURCEID --------->这是子组的resourceid

HealthRCAURL --------->这是子组的健康RCA url

TODAYUNMANGDPERCENT --------->这是今天该子组的未管理百分比

HEALTHMESSAGE--------->这是子组的健康信息

HEALTHSTATUS--------->这是子组的健康状况

AVAILABILITYSTATUS --------->这是子组的可用性状态

Monitors

DetailsPageURL --------->这是监视器的详细信息页面

TODAYUNAVAILPERCENT --------->这是该监视器今天的不可用百分比

AvailabilityRCAURL --------->这是监视器的可用性RCA url

Action--------->这是监视器的动作状态

NAME \ DISPLAYNAME --------->这是监视器的显示名称

TODAYA​​VAILPERCENT --------->这是监视器今天的可用性百分比

TODAYSCHEDDOWNPERCENT --------->这是监视器的今天计划的停机时间百分比

HEALTHSEVERITY --------->这是监视器的健康严重程度

TYPE --------->这代表监视器的类型

AVAILABILITYSEVERITY--------->这是监视器的可用性严重程度

AVAILABILITYMESSAGE--------->这是监视器的可用性消息

RESOURCEID --------->这是监视器的resourceid

HealthRCAURL --------->这是监视器的健康RCA url

TODAYUNMANGDPERCENT --------->这是今天监视器的未管理百分比

HEALTHMESSAGE--------->这是监视器的健康信息

HEALTHSTATUS --------->这是监视器的健康状态

AVAILABILITYSTATUS --------->这是监视器的可用性状态

  

JSON 输入

http://apm-prod1:9090/AppManager/json/ListMGDetails?apikey=c4e547c2330e2eb92d3e7af2262da9e9&type=all

JSON 响应

{"response-code":"4000","response":{"uri":"/AppManager/json/ListMGDetails","result":[{"DetailsPageURL":"/showresource.do?method=showResourceForResourceID&resourceid=20000036&method=showApplication","Monitors":[{"DetailsPageURL":"/showresource.do?method=showResourceForResourceID&resourceid=20000043&method=showApplication","TODAYUNAVAILPERCENT":"0","AvailabilityRCAURL":"/jsp/RCA.jsp?resourceid=20000043&attributeid=17","Action":"enabled","NAME":"AppManager Home Page","TODAYAVAILPERCENT":"100","TODAYSCHEDDOWNPERCENT":"0","HEALTHSEVERITY":"1","TYPE":"UrlMonitor","AVAILABILITYSEVERITY":"1","AVAILABILITYMESSAGE":"Resource down.
The resource AppManager Home Page is not available.Connection Timed Out. Increase the time out level:ResponseCode -200
-->>","RESOURCEID":"20000043","HealthRCAURL":"/jsp/RCA.jsp?resourceid=20000043&attributeid=18","TODAYUNMANGDPERCENT":"0","HEALTHMESSAGE":"Health of AppManager Home Page is critical.
Root Cause :
1. AppManager Home Page is down
","HEALTHSTATUS":"critical","DISPALYNAME":"AppManager Home Page","AVAILABILITYSTATUS":"down"},{"DetailsPageURL":"/showresource.do?method=showResourceForResourceID&resourceid=20000041&method=showApplication","TODAYUNAVAILPERCENT":"0","AvailabilityRCAURL":"/jsp/RCA.jsp?resourceid=20000041&attributeid=17","Action":"enabled","NAME":"apm-prod1_Apache Server_9090","TODAYAVAILPERCENT":"100","TODAYSCHEDDOWNPERCENT":"0","HEALTHSEVERITY":"5","TYPE":"Apache-server","AVAILABILITYSEVERITY":"5","AVAILABILITYMESSAGE":"Resource up.
The resource apm-prod1_Apache Server_9090 is available.","RESOURCEID":"20000041","HealthRCAURL":"/jsp/RCA.jsp?resourceid=20000041&attributeid=18","TODAYUNMANGDPERCENT":"0","HEALTHMESSAGE":"Health of apm-prod1_Apache Server_9090 is clear.
Root Cause :
1. apm-prod1_Apache Server_9090 is up
2. Response Time 16 ","HEALTHSTATUS":"clear","DISPALYNAME":"apm-prod1_Apache Server_9090","AVAILABILITYSTATUS":"up"},{"DetailsPageURL":"/showresource.do?method=showResourceForResourceID&resourceid=20000039&method=showApplication","TODAYUNAVAILPERCENT":"0","AvailabilityRCAURL":"/jsp/RCA.jsp?resourceid=20000039&attributeid=17","Action":"enabled","NAME":"apm-prod1_Windows Vista","TODAYAVAILPERCENT":"100","TODAYSCHEDDOWNPERCENT":"0","HEALTHSEVERITY":"5","TYPE":"Windows Vista","AVAILABILITYSEVERITY":"5","AVAILABILITYMESSAGE":"Resource up.
The resource apm-prod1_Windows Vista is available.","RESOURCEID":"20000039","HealthRCAURL":"/jsp/RCA.jsp?resourceid=20000039&attributeid=18","TODAYUNMANGDPERCENT":"0","HEALTHMESSAGE":"Health of apm-prod1_Windows Vista is clear.
Root Cause :
1. Data Collection Successful
2. apm-prod1_Windows Vista is up
","HEALTHSTATUS":"clear","DISPALYNAME":"apm-prod1_Windows Vista","AVAILABILITYSTATUS":"up"}],"TODAYUNAVAILPERCENT":"100.0","AvailabilityRCAURL":"/jsp/RCA.jsp?resourceid=20000036&attributeid=17","Action":"enabled","NAME":"Applications Manager","TODAYAVAILPERCENT":"0.0","TODAYSCHEDDOWNPERCENT":"0.0","Type":"Monitor Group","HEALTHSEVERITY":"1","AVAILABILITYSEVERITY":"1","AVAILABILITYMESSAGE":"Resource Applications Manager is down.
Root Cause :

  1. Resource down.
    The resource AppManager Home Page is not available.Connection Timed Out. Increase the time out level:ResponseCode -200
    -->><\/li><\/ol>","RESOURCEID":"20000036","HealthRCAURL":"/jsp/RCA.jsp?resourceid=20000036&attributeid=18","TODAYUNMANGDPERCENT":"0.0","HEALTHMESSAGE":"Health of Applications Manager is Critical.
    Root Cause :
    1. Health of AppManager Home Page is critical.
      Root Cause :
      1. AppManager Home Page is down
      <\/li><\/ol>","DISPLAYNAME":"Applications Manager","HEALTHSTATUS":"critical","AVAILABILITYSTATUS":"down"}]}}