Commit 7944fb23 by 墨竹

feat:链路

parent 1e9e1a50
......@@ -49,7 +49,6 @@ public class CheckQywxSettingApiServiceImpl implements CheckQywxSettingApiServic
@Autowired
private WxEnterpriseService wxEnterpriseService;
@Autowired
private EnterpriseService enterpriseService;
......@@ -146,8 +145,8 @@ public class CheckQywxSettingApiServiceImpl implements CheckQywxSettingApiServic
if (messageDTO.getAlertType().equals(AlertTypeEnum.ES_BID_PAGE.getType())) {
Object limit = RedisUtil.getCache("es_bid_page_limit");
if (null != limit) {
Integer begin = Integer.valueOf(messageDTO.getContentMap().get("begin").toString());
if (begin.intValue() < Integer.valueOf(limit.toString())) {
int begin = Integer.parseInt(messageDTO.getContentMap().get("begin").toString());
if (begin < Integer.parseInt(limit.toString())) {
logger.info("没到阈值,无需告警");
alertFlag = true;
}
......@@ -205,7 +204,7 @@ public class CheckQywxSettingApiServiceImpl implements CheckQywxSettingApiServic
}
}
if (StringUtils.isNotBlank(messageDTO.getTraceId())) {
String traceUrl = "http://10.105.8.172:8780/damo-stats/mongodb/getLogMessagesView?trace_id=" + messageDTO.getTraceId();
String traceUrl = "http://10.0.100.2:8780/damo-stats/mongodb/getLogMessagesView?trace_id=" + messageDTO.getTraceId();
text.append("链路:[").append(messageDTO.getTraceId()).append("](").append(traceUrl).append(")");
}
markdownMap.put("text", text.toString());
......
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