SSE: Threshold expression to use simple functions (#86062)

* replace math expression with predicates
This commit is contained in:
Yuri Tseretyan
2024-04-16 13:35:41 -04:00
committed by GitHub
parent 9c1ef8b16e
commit e9d6135e33
5 changed files with 414 additions and 112 deletions
+2 -2
View File
@@ -95,13 +95,13 @@ func TestHysteresisExecute(t *testing.T) {
ReferenceVar: "A",
RefID: "B",
ThresholdFunc: ThresholdIsAbove,
Conditions: []float64{loadThreshold},
predicate: greaterThanPredicate{loadThreshold},
},
UnloadingThresholdFunc: ThresholdCommand{
ReferenceVar: "A",
RefID: "B",
ThresholdFunc: ThresholdIsAbove,
Conditions: []float64{unloadThreshold},
predicate: greaterThanPredicate{unloadThreshold},
},
LoadedDimensions: tc.loadedDimensions,
}