Pingdom Home

212-796-6890

Business hours 3 am-5 pm EST.

Pingdom API / function Report_getRawData

Description

Returns raw data for a 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.

Report_GetRawDataRequestgetRawDataRequest (Required)

Request object of Report_getRawData function. It specifies which check should be analyzed, total time range for raw data analysis, page of the results that will be returned, and number of results per page.

Return value

Report_GetRawDataResponseReport_GetRawDataResponse

Response object of Report_getRawData function. It contains field for status of the performed operation, and field for list of raw data objects.

Example request

				
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
	<q1:Report_getRawData xmlns:q1="urn:methods">
		<APIKey xsi:type="xsd:string">abcdefgh0123456789abcdefgh</APIKey>
		<sessionId xsi:type="xsd:string">17f0860987468e22b246f3e786729403</sessionId>
		<getRawDataRequest href="#id1" />
	</q1:Report_getRawData>
	<q2:Report_GetRawDataRequest id="id1" xsi:type="q2:Report_GetRawDataRequest" xmlns:q2="urn:PingdomAPI">
		<from xsi:type="xsd:dateTime">2006-10-01T00:00:00+02:00</from>
		<to xsi:type="xsd:dateTime">2006-11-01T00:00:00+01:00</to>
		<checkName xsi:type="xsd:string">Test check</checkName>
		<pageNumber xsi:type="xsd:int">1</pageNumber>
		<resultsPerPage xsi:type="xsd:int">10</resultsPerPage>
	</q2:Report_GetRawDataRequest>
</soap:Body>
			

Example response

				
<SOAP-ENV:Body>
	<ns1:getRawDataResponse>
		<return xsi:type="ns2:Report_GetRawDataResponse">
			<status xsi:type="xsd:int">0</status>
			<rawDataArray SOAP-ENC:arrayType="ns2:Report_RawDataEntry[10]" xsi:type="ns2:RawDataArray">
				<item xsi:type="ns2:Report_RawDataEntry">
					<checkTime xsi:type="xsd:dateTime">2006-10-06T06:49:01-05:00</checkTime>
					<checkState xsi:type="ns2:Report_CheckState">CHECK_UP</checkState>
					<responseTime xsi:type="xsd:float">1149.913</responseTime>
					<location xsi:type="xsd:string">TestCity, TestCountry</location>
				</item>
				<item xsi:type="ns2:Report_RawDataEntry">
					<checkTime xsi:type="xsd:dateTime">2006-10-06T06:49:01-05:00</checkTime>
					<checkState xsi:type="ns2:Report_CheckState">CHECK_UP</checkState>
					<responseTime xsi:type="xsd:float">7910.19</responseTime>
					<location xsi:type="xsd:string">Shangai, China</location>
				</item>
				<item xsi:type="ns2:Report_RawDataEntry">
					<checkTime xsi:type="xsd:dateTime">2006-10-06T06:51:02-05:00</checkTime>
					<checkState xsi:type="ns2:Report_CheckState">CHECK_UP</checkState>
					<responseTime xsi:type="xsd:float">2901.838</responseTime>
					<location xsi:type="xsd:string">Shangai, China</location>
				</item>


				<!-- Part of XML response is omitted here -->


				<item xsi:type="ns2:Report_RawDataEntry">
					<checkTime xsi:type="xsd:dateTime">2006-10-06T07:01:02-05:00</checkTime>
					<checkState xsi:type="ns2:Report_CheckState">CHECK_UP</checkState>
					<responseTime xsi:type="xsd:float">1026.318</responseTime>
					<location xsi:type="xsd:string">TestCity, TestCountry</location>
				</item>
			</rawDataArray>
		</return>
	</ns1:getRawDataResponse>
</SOAP-ENV:Body>