[v11.2.x] Alerting: Update contact points list and mute timings list on update (#92053)
Alerting: Update contact points list and mute timings list on update (#91776)
make sure that contact points list and mute timings list are updated when we update the alertmanager configuration
(cherry picked from commit f11d6ebcd0)
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
This commit is contained in:
co-authored by
Gilles De Mey
parent
15e926509b
commit
a29d3d1669
@@ -279,9 +279,11 @@ export const alertmanagerApi = alertingApi.injectEndpoints({
|
||||
// TODO: Remove as part of migration to k8s API for receivers
|
||||
getContactPointsList: build.query<GrafanaManagedContactPoint[], void>({
|
||||
query: () => ({ url: '/api/v1/notifications/receivers' }),
|
||||
providesTags: ['AlertmanagerConfiguration'],
|
||||
}),
|
||||
getMuteTimingList: build.query<MuteTimeInterval[], void>({
|
||||
query: () => ({ url: '/api/v1/notifications/time-intervals' }),
|
||||
providesTags: ['AlertmanagerConfiguration'],
|
||||
}),
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user