GET api/measurements/{measId}/formulas
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
measId | integer |
Required |
|
Id | integer |
None. |
|
MeasId | integer |
None. |
|
Timestamp | date |
None. |
|
IntervalLength | integer |
None. |
|
Formula | string |
Max length: 1024 |
|
Notes | string |
Max length: 1024 |
|
NullZero | boolean |
None. |
|
FillGap | boolean |
None. |
|
ActivationDwellTime | integer |
Range: inclusive between 0 and 100 |
|
DeactivationDwellTime | integer |
Range: inclusive between 0 and 100 |
|
Delete | boolean |
None. |
|
Links |
Gets the links. |
Collection of LinkModel |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of FormulaViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
MeasId | integer |
Required |
|
Timestamp | date |
Required |
|
IntervalLength | integer |
None. |
|
Formula | string |
Max length: 1024 |
|
Notes | string |
Max length: 1024 |
|
NullZero | boolean |
None. |
|
FillGap |
Only used in user formulas. Allows storage of null results for gap filling. |
boolean |
None. |
ActivationDwellTime |
Only used in alert formulas. Dwell count (in intervals) before the alert is activated. |
integer |
Range: inclusive between 0 and 100 |
DeactivationDwellTime |
Only used in alert formulas. Dwell count (in intervals) before the alert is deactivated. |
integer |
Range: inclusive between 0 and 100 |
AlertActive |
Only used in alert formulas. Indicates if the alert is currently active. |
boolean |
None. |
Links |
Gets the links. |
Collection of LinkModel |
None. |
Response Formats
application/json, text/json
Sample:
[ { "id": 1, "measId": 2, "timestamp": "2024-11-21T11:21:05.0508055+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": "2024-11-21T11:21:05.0508055+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:
<ArrayOfFormulaViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TelogWebAPI.Models"> <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:d3p1="http://schemas.datacontract.org/2004/07/System"> <d3p1:DateTime>2024-11-21T11:21:05.0508055Z</d3p1:DateTime> <d3p1:OffsetMinutes>0</d3p1: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:d3p1="http://schemas.datacontract.org/2004/07/System"> <d3p1:DateTime>2024-11-21T11:21:05.0508055Z</d3p1:DateTime> <d3p1:OffsetMinutes>0</d3p1:OffsetMinutes> </Timestamp> </FormulaViewModel> </ArrayOfFormulaViewModel>