diff --git a/pkg/domain/system-notification-rule.go b/pkg/domain/system-notification-rule.go index ed33b8b9..c8026d38 100644 --- a/pkg/domain/system-notification-rule.go +++ b/pkg/domain/system-notification-rule.go @@ -41,6 +41,7 @@ type SystemNotificationRuleResponse struct { SystemNotificationTemplate SimpleSystemNotificationTemplateResponse `json:"systemNotificationTemplate"` SystemNotificationCondition SystemNotificationConditionResponse `json:"systemNotificationCondition"` IsSystem bool `json:"isSystem"` + Status string `json:"status"` Creator SimpleUserResponse `json:"creator"` Updator SimpleUserResponse `json:"updator"` CreatedAt time.Time `json:"createdAt"` @@ -66,6 +67,7 @@ type SimpleSystemNotificationRuleResponse struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` + Status string `json:"status"` } type GetSystemNotificationRulesResponse struct { diff --git a/scripts/init_postgres.sql b/scripts/init_postgres.sql index 6b3fab26..6f2ba46d 100644 --- a/scripts/init_postgres.sql +++ b/scripts/init_postgres.sql @@ -105,4 +105,3 @@ insert into system_notification_metric_parameters ( "order", system_notification values ( 5, '7355d0f9-7c14-4f70-92ea-a9868624ff82', 'VIOLATING_NAME', '$labels.violating_name', now(), now() ); insert into system_notification_metric_parameters ( "order", system_notification_template_id, key, value, created_at, updated_at ) values ( 6, '7355d0f9-7c14-4f70-92ea-a9868624ff82', 'VIOLATION_MSG', '$labels.violation_msg', now(), now() ); -insert into system_notification_metric_parameters ( "order", system_notification_template_id, key, value, created_at, updated_at )