Commit 5f912a3e authored by jingbo.wang's avatar jingbo.wang

修改告警信息

parent a12e1152
...@@ -95,7 +95,7 @@ func (w watch) UpdateNodes(service *registry.Service) { ...@@ -95,7 +95,7 @@ func (w watch) UpdateNodes(service *registry.Service) {
if oldNode, ok := oldService.NodeMap[node.Id]; ok { if oldNode, ok := oldService.NodeMap[node.Id]; ok {
if oldNode.Status == Passing && node.Status == Critical { if oldNode.Status == Passing && node.Status == Critical {
logger.Warning.Print(service.Name, " ", node.Id, "---!!!node critical!!!---") logger.Warning.Print(service.Name, " ", node.Id, "---!!!node critical!!!---")
_ = dingding.SenderDingDing(service.Name+" "+node.Id+" "+"test:---!!!node critical!!!---", dingding.DefaultDingURL) _ = dingding.SenderDingDing(service.Name+" "+node.Id+" "+"---!!!node critical!!!---", dingding.DefaultDingURL)
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment