diff --git a/public/app/features/alerting/unified/api/alertRuleApi.ts b/public/app/features/alerting/unified/api/alertRuleApi.ts index d218e0db3fd..48fcce36378 100644 --- a/public/app/features/alerting/unified/api/alertRuleApi.ts +++ b/public/app/features/alerting/unified/api/alertRuleApi.ts @@ -180,7 +180,7 @@ export const alertRuleApi = alertingApi.injectEndpoints({ transformResponse: (response: PromRulesResponse, _, args): RuleNamespace[] => { return groupRulesByFileName(response.data.groups, args.ruleSourceName); }, - providesTags: ['AlertRulerRule'], + providesTags: ['CombinedAlertRule'], }), rulerRules: build.query< @@ -191,7 +191,7 @@ export const alertRuleApi = alertingApi.injectEndpoints({ const { path, params } = rulerUrlBuilder(rulerConfig).rules(filter); return { url: path, params }; }, - providesTags: ['AlertRulerRule'], + providesTags: ['CombinedAlertRule'], }), // TODO This should be probably a separate ruler API file @@ -203,7 +203,7 @@ export const alertRuleApi = alertingApi.injectEndpoints({ const { path, params } = rulerUrlBuilder(rulerConfig).namespaceGroup(namespace, group); return { url: path, params }; }, - providesTags: ['AlertRulerRule'], + providesTags: ['CombinedAlertRule'], }), exportRules: build.query({ @@ -274,7 +274,7 @@ export const alertRuleApi = alertingApi.injectEndpoints({ method: 'POST', showSuccessAlert: false, }), - invalidatesTags: ['AlertRulerRule'], + invalidatesTags: ['CombinedAlertRule'], }), }), }); diff --git a/public/app/features/alerting/unified/api/alertingApi.ts b/public/app/features/alerting/unified/api/alertingApi.ts index 1d4f638705a..1efad56dfea 100644 --- a/public/app/features/alerting/unified/api/alertingApi.ts +++ b/public/app/features/alerting/unified/api/alertingApi.ts @@ -38,7 +38,7 @@ export const alertingApi = createApi({ 'OnCallIntegrations', 'OrgMigrationState', 'DataSourceSettings', - 'AlertRulerRule', + 'CombinedAlertRule', ], endpoints: () => ({}), });