mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add correct tag invalidation after creating a silence
This commit is contained in:
parent
cdfc6baea4
commit
21a3f4817a
@ -43,7 +43,7 @@ export const alertSilencesApi = alertingApi.injectEndpoints({
|
||||
method: 'POST',
|
||||
data: payload,
|
||||
}),
|
||||
invalidatesTags: ['AlertSilences'],
|
||||
invalidatesTags: ['AlertSilences', 'AlertmanagerAlerts'],
|
||||
}),
|
||||
|
||||
expireSilence: build.mutation<
|
||||
|
@ -35,12 +35,13 @@ export const alertingApi = createApi({
|
||||
tagTypes: [
|
||||
'AlertmanagerChoice',
|
||||
'AlertmanagerConfiguration',
|
||||
'AlertmanagerAlerts',
|
||||
'AlertSilences',
|
||||
'OnCallIntegrations',
|
||||
'OrgMigrationState',
|
||||
'DataSourceSettings',
|
||||
'GrafanaLabels',
|
||||
'CombinedAlertRule',
|
||||
'AlertSilences',
|
||||
],
|
||||
endpoints: () => ({}),
|
||||
});
|
||||
|
@ -78,6 +78,7 @@ export const alertmanagerApi = alertingApi.injectEndpoints({
|
||||
params,
|
||||
};
|
||||
},
|
||||
providesTags: ['AlertmanagerAlerts'],
|
||||
}),
|
||||
|
||||
getAlertmanagerAlertGroups: build.query<AlertmanagerGroup[], { amSourceName: string }>({
|
||||
|
Loading…
Reference in New Issue
Block a user