mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
refactor: Update SendNotification function to handle old and new settings triggers
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
package constants
|
||||
|
||||
const (
|
||||
NotificationTriggerTargetTask = "task"
|
||||
NotificationTriggerTargetNode = "node"
|
||||
)
|
||||
|
||||
const (
|
||||
NotificationTriggerTaskFinish = "task_finish"
|
||||
NotificationTriggerTaskError = "task_error"
|
||||
NotificationTriggerTaskEmptyResults = "task_empty_results"
|
||||
NotificationTriggerTaskNever = "task_never"
|
||||
NotificationTriggerNodeStatusChange = "node_status_change"
|
||||
NotificationTriggerNodeOnline = "node_online"
|
||||
NotificationTriggerNodeOffline = "node_offline"
|
||||
NotificationTriggerNodeNever = "node_never"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user