Alerting: Update Time Interval service to support renaming of resources (#91856)
* add RenameTimeIntervalInNotificationSettings to storage * update dependencies when the time interval is renamed --------- Co-authored-by: William Wernert <william.wernert@grafana.com>
This commit is contained in:
+10
-1
@@ -14,7 +14,7 @@
|
||||
]
|
||||
],
|
||||
"mute_time_intervals": [
|
||||
"test-interval"
|
||||
"test-interval", "persisted-interval"
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -28,6 +28,15 @@
|
||||
"end_time": "23:59"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "persisted-interval",
|
||||
"time_intervals": [
|
||||
{
|
||||
"start_time": "06:00",
|
||||
"end_time": "23:59"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"receivers": [
|
||||
|
||||
@@ -28,7 +28,8 @@
|
||||
"notification_settings": {
|
||||
"receiver": "grafana-default-email",
|
||||
"mute_time_intervals": [
|
||||
"test-interval"
|
||||
"test-interval",
|
||||
"persisted-interval"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user