From 3b653328ef7d441505a3a9d89e187f4d4d1bc1bd Mon Sep 17 00:00:00 2001 From: JinyLeeChina <297061848@qq.com> Date: Fri, 27 Dec 2019 15:20:57 +0800 Subject: [PATCH] '#1595' --- .../server/utils/AlertManager.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/AlertManager.java b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/AlertManager.java index 8ae96a3136..f3441edd17 100644 --- a/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/AlertManager.java +++ b/dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/AlertManager.java @@ -90,15 +90,15 @@ public class AlertManager { * process instance format */ private static final String PROCESS_INSTANCE_FORMAT = - "\"Id:%d\"," + - "\"Name:%s\"," + - "\"Job type: %s\"," + - "\"State: %s\"," + - "\"Recovery:%s\"," + - "\"Run time: %d\"," + - "\"Start time: %s\"," + - "\"End time: %s\"," + - "\"Host: %s\"" ; + "\"id:%d\"," + + "\"name:%s\"," + + "\"job type: %s\"," + + "\"state: %s\"," + + "\"recovery:%s\"," + + "\"run time: %d\"," + + "\"start time: %s\"," + + "\"end time: %s\"," + + "\"host: %s\"" ; /** * get process instance content @@ -234,7 +234,7 @@ public class AlertManager { String cmdName = getCommandCnName(processInstance.getCommandType()); String success = processInstance.getState().typeIsSuccess() ? "success" :"failed"; - alert.setTitle(cmdName + success); + alert.setTitle(cmdName + " " + success); ShowType showType = processInstance.getState().typeIsSuccess() ? ShowType.TEXT : ShowType.TABLE; alert.setShowType(showType); String content = getContentProcessInstance(processInstance, taskInstances);