mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
fix: 修复因采样不足导致的告警
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user