Skip to content

Commit

Permalink
Support defining default group by strategy for alertmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Phoen committed Jul 20, 2022
1 parent b5b2663 commit c0f685b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions alert-manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ type MessageTemplate map[string]string
type NotificationPolicies struct {
// Default alert receiver
Receiver string `json:"receiver"`

// Default group bys
GroupBy []string `json:"group_by,omitempty"`

// Default timing settings
GroupInterval string `json:"group_interval,omitempty"`
GroupWait string `json:"group_wait,omitempty"`
Expand Down

0 comments on commit c0f685b

Please sign in to comment.