PollNow API


This API allows you to poll a particular monitor.

Syntax

http://[Host]:[Port]/AppManager/xml/PollNow?apikey=[APIKEY]&resourceid=[RESOURCEID]

Request Parameters

The parameters involved in executing this API request are:

Field Description        
apikey The key generated using the Generate API Key option in the 'Admin' tab.
resourceid The resource id of the monitor that needs to be polled.

Sample Request

http://app-xp5:9099/AppManager/xml/PollNow?apikey=123b7328e4b41d1efe64aa7980d83d77&resourceid=10000293

Sample Response

<AppManager-response uri="/AppManager/xml/PollNow">
<result>
<response method="PollNow">
<message>The monitor polled successfully.</message>
</response>
</result>
</AppManager-response>

If the API is not executed correctly, the request will fail and errors will be shown as given below:

<AppManager-response uri="/AppManager/xml/PollNow">
   <result>
      <response response-code="4037">
         <message>Improper resourceid in the request.</message>
      </response>     
    </result>
</Apm-response>

Refer this page for a list of common error conditions.