Pingdom Home

212-796-6890

Business hours 3 am-5 pm EST.

Pingdom API / function Report_getLastDowns

Description

Returns last down for every user's check.

Arguments

stringAPIKey (Required)

API key. You will find your API key in the 'Pingdom API' section of Pingdom Panel.

stringsessionId (Required)

Session ID obtained by calling Auth_login function.

Return value

Report_GetLastDownsResponseReport_GetLastDownsResponse

Response object of Report_getLastDowns function. It contains field for status of the performed operation, and field for list of last down entries.

Example request

				
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
	<q1:Report_getLastDowns xmlns:q1="urn:methods">
		<APIKey xsi:type="xsd:string">abcdefgh0123456789abcdefgh</APIKey>
		<sessionId xsi:type="xsd:string">ad8a78357a96ceda069815f5535c887f</sessionId>
	</q1:Report_getLastDowns>
</soap:Body>
			

Example response

				
<SOAP-ENV:Body>
	<ns1:getLastDownsResponse>
		<return xsi:type="ns2:Report_GetLastDownsResponse">
			<status xsi:type="xsd:int">0</status>
			<lastDowns SOAP-ENC:arrayType="ns2:Report_LastDownEntry[1]" xsi:type="ns2:LastDownsArray">
				<item xsi:type="ns2:Report_LastDownEntry">
					<checkName xsi:type="xsd:string">Test check</checkName>
					<lastDown xsi:type="xsd:dateTime">2006-10-11T07:27:29-05:00</lastDown>
				</item>
			</lastDowns>
		</return>
	</ns1:getLastDownsResponse>
</SOAP-ENV:Body>