增加通知状态刷新任务
This commit is contained in:
@@ -186,10 +186,16 @@ func (app *Application) initializeAlarmNotificationPlan(ctx context.Context, exi
|
||||
Status: models.PlanStatusEnabled,
|
||||
ContentType: models.PlanContentTypeTasks,
|
||||
Tasks: []models.Task{
|
||||
{
|
||||
Name: "刷新通知状态",
|
||||
Description: "刷新所有待处理的告警通知状态, 如将忽略到期的通知改回待发送状态",
|
||||
ExecutionOrder: 1,
|
||||
Type: models.TaskTypeNotificationRefresh,
|
||||
},
|
||||
{
|
||||
Name: "告警通知发送",
|
||||
Description: "发送所有待处理的告警通知",
|
||||
ExecutionOrder: 1,
|
||||
ExecutionOrder: 2,
|
||||
Type: models.TaskTypeAlarmNotification,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user