mirror of
https://github.com/grafana/grafana.git
synced 2026-08-26 13:27:30 -05:00
Rename silences RTKQ tag
This commit is contained in:
committed by
Tom Ratcliffe
parent
4d4bf39184
commit
9bf2cf0a52
@@ -13,7 +13,7 @@ export const alertSilencesApi = alertingApi.injectEndpoints({
|
||||
query: ({ datasourceUid }) => ({
|
||||
url: `/api/alertmanager/${datasourceUid}/api/v2/silences`,
|
||||
}),
|
||||
providesTags: ['AlertSilences'],
|
||||
providesTags: ['AlertmanagerSilences'],
|
||||
}),
|
||||
|
||||
getSilence: build.query<
|
||||
@@ -26,7 +26,7 @@ export const alertSilencesApi = alertingApi.injectEndpoints({
|
||||
query: ({ datasourceUid, id }) => ({
|
||||
url: `/api/alertmanager/${datasourceUid}/api/v2/silence/${id}`,
|
||||
}),
|
||||
providesTags: ['AlertSilences'],
|
||||
providesTags: ['AlertmanagerSilences'],
|
||||
}),
|
||||
|
||||
createSilence: build.mutation<
|
||||
@@ -43,7 +43,7 @@ export const alertSilencesApi = alertingApi.injectEndpoints({
|
||||
method: 'POST',
|
||||
data: payload,
|
||||
}),
|
||||
invalidatesTags: ['AlertSilences', 'AlertmanagerAlerts'],
|
||||
invalidatesTags: ['AlertmanagerSilences', 'AlertmanagerAlerts'],
|
||||
}),
|
||||
|
||||
expireSilence: build.mutation<
|
||||
@@ -59,7 +59,7 @@ export const alertSilencesApi = alertingApi.injectEndpoints({
|
||||
url: `/api/alertmanager/${datasourceUid}/api/v2/silence/${silenceId}`,
|
||||
method: 'DELETE',
|
||||
}),
|
||||
invalidatesTags: ['AlertSilences'],
|
||||
invalidatesTags: ['AlertmanagerSilences'],
|
||||
}),
|
||||
}),
|
||||
});
|
||||
|
||||
@@ -36,7 +36,7 @@ export const alertingApi = createApi({
|
||||
'AlertmanagerChoice',
|
||||
'AlertmanagerConfiguration',
|
||||
'AlertmanagerAlerts',
|
||||
'AlertSilences',
|
||||
'AlertmanagerSilences',
|
||||
'OnCallIntegrations',
|
||||
'OrgMigrationState',
|
||||
'DataSourceSettings',
|
||||
|
||||
Reference in New Issue
Block a user