mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Rename tag for combined alert rules
This commit is contained in:
parent
1fcb264c87
commit
d585a5bc88
@ -180,7 +180,7 @@ export const alertRuleApi = alertingApi.injectEndpoints({
|
|||||||
transformResponse: (response: PromRulesResponse, _, args): RuleNamespace[] => {
|
transformResponse: (response: PromRulesResponse, _, args): RuleNamespace[] => {
|
||||||
return groupRulesByFileName(response.data.groups, args.ruleSourceName);
|
return groupRulesByFileName(response.data.groups, args.ruleSourceName);
|
||||||
},
|
},
|
||||||
providesTags: ['AlertRulerRule'],
|
providesTags: ['CombinedAlertRule'],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
rulerRules: build.query<
|
rulerRules: build.query<
|
||||||
@ -191,7 +191,7 @@ export const alertRuleApi = alertingApi.injectEndpoints({
|
|||||||
const { path, params } = rulerUrlBuilder(rulerConfig).rules(filter);
|
const { path, params } = rulerUrlBuilder(rulerConfig).rules(filter);
|
||||||
return { url: path, params };
|
return { url: path, params };
|
||||||
},
|
},
|
||||||
providesTags: ['AlertRulerRule'],
|
providesTags: ['CombinedAlertRule'],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
// TODO This should be probably a separate ruler API file
|
// 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);
|
const { path, params } = rulerUrlBuilder(rulerConfig).namespaceGroup(namespace, group);
|
||||||
return { url: path, params };
|
return { url: path, params };
|
||||||
},
|
},
|
||||||
providesTags: ['AlertRulerRule'],
|
providesTags: ['CombinedAlertRule'],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
exportRules: build.query<string, ExportRulesParams>({
|
exportRules: build.query<string, ExportRulesParams>({
|
||||||
@ -274,7 +274,7 @@ export const alertRuleApi = alertingApi.injectEndpoints({
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
showSuccessAlert: false,
|
showSuccessAlert: false,
|
||||||
}),
|
}),
|
||||||
invalidatesTags: ['AlertRulerRule'],
|
invalidatesTags: ['CombinedAlertRule'],
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
@ -38,7 +38,7 @@ export const alertingApi = createApi({
|
|||||||
'OnCallIntegrations',
|
'OnCallIntegrations',
|
||||||
'OrgMigrationState',
|
'OrgMigrationState',
|
||||||
'DataSourceSettings',
|
'DataSourceSettings',
|
||||||
'AlertRulerRule',
|
'CombinedAlertRule',
|
||||||
],
|
],
|
||||||
endpoints: () => ({}),
|
endpoints: () => ({}),
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user