Skip to content

Commit

Permalink
trivial. add omitempty
Browse files Browse the repository at this point in the history
  • Loading branch information
ktkfree committed May 9, 2024
1 parent ed3e967 commit 0de2f89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/server/system_notification_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ type RuleAnnotation struct {
Message string `yaml:"message"`
Summary string `yaml:"summary"`
AlertType string `yaml:"alertType"`
SystemNotificationRuleId string `yaml:"systemNotificationRuleId"`
PolicyName string `yaml:"policyName"`
PolicyTemplateName string `yaml:"policyTemplateName"`
SystemNotificationRuleId string `yaml:"systemNotificationRuleId,omitempty"`
PolicyName string `yaml:"policyName,omitempty"`
PolicyTemplateName string `yaml:"policyTemplateName,omitempty"`
}

type RuleLabels struct {
Expand Down

0 comments on commit 0de2f89

Please sign in to comment.