Fix formatting
Signed-off-by: Ben Ridley <benridley29@gmail.com>
This commit is contained in:
parent
d177471822
commit
5983d2078d
|
@ -630,11 +630,11 @@ type Route struct {
|
||||||
GroupBy []model.LabelName `yaml:"-" json:"-"`
|
GroupBy []model.LabelName `yaml:"-" json:"-"`
|
||||||
GroupByAll bool `yaml:"-" json:"-"`
|
GroupByAll bool `yaml:"-" json:"-"`
|
||||||
|
|
||||||
Match map[string]string `yaml:"match,omitempty" json:"match,omitempty"`
|
Match map[string]string `yaml:"match,omitempty" json:"match,omitempty"`
|
||||||
MatchRE MatchRegexps `yaml:"match_re,omitempty" json:"match_re,omitempty"`
|
MatchRE MatchRegexps `yaml:"match_re,omitempty" json:"match_re,omitempty"`
|
||||||
MuteTimeIntervals []string `yaml:"mute_time_intervals,omitempty" json:"mute_time_intervals,omitempty"`
|
MuteTimeIntervals []string `yaml:"mute_time_intervals,omitempty" json:"mute_time_intervals,omitempty"`
|
||||||
Continue bool `yaml:"continue" json:"continue,omitempty"`
|
Continue bool `yaml:"continue" json:"continue,omitempty"`
|
||||||
Routes []*Route `yaml:"routes,omitempty" json:"routes,omitempty"`
|
Routes []*Route `yaml:"routes,omitempty" json:"routes,omitempty"`
|
||||||
|
|
||||||
GroupWait *model.Duration `yaml:"group_wait,omitempty" json:"group_wait,omitempty"`
|
GroupWait *model.Duration `yaml:"group_wait,omitempty" json:"group_wait,omitempty"`
|
||||||
GroupInterval *model.Duration `yaml:"group_interval,omitempty" json:"group_interval,omitempty"`
|
GroupInterval *model.Duration `yaml:"group_interval,omitempty" json:"group_interval,omitempty"`
|
||||||
|
|
|
@ -29,11 +29,11 @@ import (
|
||||||
// DefaultRouteOpts are the defaulting routing options which apply
|
// DefaultRouteOpts are the defaulting routing options which apply
|
||||||
// to the root route of a routing tree.
|
// to the root route of a routing tree.
|
||||||
var DefaultRouteOpts = RouteOpts{
|
var DefaultRouteOpts = RouteOpts{
|
||||||
GroupWait: 30 * time.Second,
|
GroupWait: 30 * time.Second,
|
||||||
GroupInterval: 5 * time.Minute,
|
GroupInterval: 5 * time.Minute,
|
||||||
RepeatInterval: 4 * time.Hour,
|
RepeatInterval: 4 * time.Hour,
|
||||||
GroupBy: map[model.LabelName]struct{}{},
|
GroupBy: map[model.LabelName]struct{}{},
|
||||||
GroupByAll: false,
|
GroupByAll: false,
|
||||||
MuteTimeIntervals: []string{},
|
MuteTimeIntervals: []string{},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue