diff --git a/bin/proxy/http.proxy.js b/bin/proxy/http.proxy.js index b034a79e..aa6755d8 100644 --- a/bin/proxy/http.proxy.js +++ b/bin/proxy/http.proxy.js @@ -407,6 +407,7 @@ function afterCpu80(cpuUsed) { mail.SendMail(key, 'js', 600, { 'to': config.mailTo, 'cc': config.mailCC, + 'runtimeType':'CPU', 'msgInfo': `${business.module}[CPU]${serverInfo.intranetIp}单核CPU${serverInfo.cpu}使用率为:${cpuUsed},超过80%`, 'title': `${business.module}[CPU]${serverInfo.intranetIp}单核CPU${serverInfo.cpu}使用率为:${cpuUsed},超过80%`, 'content': content, diff --git a/bin/tsw/api/keyman/runtimeType.json b/bin/tsw/api/keyman/runtimeType.json index a5833f14..aa37b7df 100644 --- a/bin/tsw/api/keyman/runtimeType.json +++ b/bin/tsw/api/keyman/runtimeType.json @@ -7,6 +7,8 @@ "Css404" : "内联CSS不存在", "LargeJs" : "内联JS过大", "Js404" : "内联JS不存在", + "CPU" : "CPU告警", "hello" : "hello" + }