Add default time interval config to match test cases

Signed-off-by: Ben Ridley <benridley29@gmail.com>
This commit is contained in:
Ben Ridley 2023-09-29 10:25:51 +10:00
parent 2269bbc03b
commit 148f4a823a
1 changed files with 216 additions and 162 deletions

View File

@ -114,6 +114,8 @@ routes:
GroupWait: def.GroupWait,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{owner=\"team-A\"}"},
@ -131,6 +133,8 @@ routes:
GroupWait: def.GroupWait,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{owner=\"team-A\"}"},
@ -147,6 +151,8 @@ routes:
GroupWait: 2 * time.Minute,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{owner=~\"^(?:team-(B|C))$\"}"},
@ -164,6 +170,8 @@ routes:
GroupWait: def.GroupWait,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{owner=\"team-A\"}/{env=\"testing\"}"},
@ -181,6 +189,8 @@ routes:
GroupWait: 1 * time.Minute,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
{
Receiver: "notify-productionB",
@ -189,6 +199,8 @@ routes:
GroupWait: 30 * time.Second,
GroupInterval: 5 * time.Minute,
RepeatInterval: 1 * time.Hour,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{
@ -208,6 +220,8 @@ routes:
GroupWait: def.GroupWait,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{group_by=\"role\"}"},
@ -225,6 +239,8 @@ routes:
GroupWait: def.GroupWait,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{group_by=\"role\"}/{env=\"testing\"}"},
@ -243,6 +259,8 @@ routes:
GroupWait: 2 * time.Minute,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{group_by=\"role\"}/{env=\"testing\"}/{wait=\"long\"}"},
@ -526,6 +544,8 @@ routes:
GroupWait: def.GroupWait,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{level!=\"critical\",owner=\"team-A\"}"},
@ -543,6 +563,8 @@ routes:
GroupWait: def.GroupWait,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{level!=\"critical\",owner=\"team-A\"}"},
@ -559,6 +581,8 @@ routes:
GroupWait: 2 * time.Minute,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{owner=~\"team-(B|C)\"}"},
@ -576,6 +600,8 @@ routes:
GroupWait: def.GroupWait,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{level!=\"critical\",owner=\"team-A\"}/{baz!~\".*quux\",env=\"testing\"}"},
@ -593,6 +619,8 @@ routes:
GroupWait: 1 * time.Minute,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
{
Receiver: "notify-productionB",
@ -601,6 +629,8 @@ routes:
GroupWait: 30 * time.Second,
GroupInterval: 5 * time.Minute,
RepeatInterval: 1 * time.Hour,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{
@ -620,6 +650,8 @@ routes:
GroupWait: def.GroupWait,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{group_by=\"role\"}"},
@ -637,6 +669,8 @@ routes:
GroupWait: def.GroupWait,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{group_by=\"role\"}/{env=\"testing\"}"},
@ -655,6 +689,8 @@ routes:
GroupWait: 2 * time.Minute,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{group_by=\"role\"}/{env=\"testing\"}/{wait=\"long\"}"},
@ -762,6 +798,8 @@ routes:
GroupWait: def.GroupWait,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{level!=\"critical\",owner=\"team-A\"}"},
@ -779,6 +817,8 @@ routes:
GroupWait: def.GroupWait,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{level!=\"critical\",owner=\"team-A\"}"},
@ -795,6 +835,8 @@ routes:
GroupWait: 2 * time.Minute,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{owner=~\"^(?:team-(B|C))$\"}"},
@ -812,6 +854,8 @@ routes:
GroupWait: def.GroupWait,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{level!=\"critical\",owner=\"team-A\"}/{baz!~\".*quux\",env=\"testing\"}"},
@ -829,6 +873,8 @@ routes:
GroupWait: 1 * time.Minute,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
{
Receiver: "notify-productionB",
@ -837,6 +883,8 @@ routes:
GroupWait: 30 * time.Second,
GroupInterval: 5 * time.Minute,
RepeatInterval: 1 * time.Hour,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{
@ -856,6 +904,8 @@ routes:
GroupWait: def.GroupWait,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{group_by=\"role\"}"},
@ -873,6 +923,8 @@ routes:
GroupWait: def.GroupWait,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{group_by=\"role\"}/{env=\"testing\"}"},
@ -891,6 +943,8 @@ routes:
GroupWait: 2 * time.Minute,
GroupInterval: def.GroupInterval,
RepeatInterval: def.RepeatInterval,
MuteTimeIntervals: def.MuteTimeIntervals,
ActiveTimeIntervals: def.ActiveTimeIntervals,
},
},
keys: []string{"{}/{group_by=\"role\"}/{env=\"testing\"}/{wait=\"long\"}"},