diff --git a/model/alertrule.go b/model/alertrule.go index ea1809a..c2ac896 100644 --- a/model/alertrule.go +++ b/model/alertrule.go @@ -98,6 +98,8 @@ func (r *AlertRule) Check(points [][]bool) (maxDuration int, passed bool) { continue } if len(points) < duration { + // 如果采样点数量不足 则认为检查通过 + hasPassedRule = true continue } total, fail := 0.0, 0.0