|
|
|
@ -201,6 +201,7 @@ export const alertRuleApi = alertingApi.injectEndpoints({ |
|
|
|
|
params: { format: format, folderUid: folderUid, group: group, ruleUid: ruleUid }, |
|
|
|
|
responseType: 'text', |
|
|
|
|
}), |
|
|
|
|
keepUnusedDataFor: 0, |
|
|
|
|
}), |
|
|
|
|
exportReceiver: build.query<string, { receiverName: string; decrypt: boolean; format: ExportFormats }>({ |
|
|
|
|
query: ({ receiverName, decrypt, format }) => ({ |
|
|
|
@ -208,6 +209,7 @@ export const alertRuleApi = alertingApi.injectEndpoints({ |
|
|
|
|
params: { format: format, decrypt: decrypt, name: receiverName }, |
|
|
|
|
responseType: 'text', |
|
|
|
|
}), |
|
|
|
|
keepUnusedDataFor: 0, |
|
|
|
|
}), |
|
|
|
|
exportReceivers: build.query<string, { decrypt: boolean; format: ExportFormats }>({ |
|
|
|
|
query: ({ decrypt, format }) => ({ |
|
|
|
@ -215,6 +217,7 @@ export const alertRuleApi = alertingApi.injectEndpoints({ |
|
|
|
|
params: { format: format, decrypt: decrypt }, |
|
|
|
|
responseType: 'text', |
|
|
|
|
}), |
|
|
|
|
keepUnusedDataFor: 0, |
|
|
|
|
}), |
|
|
|
|
exportPolicies: build.query<string, { format: ExportFormats }>({ |
|
|
|
|
query: ({ format }) => ({ |
|
|
|
@ -222,6 +225,7 @@ export const alertRuleApi = alertingApi.injectEndpoints({ |
|
|
|
|
params: { format: format }, |
|
|
|
|
responseType: 'text', |
|
|
|
|
}), |
|
|
|
|
keepUnusedDataFor: 0, |
|
|
|
|
}), |
|
|
|
|
exportModifiedRuleGroup: build.mutation< |
|
|
|
|
string, |
|
|
|
|