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
This commit is contained in:
Gilles De Mey 2024-08-12 13:37:17 +02:00 committed by GitHub
parent 3303900c09
commit f11d6ebcd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'],
}),
}),
});