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:
http://[hostname]:[port]/AppManager/json/getMonitorGroupAvailabilityInfo?apikey=[REST API Key]
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 'Admin' 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
http://localhost:9090/AppManager/json/getMonitorGroupAvailabilityInfo?apikey=833015a191b75b11f953774ab34f034d
To include sub-group:
http://localhost:9090/AppManager/json/getMonitorGroupAvailabilityInfo?apikey=833015a191b75b11f953774ab34f034d&IncludeSubGroup=true
For service availability calculation:
http://localhost:9090/AppManager/json/getMonitorGroupAvailabilityInfo?apikey=833015a191b75b11f953774ab34f034d&ServiceAvailability=true
For custom time availability report:
http://localhost:9090/AppManager/json/getMonitorGroupAvailabilityInfo?apikey=833015a191b75b11f953774ab34f034d&CustomTime=true&StartTime=1584877371000&EndTime=1585136571000
To set the Report Period:
http://localhost:9090/AppManager/json/getMonitorGroupAvailabilityInfo?apikey=833015a191b75b11f953774ab34f034d&ReportPeriod=1
To filter with HAIDs:
http://localhost:9092/AppManager/xml/getMonitorGroupAvailabilityInfo?apikey=a593773d172734ed160d7cd6502a23e2&IncludeSubGroup=true&HAID=10000
Description |
Sample Inputs and Outputs |
---|---|
To include sub-group |
Input: http://localhost:9092/AppManager/xml/getMonitorGroupAvailabilityInfo?apikey=a593773d172734ed160d7cd6502a23e2&IncludeSubGroup=true Output: <AppManager-response uri="/AppManager/xml/getMonitorGroupAvailabilityInfo"> |
Sample Request:
http://[hostname]:[port]/AppManager/json/getMonitorGroupAvailability?apikey=[REST API Key]
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 'Admin' 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
http://localhost:9090/AppManager/json/getMonitorGroupAvailability?apikey=833015a191b75b11f953774ab34f034d
To include sub-group:
http://localhost:9090/AppManager/json/getMonitorGroupAvailability?apikey=833015a191b75b11f953774ab34f034d&IncludeSubGroup=true
For service availability calculation:
http://localhost:9090/AppManager/json/getMonitorGroupAvailability?apikey=833015a191b75b11f953774ab34f034d&ServiceAvailability=true
For custom time availability report:
http://localhost:9090/AppManager/json/getMonitorGroupAvailability?apikey=833015a191b75b11f953774ab34f034d&CustomTime=true&StartTime=1584877371000&EndTime=1585136571000
To set the Report Period:
http://localhost:9090/AppManager/json/getMonitorGroupAvailability?apikey=833015a191b75b11f953774ab34f034d&ReportPeriod=1
To filter with HAIDs:
http://localhost:9092/AppManager/xml/getMonitorGroupAvailabilityInfo?apikey=a593773d172734ed160d7cd6502a23e2&IncludeSubGroup=true&HAID=10000
Description |
Sample Inputs and Outputs |
---|---|
To include sub-group |
Input: http://localhost:9092/AppManager/json/getMonitorGroupAvailability?apikey=a593773d172734ed160d7cd6502a23e2&IncludeSubGroup=true Output: Today Availability Report |