This API allows you to poll a particular monitor.
https://[HOST]:[PORT]/AppManager/xml/PollNow?apikey=[APIKEY]&resourceid=[RESOURCEID]
Supported HTTP methods: GET
Allowed roles: Administrator, Operator, User
The parameters involved in executing this API request are:
Field | Description |
---|---|
apikey | The key generated using the Generate API Key option in the Settings tab. |
resourceid | The resource id of the monitor that needs to be polled. |
https://apm-prod-server:8443/AppManager/xml/PollNow?apikey=aaaaaabbbbbbccccccddddddeeeeee&resourceid=10000293
<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.