GET api/v1/measurement/{operation}/{typeId}/between?StartTime={StartTime}&EndTime={EndTime}&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 |
| StartTime |
{Optional} - The start time |
date |
None. |
| EndTime |
{Optional} - The end time |
date |
None. |
| Order |
{Optional} - Order of the data based on the timestamp. Default set to ascending, [asc, desc]. |
string |
None. |
| Offset |
{Optional} - Return timestamp with calculated offset, default = false. |
boolean |
None. |
Body Parameters
None.
Response Information
Headers
Resource Description
Collection of measurements
Collection of MeasurementWithTimestamp| Name | 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
[
{
"Timestamp": "sample string 1",
"TypeId": 68185,
"Value": "sample string 2",
"UnitCode": 262656
},
{
"Timestamp": "sample string 1",
"TypeId": 68185,
"Value": "sample string 2",
"UnitCode": 262656
}
]