GET api/sites/{sid}/measurements?associated={associated}
Retrieves all measurements for a site.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| sid |
Id of the site. |
integer |
Required |
| SiteId | integer |
None. |
|
| Name | string |
Invalid Chars: .!@#$%^&*\|`~=+/?<>()[]," Leading or trailing white spaces are not allowed Max length: 30 |
|
| UnitId | integer |
None. |
|
| TypeId | integer |
None. |
|
| CompressionMethod | MeasurementCompressionMethod |
None. |
|
| Notes | string |
None. |
|
| EventOnIndicator | integer |
Range: inclusive between 0 and 1 |
|
| IsHidden | boolean |
None. |
|
| IsAutoCalculated | boolean |
None. |
|
| IsAssociated | boolean |
None. |
|
| color | string |
None. |
|
| Formulas | Collection of FormulaUpdateModel |
None. |
|
| associated |
Optional. Toggles inclusion/exclusion of associated measurements |
boolean |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of MeasurementViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| SiteId | integer |
Required |
|
| Name | string |
Required Invalid Chars: .!@#$%^&*\|`~=+/?<>()[]," Leading or trailing white spaces are not allowed Max length: 30 |
|
| UnitId | integer |
Required |
|
| TypeId | integer |
None. |
|
| CompressionMethod | MeasurementCompressionMethod |
None. |
|
| Notes | string |
None. |
|
| EventOnIndicator | integer |
Range: inclusive between 0 and 1 |
|
| IsHidden | boolean |
None. |
|
| IsAutoCalculated | boolean |
None. |
|
| IsRaw | boolean |
None. |
|
| IsImported | boolean |
None. |
|
| IsAsync | boolean |
None. |
|
| IsVirtual | boolean |
None. |
|
| color | string |
None. |
|
| DataStart | date |
None. |
|
| DataEnd | date |
None. |
|
| Formulas | Collection of FormulaViewModel |
None. |
|
| Links |
Gets the links. |
Collection of LinkModel |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"id": 1,
"siteId": 2,
"name": "sample string 3",
"unitId": 4,
"typeId": 5,
"compressionMethod": 0,
"notes": "sample string 6",
"eventOnIndicator": 1,
"isHidden": true,
"isAutoCalculated": true,
"isRaw": true,
"isImported": true,
"isAsync": true,
"isVirtual": true,
"color": "#000000",
"dataStart": "2025-10-24T14:49:59.7911624+00:00",
"dataEnd": "2025-10-24T14:49:59.7911624+00:00",
"formulas": [
{
"id": 1,
"measId": 2,
"timestamp": "2025-10-24T14:49:59.7911624+00:00",
"intervalLength": 1,
"formula": "sample string 4",
"notes": "sample string 5",
"nullZero": true,
"fillGap": true,
"activationDwellTime": 1,
"deactivationDwellTime": 1,
"alertActive": true
},
{
"id": 1,
"measId": 2,
"timestamp": "2025-10-24T14:49:59.7911624+00:00",
"intervalLength": 1,
"formula": "sample string 4",
"notes": "sample string 5",
"nullZero": true,
"fillGap": true,
"activationDwellTime": 1,
"deactivationDwellTime": 1,
"alertActive": true
}
]
},
{
"id": 1,
"siteId": 2,
"name": "sample string 3",
"unitId": 4,
"typeId": 5,
"compressionMethod": 0,
"notes": "sample string 6",
"eventOnIndicator": 1,
"isHidden": true,
"isAutoCalculated": true,
"isRaw": true,
"isImported": true,
"isAsync": true,
"isVirtual": true,
"color": "#000000",
"dataStart": "2025-10-24T14:49:59.7911624+00:00",
"dataEnd": "2025-10-24T14:49:59.7911624+00:00",
"formulas": [
{
"id": 1,
"measId": 2,
"timestamp": "2025-10-24T14:49:59.7911624+00:00",
"intervalLength": 1,
"formula": "sample string 4",
"notes": "sample string 5",
"nullZero": true,
"fillGap": true,
"activationDwellTime": 1,
"deactivationDwellTime": 1,
"alertActive": true
},
{
"id": 1,
"measId": 2,
"timestamp": "2025-10-24T14:49:59.7911624+00:00",
"intervalLength": 1,
"formula": "sample string 4",
"notes": "sample string 5",
"nullZero": true,
"fillGap": true,
"activationDwellTime": 1,
"deactivationDwellTime": 1,
"alertActive": true
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfMeasurementViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TelogWebAPI.Models">
<MeasurementViewModel>
<CompressionMethod>Default</CompressionMethod>
<DataEnd xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
<d3p1:DateTime>2025-10-24T14:49:59.7911624Z</d3p1:DateTime>
<d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
</DataEnd>
<DataStart xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
<d3p1:DateTime>2025-10-24T14:49:59.7911624Z</d3p1:DateTime>
<d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
</DataStart>
<EventOnIndicator>1</EventOnIndicator>
<Formulas>
<FormulaViewModel>
<ActivationDwellTime>1</ActivationDwellTime>
<AlertActive>true</AlertActive>
<DeactivationDwellTime>1</DeactivationDwellTime>
<FillGap>true</FillGap>
<Formula>sample string 4</Formula>
<Id>1</Id>
<IntervalLength>1</IntervalLength>
<MeasId>2</MeasId>
<Notes>sample string 5</Notes>
<NullZero>true</NullZero>
<Timestamp xmlns:d5p1="http://schemas.datacontract.org/2004/07/System">
<d5p1:DateTime>2025-10-24T14:49:59.7911624Z</d5p1:DateTime>
<d5p1:OffsetMinutes>0</d5p1:OffsetMinutes>
</Timestamp>
</FormulaViewModel>
<FormulaViewModel>
<ActivationDwellTime>1</ActivationDwellTime>
<AlertActive>true</AlertActive>
<DeactivationDwellTime>1</DeactivationDwellTime>
<FillGap>true</FillGap>
<Formula>sample string 4</Formula>
<Id>1</Id>
<IntervalLength>1</IntervalLength>
<MeasId>2</MeasId>
<Notes>sample string 5</Notes>
<NullZero>true</NullZero>
<Timestamp xmlns:d5p1="http://schemas.datacontract.org/2004/07/System">
<d5p1:DateTime>2025-10-24T14:49:59.7911624Z</d5p1:DateTime>
<d5p1:OffsetMinutes>0</d5p1:OffsetMinutes>
</Timestamp>
</FormulaViewModel>
</Formulas>
<Id>1</Id>
<IsAsync>true</IsAsync>
<IsAutoCalculated>true</IsAutoCalculated>
<IsHidden>true</IsHidden>
<IsImported>true</IsImported>
<IsRaw>true</IsRaw>
<IsVirtual>true</IsVirtual>
<Name>sample string 3</Name>
<Notes>sample string 6</Notes>
<SiteId>2</SiteId>
<TypeId>5</TypeId>
<UnitId>4</UnitId>
<color>#000000</color>
</MeasurementViewModel>
<MeasurementViewModel>
<CompressionMethod>Default</CompressionMethod>
<DataEnd xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
<d3p1:DateTime>2025-10-24T14:49:59.7911624Z</d3p1:DateTime>
<d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
</DataEnd>
<DataStart xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
<d3p1:DateTime>2025-10-24T14:49:59.7911624Z</d3p1:DateTime>
<d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
</DataStart>
<EventOnIndicator>1</EventOnIndicator>
<Formulas>
<FormulaViewModel>
<ActivationDwellTime>1</ActivationDwellTime>
<AlertActive>true</AlertActive>
<DeactivationDwellTime>1</DeactivationDwellTime>
<FillGap>true</FillGap>
<Formula>sample string 4</Formula>
<Id>1</Id>
<IntervalLength>1</IntervalLength>
<MeasId>2</MeasId>
<Notes>sample string 5</Notes>
<NullZero>true</NullZero>
<Timestamp xmlns:d5p1="http://schemas.datacontract.org/2004/07/System">
<d5p1:DateTime>2025-10-24T14:49:59.7911624Z</d5p1:DateTime>
<d5p1:OffsetMinutes>0</d5p1:OffsetMinutes>
</Timestamp>
</FormulaViewModel>
<FormulaViewModel>
<ActivationDwellTime>1</ActivationDwellTime>
<AlertActive>true</AlertActive>
<DeactivationDwellTime>1</DeactivationDwellTime>
<FillGap>true</FillGap>
<Formula>sample string 4</Formula>
<Id>1</Id>
<IntervalLength>1</IntervalLength>
<MeasId>2</MeasId>
<Notes>sample string 5</Notes>
<NullZero>true</NullZero>
<Timestamp xmlns:d5p1="http://schemas.datacontract.org/2004/07/System">
<d5p1:DateTime>2025-10-24T14:49:59.7911624Z</d5p1:DateTime>
<d5p1:OffsetMinutes>0</d5p1:OffsetMinutes>
</Timestamp>
</FormulaViewModel>
</Formulas>
<Id>1</Id>
<IsAsync>true</IsAsync>
<IsAutoCalculated>true</IsAutoCalculated>
<IsHidden>true</IsHidden>
<IsImported>true</IsImported>
<IsRaw>true</IsRaw>
<IsVirtual>true</IsVirtual>
<Name>sample string 3</Name>
<Notes>sample string 6</Notes>
<SiteId>2</SiteId>
<TypeId>5</TypeId>
<UnitId>4</UnitId>
<color>#000000</color>
</MeasurementViewModel>
</ArrayOfMeasurementViewModel>