mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-07 18:50:26 +08:00
健康检查时只有开启了自动下线才发送上线通知
This commit is contained in:
@@ -167,6 +167,8 @@ func (this *HealthCheckExecutor) runNode(healthCheckConfig *serverconfigs.Health
|
|||||||
}
|
}
|
||||||
|
|
||||||
if isChanged {
|
if isChanged {
|
||||||
|
// 在线状态发生变化
|
||||||
|
if healthCheckConfig.AutoDown {
|
||||||
// 发送消息
|
// 发送消息
|
||||||
var message = ""
|
var message = ""
|
||||||
var messageType string
|
var messageType string
|
||||||
@@ -186,6 +188,7 @@ func (this *HealthCheckExecutor) runNode(healthCheckConfig *serverconfigs.Health
|
|||||||
this.logErr("HealthCheckExecutor", err.Error())
|
this.logErr("HealthCheckExecutor", err.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 触发阈值
|
// 触发阈值
|
||||||
err = models.SharedNodeIPAddressDAO.FireThresholds(nil, nodeconfigs.NodeRoleNode, int64(result.Node.Id))
|
err = models.SharedNodeIPAddressDAO.FireThresholds(nil, nodeconfigs.NodeRoleNode, int64(result.Node.Id))
|
||||||
|
|||||||
Reference in New Issue
Block a user