The details of monitors present in an account can be viewed using this API. These details include:
- Group name
- Display name
- Link to view Availability Report
- Link to view Response Time Report
Sample Request
Below is a sample request for listing the monitors in an account:
http://site24x7.com/api/xml/listmonitors?apikey=[APIKEY]
|
For example,
http://site24x7.com/api/xml/listmonitors?apikey=fd33ad4sda23dasdasd |
Sample Success Response
Below is a sample success response in XML format:
<response uri="/api/xml/listmonitors" action="ListMonitors"> <result> <response> <group name="me"> <monitor displayname="MyCorporate" monitortype="URL" rtreport="http://site24x7.com/login/status.do?execute=getRTReport¶m=s29C%2BqlYJKPVfceEqj2r3xNEuDDOBj3QobJHRY0Xr3U%3D&period=2&urlid=2000000004003&color=%23FFFFFF" availabilityreport="http://site24x7.com/login/status.do?execute=getAvailabilityReport¶m=s29C%2BqlYJKPVfceEqj2r3xNEuDDOBj3QobJHRY0Xr3U%3D&period=2&urlid=2000000004003&color=%23FFFFFF"/> <monitor displayname="MyMonitor" monitortype="URL" rtreport="http://site24x7.com/login/status.do?execute=getRTReport¶m=s29C%2BqlYJKPVfceEqj2r3xNEuDDOBj3QobJHRY0Xr3U%3D&period=2&urlid=2000000007003&color=%23FFFFFF" availabilityreport="http://site24x7.com/login/status.do?execute=getAvailabilityReport¶m=s29C%2BqlYJKPVfceEqj2r3xNEuDDOBj3QobJHRY0Xr3U%3D&period=2&urlid=2000000007003&color=%23FFFFFF"/> </group> </response> </result> </response> |
Sample Error Response
Below is a sample error response shown when there is an error in executing the action. In the below sample, the API key is incorrect.
<response uri="/api/xml/listmonitors"> <error> <code>2890</code> <message> Specified apikey [f98394a9538975fe3ba18e1501e3ecb] is not valid.Provide a correct one. </message> </error> </response> |