GET api/measurements/{measId}/data?Start={Start}&End={End}&Last={Last}&intervalLength={intervalLength}&compressionMethod={compressionMethod}&dst={dst}&unitId={unitId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
measId

integer

Required

Start

Gets or sets the start datetime.

date

None.

End

Gets or sets the end datetime.

date

None.

Last

Gets or sets the number of seconds before the current datetime.

integer

None.

intervalLength

integer

Default value is 0

compressionMethod

MeasurementCompressionMethod

Default value is Default

dst

boolean

Default value is True

unitId

integer

None.

Body Parameters

None.

Response Information

Resource Description

Collection of TrendDataViewModel
NameDescriptionTypeAdditional information
MeasurementId

integer

None.

Timestamp

date

None.

IntervalLength

integer

Required

Min

decimal number

None.

Avg

decimal number

None.

Max

decimal number

None.

Links

Gets the links.

Collection of LinkModel

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "measurementId": 1,
    "timestamp": "2025-04-04T00:00:49.4985425+00:00",
    "intervalLength": 3,
    "min": 1.1,
    "avg": 1.1,
    "max": 1.1
  },
  {
    "measurementId": 1,
    "timestamp": "2025-04-04T00:00:49.4985425+00:00",
    "intervalLength": 3,
    "min": 1.1,
    "avg": 1.1,
    "max": 1.1
  }
]

application/xml, text/xml

Sample:
<ArrayOfTrendDataViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TelogWebAPI.Models">
  <TrendDataViewModel>
    <Avg>1.1</Avg>
    <IntervalLength>3</IntervalLength>
    <Max>1.1</Max>
    <MeasurementId>1</MeasurementId>
    <Min>1.1</Min>
    <Timestamp xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-04-04T00:00:49.4985425Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </Timestamp>
  </TrendDataViewModel>
  <TrendDataViewModel>
    <Avg>1.1</Avg>
    <IntervalLength>3</IntervalLength>
    <Max>1.1</Max>
    <MeasurementId>1</MeasurementId>
    <Min>1.1</Min>
    <Timestamp xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
      <d3p1:DateTime>2025-04-04T00:00:49.4985425Z</d3p1:DateTime>
      <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
    </Timestamp>
  </TrendDataViewModel>
</ArrayOfTrendDataViewModel>