Pingdom Home

212-796-6890

Business hours 3 am-5 pm EST.

Pingdom API / function Report_getCurrentStates

Description

Returns last state of 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_GetCurrentStatesResponseReport_GetCurrentStatesResponse

Response object of Report_getCurrentStates function. It contains field for status of the performed operation, and field for list of current check states for current user.

Example request

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

Example response

				
<SOAP-ENV:Body>
	<ns1:getCurrentStatesResponse>
		<return xsi:type="ns2:Report_GetCurrentStatesResponse">
			<status xsi:type="xsd:int">0</status>
			<currentStates SOAP-ENC:arrayType="ns2:Report_CheckStateEntry[1]" xsi:type="ns2:CurrentStatesArray">
				<item xsi:type="ns2:Report_CheckStateEntry">
					<checkName xsi:type="xsd:string">Test check</checkName>
					<checkState xsi:type="ns2:Report_CheckState">CHECK_UP</checkState>
					<lastCheckTime xsi:type="xsd:dateTime">2006-10-16T06:57:02-05:00</lastCheckTime>
				</item>
			</currentStates>
		</return>
	</ns1:getCurrentStatesResponse>
</SOAP-ENV:Body>