mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 00:40:20 +00:00
fix: 修复因采样不足导致的告警
This commit is contained in:
1 parent
09b570aa3e
commit
8554f3eba7
1 file changed
+2
@@ -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