Alerting: MuteTimeService to support TimeInterval and MuteTimeInterval fields in Alertmanager config (#91500)

* update notification policy provisioing to consider time intervals
* change names of intervals to be in order
This commit is contained in:
Yuri Tseretyan
2024-08-13 11:37:21 -04:00
committed by GitHub
parent d52d04b6d8
commit 7b919e3277
8 changed files with 278 additions and 59 deletions
@@ -1 +1,43 @@
{"apiVersion":1,"muteTimes":[{"orgId":1,"name":"interval","time_intervals":[]},{"orgId":1,"name":"full-interval","time_intervals":[{"times":[{"start_time":"10:00","end_time":"12:00"}],"weekdays":["monday","wednesday","friday"],"days_of_month":["1","14:16","20"],"months":["1:3","7","12"],"years":["2023:2025"],"location":"America/New_York"}]}]}
{
"apiVersion": 1,
"muteTimes": [
{
"orgId": 1,
"name": "interval-1",
"time_intervals": []
},
{
"orgId": 1,
"name": "interval-2",
"time_intervals": [
{
"times": [
{
"start_time": "10:00",
"end_time": "12:00"
}
],
"weekdays": [
"monday",
"wednesday",
"friday"
],
"days_of_month": [
"1",
"14:16",
"20"
],
"months": [
"1:3",
"7",
"12"
],
"years": [
"2023:2025"
],
"location": "America/New_York"
}
]
}
]
}