Knowledge Center > Developer Documentation
ipm7Status :: GetMonitors
GetMonitors returns the status of the members and dependent Monitors of a specific Group.
GetMonitors(...); Parameters (c#):
- long groupid
All IDs in ipMonitor are 64-bit integers. The ID of a Group is defined upon creation and will not change.
- bool bTroubleOnly
If this parameter is set to true, the result set will contain Group members and dependent Monitors with status: lost, down, and warn.
GetMonitors(...); Return (c#):
- rtMonitor[]
- The return is a new Array containing rtMonitor objects. If bTroubleOnly is set to true, this result set will contain Group members and dependent Monitors with status: lost, down, and warn. See the ipMonitor Status Soap Interface (rtMonitor) for details.
SOAP / HTTP Details (Invoke):
POST /soap/status.asmx HTTP/1.1
Host: youripm7addr
Content-Type: text/xml
Content-Length: length
SOAPAction: "http://schemas.ipmonitor.com/ipm70/GetMonitors"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetMonitors xmlns="http://schemas.ipmonitor.com/ipm70/">
<groupid>long</groupid>
<bTroubleOnly>boolean</bTroubleOnly>
</GetMonitors>
</soap:Body>
</soap:Envelope>
SOAP / HTTP Details (Return):
HTTP/1.1 200 OK
Content-Type: text/xml
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetMonitorsResponse xmlns="http://schemas.ipmonitor.com/ipm70/">
<GetMonitorsResult>
<rtMonitor>
<ID>long</ID>
<status>up or warn or down or lost or suspended or disabled or Maintenance or uninitialized or unknown</status>
<name>string</name>
<type>string</type>
<isdepend>boolean</isdepend>
<ismember>boolean</ismember>
</rtMonitor>
<rtMonitor>
<ID>long</ID>
<status>up or warn or down or lost or suspended or disabled or Maintenance or uninitialized or unknown</status>
<name>string</name>
<type>string</type>
<isdepend>boolean</isdepend>
<ismember>boolean</ismember>
</rtMonitor>
</GetMonitorsResult>
</GetMonitorsResponse>
</soap:Body>
</soap:Envelope>
< Back

Last Updated: March 30, 2004 | What did you think of this topic?