Alerting: Log expression command types during evaluation (#84614)

This commit is contained in:
Yuri Tseretyan
2024-03-19 10:00:03 -04:00
committed by GitHub
parent 09817e2c7f
commit 9dc4221508
11 changed files with 101 additions and 0 deletions
+4
View File
@@ -216,6 +216,10 @@ func (cmd *ConditionsCmd) executeCond(_ context.Context, _ time.Time, cond condi
return isCondFiring, isCondNoData, matches, nil
}
func (cmd *ConditionsCmd) Type() string {
return "classic_condition"
}
func compareWithOperator(b1, b2 bool, operator ConditionOperatorType) bool {
if operator == "or" {
return b1 || b2