diff --git a/config/config.go b/config/config.go index 2d7a780b..76b641dc 100644 --- a/config/config.go +++ b/config/config.go @@ -630,11 +630,11 @@ type Route struct { GroupBy []model.LabelName `yaml:"-" json:"-"` GroupByAll bool `yaml:"-" json:"-"` - Match map[string]string `yaml:"match,omitempty" json:"match,omitempty"` - MatchRE MatchRegexps `yaml:"match_re,omitempty" json:"match_re,omitempty"` - MuteTimeIntervals []string `yaml:"mute_time_intervals,omitempty" json:"mute_time_intervals,omitempty"` - Continue bool `yaml:"continue" json:"continue,omitempty"` - Routes []*Route `yaml:"routes,omitempty" json:"routes,omitempty"` + Match map[string]string `yaml:"match,omitempty" json:"match,omitempty"` + MatchRE MatchRegexps `yaml:"match_re,omitempty" json:"match_re,omitempty"` + MuteTimeIntervals []string `yaml:"mute_time_intervals,omitempty" json:"mute_time_intervals,omitempty"` + Continue bool `yaml:"continue" json:"continue,omitempty"` + Routes []*Route `yaml:"routes,omitempty" json:"routes,omitempty"` GroupWait *model.Duration `yaml:"group_wait,omitempty" json:"group_wait,omitempty"` GroupInterval *model.Duration `yaml:"group_interval,omitempty" json:"group_interval,omitempty"` diff --git a/dispatch/route.go b/dispatch/route.go index 87082488..f892f264 100644 --- a/dispatch/route.go +++ b/dispatch/route.go @@ -29,11 +29,11 @@ import ( // DefaultRouteOpts are the defaulting routing options which apply // to the root route of a routing tree. var DefaultRouteOpts = RouteOpts{ - GroupWait: 30 * time.Second, - GroupInterval: 5 * time.Minute, - RepeatInterval: 4 * time.Hour, - GroupBy: map[model.LabelName]struct{}{}, - GroupByAll: false, + GroupWait: 30 * time.Second, + GroupInterval: 5 * time.Minute, + RepeatInterval: 4 * time.Hour, + GroupBy: map[model.LabelName]struct{}{}, + GroupByAll: false, MuteTimeIntervals: []string{}, }