feat: add task priority in alert info (#14919)
Co-authored-by: Jim Chen <chenshuai19950725@gmail.com> Co-authored-by: Aaron Wang <wangweirao16@gmail.com>
This commit is contained in:
parent
f6a6794289
commit
6dcc26f52e
|
|
@ -91,6 +91,8 @@ public class ProcessAlertContent implements Serializable {
|
|||
private Date taskEndTime;
|
||||
@JsonProperty("taskHost")
|
||||
private String taskHost;
|
||||
@JsonProperty("taskPriority")
|
||||
private String taskPriority;
|
||||
@JsonProperty("logPath")
|
||||
private String logPath;
|
||||
|
||||
|
|
|
|||
|
|
@ -60,6 +60,8 @@ public class TaskAlertContent implements Serializable {
|
|||
private Date endTime;
|
||||
@JsonProperty("host")
|
||||
private String host;
|
||||
@JsonProperty("taskPriority")
|
||||
private String taskPriority;
|
||||
@JsonProperty("logPath")
|
||||
private String logPath;
|
||||
|
||||
|
|
|
|||
|
|
@ -144,6 +144,7 @@ public class ProcessAlertManager {
|
|||
.taskStartTime(task.getStartTime())
|
||||
.taskEndTime(task.getEndTime())
|
||||
.taskHost(task.getHost())
|
||||
.taskPriority(task.getTaskInstancePriority().getDescp())
|
||||
.logPath(task.getLogPath())
|
||||
.build();
|
||||
failedTaskList.add(processAlertContent);
|
||||
|
|
@ -173,6 +174,7 @@ public class ProcessAlertManager {
|
|||
.taskCode(taskInstance.getTaskCode())
|
||||
.taskName(taskInstance.getName())
|
||||
.taskHost(taskInstance.getHost())
|
||||
.taskPriority(taskInstance.getTaskInstancePriority().getDescp())
|
||||
.retryTimes(taskInstance.getRetryTimes())
|
||||
.build();
|
||||
toleranceTaskInstanceList.add(processAlertContent);
|
||||
|
|
@ -387,6 +389,7 @@ public class ProcessAlertManager {
|
|||
.startTime(taskInstance.getStartTime())
|
||||
.endTime(taskInstance.getEndTime())
|
||||
.host(taskInstance.getHost())
|
||||
.taskPriority(taskInstance.getTaskInstancePriority().getDescp())
|
||||
.logPath(taskInstance.getLogPath())
|
||||
.build();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue