Read Time Series Data or Derived Data for a Thing

Retrieves property set data for the specified thing

With this service, you can retrieve the values of property sets of a thing that belongs to a specific thing type. You can request the values for a specific time range. The service retrieves the values of property sets of data categories TimeSeriesData or DerivedData.

Request

URI: /Things('<thing ID>')/<thing type name>/<property set ID>?timerange=<fromTime – toTime>

HTTP Method: GET

Permissions: <coldstore>.r

Request Headers

Parameter Required Description
Accept-Encoding No Retrieve compressed response

Only if you specify the value gzip or gzip,deflate for this parameter, the system returns the compressed response with an additional response header CONTENT-ENCODING with value gzip. If you specify an invalid value or do not use this header parameter, the system returns the uncompressed response.

Request Parameters

Parameter Required Data Type Description
thingID Yes String Internal identifier for a thing.
thingTypeName Yes String Name of the thing type.
propertySetID Yes String Unique identifier of the property type (that belongs to the property set type) defined in a thing type
fromTime Yes timeStamp Corresponds to the time value from which the time series data is retrieved for a non-null value of a property
toTime Yes timeStamp Corresponds to the time value until which the time series data is retrieved for a non-null value of a property

Request Example

/Things('<thing ID>')/core.automobiles:ABCXSeries/ wheel_fl?timerange=2015-08-01T09:00:00Z-2015-08-01T11:00:00Z

Retrieves property set data of the property set wheel_fl for the thing ID core.automobiles:ABCXSeries corresponding to a time range of two hours on August 1, 2015.

Response

Response Properties

Property Type Description
value Array of thing data objects An array of data objects (for example, time series data) for a thing or property set type.

Response Status and Error Codes

Code Description
200 Data for one or more things retrieved successfully

Payload

{
	"value": [{
		"_time": "2015-08-01T09:00:00Z",
		"Pressure": "36",
		"Temperature": "100"

	}, {
		"_time": "2015-08-02T06:00:03Z",
		"Pressure": "34",
		"Temperature": "120"
	}]
}