mirror of
https://github.com/grafana/grafana.git
synced 2025-01-15 19:22:34 -06:00
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:
parent
3303900c09
commit
f11d6ebcd0
@ -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'],
|
||||
}),
|
||||
}),
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user