Commit 16311a1b30c767182f519c57cf623c4eef3b33a4
1 parent
6e01e832
Exists in
master
update send weixin tempalte
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
src/main/java/com/taover/heartbeat/bean/ReformInstance.java
@@ -77,6 +77,7 @@ public class ReformInstance { | @@ -77,6 +77,7 @@ public class ReformInstance { | ||
77 | String htmlContent = " 超过"+instance.getFixRateSec()+"秒未收到请求,请确认CODE["+instance.getCode()+"]对应的客户端是否运行正常\n"; | 77 | String htmlContent = " 超过"+instance.getFixRateSec()+"秒未收到请求,请确认CODE["+instance.getCode()+"]对应的客户端是否运行正常\n"; |
78 | htmlContent += " 客户端最后一次请求时间: "+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date(instance.getLastestClientRequest().getUnixtime()*1000))+"\n"; | 78 | htmlContent += " 客户端最后一次请求时间: "+new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date(instance.getLastestClientRequest().getUnixtime()*1000))+"\n"; |
79 | htmlContent += " 客户端IP:"+instance.getIp(); | 79 | htmlContent += " 客户端IP:"+instance.getIp(); |
80 | + htmlContent += " 累计次数(3次后不再报警):"+instance.getLostClientRequestCount(); | ||
80 | return htmlContent; | 81 | return htmlContent; |
81 | } | 82 | } |
82 | 83 | ||
@@ -143,6 +144,7 @@ public class ReformInstance { | @@ -143,6 +144,7 @@ public class ReformInstance { | ||
143 | htmlContent += "<li>客户端请求时间戳: "+sdf.format(new Date(instance.getUnixtime()*1000))+"</li>"; | 144 | htmlContent += "<li>客户端请求时间戳: "+sdf.format(new Date(instance.getUnixtime()*1000))+"</li>"; |
144 | htmlContent += "<li>服务器接收时间: "+sdf.format(new Date(instance.getLastestServerUnixtime()*1000))+"</li>"; | 145 | htmlContent += "<li>服务器接收时间: "+sdf.format(new Date(instance.getLastestServerUnixtime()*1000))+"</li>"; |
145 | htmlContent += "<li>最后一次收到的请求包: <span style=\"color:gray;\">"+JSON.toJSONString(instance.getLastestClientRequest())+"</span></li>"; | 146 | htmlContent += "<li>最后一次收到的请求包: <span style=\"color:gray;\">"+JSON.toJSONString(instance.getLastestClientRequest())+"</span></li>"; |
147 | + htmlContent += "<li>累计次数(3次后不再报警):"+instance.getLostClientRequestCount()+"</li>"; | ||
146 | htmlContent += "</ul>"; | 148 | htmlContent += "</ul>"; |
147 | return htmlContent; | 149 | return htmlContent; |
148 | } | 150 | } |