Expressions: Create json schema for query types (#84032)

This commit is contained in:
Ryan McKinley
2024-03-26 06:58:56 +02:00
committed by GitHub
parent 2e06677240
commit 4cda34ff7d
40 changed files with 4649 additions and 654 deletions
+2 -2
View File
@@ -173,8 +173,8 @@ type ThresholdCommandConfig struct {
type ThresholdConditionJSON struct {
Evaluator ConditionEvalJSON `json:"evaluator"`
UnloadEvaluator *ConditionEvalJSON `json:"unloadEvaluator"`
LoadedDimensions *data.Frame `json:"loadedDimensions"`
UnloadEvaluator *ConditionEvalJSON `json:"unloadEvaluator,omitempty"`
LoadedDimensions *data.Frame `json:"loadedDimensions,omitempty"`
}
// IsHysteresisExpression returns true if the raw model describes a hysteresis command: