mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
fix: 修复因采样不足导致的告警
This commit is contained in:
@@ -98,6 +98,8 @@ func (r *AlertRule) Check(points [][]bool) (maxDuration int, passed bool) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if len(points) < duration {
|
if len(points) < duration {
|
||||||
|
// 如果采样点数量不足 则认为检查通过
|
||||||
|
hasPassedRule = true
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
total, fail := 0.0, 0.0
|
total, fail := 0.0, 0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user