GET api/v1/measurement/{operation}/{typeId}/taken?taken={taken}&order={order}&offset={offset}
Gets a collection of measurements based on query between two timestamps
Request Information
Headers
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
operation |
The operation. { value, avg, max, min } |
string |
Required |
typeId |
The type identifier of the measurement |
MeasurementType |
Required |
taken | integer |
Required |
|
order | string |
Default value is asc |
|
offset | boolean |
Default value is False |
Body Parameters
None.
Response Information
Headers
Resource Description
Collection of measurements
Collection of MeasurementWithTimestampName | Description | Type | Additional information |
---|---|---|---|
Timestamp |
The timestamp of the measurement. |
string |
Required |
TypeId |
The type identifier for the measurement |
MeasurementType |
Required |
Value |
Value of the measurement |
string |
Required |
UnitCode |
Unit code of the measurement |
UnitCode |
Required |
Response Formats
application/json
Sample:
[ { "Timestamp": "sample string 1", "TypeId": 68185, "Value": "sample string 2", "UnitCode": 262656 }, { "Timestamp": "sample string 1", "TypeId": 68185, "Value": "sample string 2", "UnitCode": 262656 } ]