From f11d6ebcd0fefd70e7021c78da0606e5b8914402 Mon Sep 17 00:00:00 2001 From: Gilles De Mey Date: Mon, 12 Aug 2024 13:37:17 +0200 Subject: [PATCH] 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 --- public/app/features/alerting/unified/api/alertmanagerApi.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/app/features/alerting/unified/api/alertmanagerApi.ts b/public/app/features/alerting/unified/api/alertmanagerApi.ts index 0ab462658e2..a979d952108 100644 --- a/public/app/features/alerting/unified/api/alertmanagerApi.ts +++ b/public/app/features/alerting/unified/api/alertmanagerApi.ts @@ -279,9 +279,11 @@ export const alertmanagerApi = alertingApi.injectEndpoints({ // TODO: Remove as part of migration to k8s API for receivers getContactPointsList: build.query({ query: () => ({ url: '/api/v1/notifications/receivers' }), + providesTags: ['AlertmanagerConfiguration'], }), getMuteTimingList: build.query({ query: () => ({ url: '/api/v1/notifications/time-intervals' }), + providesTags: ['AlertmanagerConfiguration'], }), }), });