...
|
...
|
@@ -36,8 +36,10 @@ public class MsgJavaApiHandler implements IJavaApiHadnler { |
|
|
@Override
|
|
|
public void handler(JavaApiStatics javaApiStatics) {
|
|
|
String key = buildKey(javaApiStatics);
|
|
|
//无错
|
|
|
if (javaApiStatics.isHasException() == false) {
|
|
|
//开关关闭、告警次数未设置、无错
|
|
|
if (javaApiStatics.getJavaApiInfo().getApiToggle() == 0 ||
|
|
|
javaApiStatics.getJavaApiInfo().getApiWarnTrigger() <= 0 ||
|
|
|
javaApiStatics.isHasException() == false) {
|
|
|
if (mapStatics.containsKey(key)) {
|
|
|
mapStatics.remove(key);
|
|
|
}
|
...
|
...
|
@@ -76,10 +78,9 @@ public class MsgJavaApiHandler implements IJavaApiHadnler { |
|
|
msgBuilder.append("Java API Error ")
|
|
|
.append("最近出错次数:" + num).append(" , ")
|
|
|
.append("NAME:" + javaApiInfo.getApiName()).append(" , ")
|
|
|
.append("URL:" + javaApiInfo.getApiUrl()).append(" , ")
|
|
|
// .append("URL:" + javaApiInfo.getApiUrl()).append(" , ")
|
|
|
.append("IP:" + mObjectInfo.getMoHostIp()).append(" , ")
|
|
|
.append("TYPE:" + javaApiInfo.getServiceType()).append(" , ")
|
|
|
.append(".");
|
|
|
.append("TYPE:" + javaApiInfo.getServiceType()).append(" , ");
|
|
|
|
|
|
return msgBuilder.toString();
|
|
|
}
|
...
|
...
|
|