mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
feat: Add trigger fields to NotificationSettingV2 model
This commit is contained in:
@@ -5,6 +5,10 @@ const (
|
||||
NotificationTriggerTaskError = "task_error"
|
||||
NotificationTriggerTaskEmptyResults = "task_empty_results"
|
||||
NotificationTriggerTaskNever = "task_never"
|
||||
NotificationTriggerNodeStatusChange = "node_status_change"
|
||||
NotificationTriggerNodeOnline = "node_online"
|
||||
NotificationTriggerNodeOffline = "node_offline"
|
||||
NotificationTriggerNodeNever = "node_never"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -15,6 +15,8 @@ type NotificationSettingV2 struct {
|
||||
TemplateRichText string `json:"template_rich_text,omitempty" bson:"template_rich_text,omitempty"`
|
||||
TemplateRichTextJson string `json:"template_rich_text_json,omitempty" bson:"template_rich_text_json,omitempty"`
|
||||
TaskTrigger string `json:"task_trigger" bson:"task_trigger"`
|
||||
TriggerTarget string `json:"trigger_target" bson:"trigger_target"`
|
||||
Trigger string `json:"trigger" bson:"trigger"`
|
||||
Mail NotificationSettingMail `json:"mail,omitempty" bson:"mail,omitempty"`
|
||||
Mobile NotificationSettingMobile `json:"mobile,omitempty" bson:"mobile,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user