feat(REQ-3824) - 添加告警日志中的触发时间
This commit is contained in:
parent
9e3feed80e
commit
d191be09aa
@ -1,6 +1,7 @@
|
||||
package cn.axzo.workflow.core.util;
|
||||
|
||||
import cn.axzo.workflow.common.model.dto.AlterDTO;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.json.JSONObject;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.dingtalk.api.DefaultDingTalkClient;
|
||||
@ -73,6 +74,7 @@ public class DingTalkUtils {
|
||||
OapiRobotSendRequest.Markdown markdown = new OapiRobotSendRequest.Markdown();
|
||||
markdown.setTitle("Notice " + title + ", Env: " + profile);
|
||||
String text = "#### [" + profile + "]" + title + "\n" +
|
||||
"> 时间: " + DateUtil.now() + "\n" +
|
||||
"> 入参: " + JSONUtil.toJsonStr(req) + "\n\n" +
|
||||
"> ###### 异常信息: " + JSONUtil.toJsonStr(Objects.isNull(throwable.getCause()) ? throwable.getMessage() :
|
||||
throwable.getCause().getMessage()) + " \n\n" +
|
||||
|
||||
Loading…
Reference in New Issue
Block a user