You can use this API is used to pull up availability data on a monitor group in Applications Manager. Depending on the output format that you require, you can use one of the following APIs:
Sample Request:
https://[HOST]:[PORT]/AppManager/json/getMonitorGroupAvailabilityInfo?apikey=[REST API Key]
Supported HTTP methods: GET
Allowed roles: Administrator, Operator, User
Request Parameters
The parameters involved in the API request are described below:
Field | Description |
---|---|
apikey * | The key generated from the Generate API Key option in the Settings tab. |
IncludeSubGroup | Specify 'IncludeSubGroup=true' if you also wish to know the availability status of the sub-group within the monitor group. |
CustomTime | Specify CustomTime=true for custom time availability report. If CustomTime is true then you must provide StartTime and EndTime. |
StartTime | The start time of the report, in milliseconds. |
EndTime | The end time of the report in milliseconds. |
ReportPeriod |
The time period for which the report should be created. If this parameter is not provided then today's availability is shown. Possible values are:
|
HAID | The ID of the monitor group. In Applications Manager, you can find the groupID of a monitor group using the following method:
|
* mandatory
https://apm-prod-server:8443/AppManager/json/getMonitorGroupAvailabilityInfo?apikey=aaaaaabbbbbbccccccddddddeeeeee
To include sub-group:
https://apm-prod-server:8443/AppManager/json/getMonitorGroupAvailabilityInfo?apikey=aaaaaabbbbbbccccccddddddeeeeee&IncludeSubGroup=true
For service availability calculation:
https://apm-prod-server:8443/AppManager/json/getMonitorGroupAvailabilityInfo?apikey=aaaaaabbbbbbccccccddddddeeeeee&ServiceAvailability=true
For custom time availability report:
https://apm-prod-server:8443/AppManager/json/getMonitorGroupAvailabilityInfo?apikey=aaaaaabbbbbbccccccddddddeeeeee&CustomTime=true&StartTime=1584877371000&EndTime=1585136571000
To set the Report Period:
https://apm-prod-server:8443/AppManager/json/getMonitorGroupAvailabilityInfo?apikey=aaaaaabbbbbbccccccddddddeeeeee&ReportPeriod=1
To filter with HAIDs:
https://apm-prod-server:8443/AppManager/xml/getMonitorGroupAvailabilityInfo?apikey=aaaaaabbbbbbccccccddddddeeeeee&IncludeSubGroup=true&HAID=10000
Description |
Sample Inputs and Outputs |
---|---|
To include sub-group |
Input: https://apm-prod-server:8443/AppManager/xml/getMonitorGroupAvailabilityInfo?apikey=aaaaaabbbbbbccccccddddddeeeeee&IncludeSubGroup=true Output: <AppManager-response uri="/AppManager/xml/getMonitorGroupAvailabilityInfo"> |
Sample Request:
https://[HOST]:[PORT]/AppManager/json/getMonitorGroupAvailability?apikey=[REST API Key]
Supported HTTP methods: GET
Allowed roles: Administrator, Operator, User
Request Parameters
The parameters involved in the API request are described below:
Field | Description |
---|---|
apikey * | The key generated from the Generate API Key option in the Settings tab. |
IncludeSubGroup | Specify IncludeSubGroup=true if you also wish to know the availability status of the sub-group within the monitor group. |
CustomTime | Specify CustomTime=true for custom time availability report. If CustomTime is true then you must provide StartTime and EndTime |
StartTime | The start time of the report, in milliseconds. |
EndTime | The end time of the report in milliseconds. |
ReportPeriod |
The time period for which the report should be created. If this parameter is not provided then today's availability is shown. Possible values are:
|
HAID | The id of the monitor group. In Applications Manager, you can find the groupID of a monitor group using the following method:
|
* - mandatory
https://apm-prod-server:8443/AppManager/json/getMonitorGroupAvailability?apikey=aaaaaabbbbbbccccccddddddeeeeee
To include sub-group:
https://apm-prod-server:8443/AppManager/json/getMonitorGroupAvailability?apikey=aaaaaabbbbbbccccccddddddeeeeee&IncludeSubGroup=true
For service availability calculation:
https://apm-prod-server:8443/AppManager/json/getMonitorGroupAvailability?apikey=aaaaaabbbbbbccccccddddddeeeeee&ServiceAvailability=true
For custom time availability report:
https://apm-prod-server:8443/AppManager/json/getMonitorGroupAvailability?apikey=aaaaaabbbbbbccccccddddddeeeeee&CustomTime=true&StartTime=1584877371000&EndTime=1585136571000
To set the Report Period:
https://apm-prod-server:8443/AppManager/json/getMonitorGroupAvailability?apikey=aaaaaabbbbbbccccccddddddeeeeee&ReportPeriod=1
To filter with HAIDs:
https://apm-prod-server:8443/AppManager/xml/getMonitorGroupAvailabilityInfo?apikey=aaaaaabbbbbbccccccddddddeeeeee&IncludeSubGroup=true&HAID=10000
Description |
Sample Inputs and Outputs |
---|---|
To include sub-group |
Input: https://apm-prod-server:8443/AppManager/json/getMonitorGroupAvailability?apikey=aaaaaabbbbbbccccccddddddeeeeee&IncludeSubGroup=true Output: Today Availability Report |