ManageEngine® Applications Manager Chapter 10.6 GetMonitorData API |
||
This API allows the user to fetch the data for the latest poll from monitors. At the moment, we support fetching of first-level attributes of a monitor, i.e. the current data for the important attributes of a monitor such as response time, collection time, etc.
Sample Request:
http://[Host]:[Port]/AppManager/xml/GetMonitorData?apikey=[APIKEY]&resourceid=[RESOURCEID]
Request Parameters
The parameters involved in the API request are described below:
Field | Description |
API Key | The key generated from "Generate API Key" option in the Admin tab. |
resourceid | The resource id of the monitor for which data needs to be fetched |
Example:
http://app-windows:9090/AppManager/xml/GetMonitorData?apikey=095cb3835ff015b01a3b3a6c4ab2c38a&resourceid=10000293
The above example fetches the current data of a Sybase monitor.
Output for the above example:
<AppManager-response uri="/AppManager/xml/GetMonitorData"> <result> <response response-code="400"> <Monitorinfo DISPLAYNAME="app-xp3.zohocorpin.com_SYBASE-DB-server_5000" RESOURCEID="10000322" TYPE="SYBASE-DB-server"/> <Attribute DISPLAYNAME="Connection Time" Value="8" Units=" ms" AttributeID="8502"/> <Attribute DISPLAYNAME="Active Remote Connections" Value="0" Units=" " AttributeID="8508"/> <Attribute DISPLAYNAME="Active User Connections" Value="3" Units=" " AttributeID="8509"/> <Attribute DISPLAYNAME="Total Memory" Value="79872" Units=" KB" AttributeID="8503"/> <Attribute DISPLAYNAME="Memory Used" Value="57042" Units=" KB" AttributeID="8504"/> <Attribute DISPLAYNAME="Free Memory" Value="22830" Units=" KB" AttributeID="8505"/> <Attribute DISPLAYNAME="Used Memory Percentage" Value="71.42" Units=" %" AttributeID="8506"/> </response> </result> </AppManager-response> |
GetMaintenanceTaskDetails API |
AddMonitor API |