Alerting: Add threshold expression (#55102)

This commit is contained in:
Gilles De Mey
2022-09-26 16:05:44 +02:00
committed by GitHub
parent f7a3e50b23
commit 9aa61ddd0e
8 changed files with 515 additions and 1 deletions
+2
View File
@@ -119,6 +119,8 @@ func buildCMDNode(dp *simple.DirectedGraph, rn *rawNode) (*CMDNode, error) {
node.Command, err = UnmarshalResampleCommand(rn)
case TypeClassicConditions:
node.Command, err = classic.UnmarshalConditionsCmd(rn.Query, rn.RefID)
case TypeThreshold:
node.Command, err = UnmarshalThresholdCommand(rn)
default:
return nil, fmt.Errorf("expression command type '%v' in expression '%v' not implemented", commandType, rn.RefID)
}