Skip to content

Commit

Permalink
Merge pull request #391 from openinfradev/fix_snr
Browse files Browse the repository at this point in the history
trivial. add status to systemNotificationRule
  • Loading branch information
ktkfree authored Apr 17, 2024
2 parents 24115ad + aad38c2 commit eb83030
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/domain/system-notification-rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion scripts/init_postgres.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 )

0 comments on commit eb83030

Please sign in to comment.