mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-28 17:50:56 +01:00
feat: Update notification trigger patterns and add alert trigger
The code changes modify the notification constants and models to update the trigger patterns for tasks and nodes. Additionally, a new trigger for alerts is added to the constants. This change allows for more flexible matching of notification triggers.
This commit is contained in:
@@ -3,9 +3,11 @@ package notification
|
||||
import "github.com/crawlab-team/crawlab/core/models/models/v2"
|
||||
|
||||
type VariableData struct {
|
||||
Task *models.TaskV2 `json:"task"`
|
||||
TaskStat *models.TaskStatV2 `json:"task_stat"`
|
||||
Spider *models.SpiderV2 `json:"spider"`
|
||||
Node *models.NodeV2 `json:"node"`
|
||||
Schedule *models.ScheduleV2 `json:"schedule"`
|
||||
Task *models.TaskV2 `json:"task"`
|
||||
TaskStat *models.TaskStatV2 `json:"task_stat"`
|
||||
Spider *models.SpiderV2 `json:"spider"`
|
||||
Node *models.NodeV2 `json:"node"`
|
||||
Schedule *models.ScheduleV2 `json:"schedule"`
|
||||
Alert *models.NotificationAlertV2 `json:"alert"`
|
||||
Metric *models.MetricV2 `json:"metric"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user