Alerting: Refactor Alert Rule Generators (#86813)
This commit is contained in:
@@ -189,7 +189,8 @@ func TestEvaluatorTest(t *testing.T) {
|
||||
return manager
|
||||
},
|
||||
}
|
||||
rule := models.AlertRuleGen(models.WithInterval(time.Second))()
|
||||
gen := models.RuleGen
|
||||
rule := gen.With(gen.WithInterval(time.Second)).GenerateRef()
|
||||
ruleInterval := time.Duration(rule.IntervalSeconds) * time.Second
|
||||
|
||||
t.Run("should return data frame in specific format", func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user