@@ -34,7 +34,7 @@ import {
3434 sendRequest ,
3535 APIMonitorError ,
3636} from './request' ;
37- import { build_proxy_settings , generateURL } from './utils' ;
37+ import { generateURL } from './utils' ;
3838
3939// Default batch size for bulk put / delete
4040export const BATCH_SIZE = parseInt ( process . env . CHUNK_SIZE ) || 250 ;
@@ -57,7 +57,6 @@ export async function bulkPutMonitors(
5757 method : 'PUT' ,
5858 auth : options . auth ,
5959 body : JSON . stringify ( { monitors : schemas } ) ,
60- proxyAgent : build_proxy_settings ( options . proxy_uri , options . proxy_token ) ,
6160 } ) ;
6261
6362 const { failedMonitors } = resp ;
@@ -104,7 +103,6 @@ const fetchMonitors = async (options: PushOptions, afterKey?: string) => {
104103 url,
105104 method : 'GET' ,
106105 auth : options . auth ,
107- proxyAgent : build_proxy_settings ( options . proxy_uri , options . proxy_token ) ,
108106 } ) ;
109107 return {
110108 afterKey : resp . after_key ,
@@ -126,7 +124,6 @@ export async function bulkDeleteMonitors(
126124 method : 'DELETE' ,
127125 auth : options . auth ,
128126 body : JSON . stringify ( { monitors : monitorIDs } ) ,
129- proxyAgent : build_proxy_settings ( options . proxy_uri , options . proxy_token ) ,
130127 } ) ;
131128}
132129
@@ -141,7 +138,6 @@ export async function getVersion(options: PushOptions) {
141138 url : generateURL ( options , 'status' ) ,
142139 method : 'GET' ,
143140 auth : options . auth ,
144- proxyAgent : build_proxy_settings ( options ?. proxy_uri , options ?. proxy_token ) ,
145141 } ) ;
146142
147143 return data . kibana . version ;
@@ -173,7 +169,6 @@ export async function createMonitorsLegacy({
173169 method : 'PUT' ,
174170 auth : options . auth ,
175171 body : JSON . stringify ( schema ) ,
176- proxyAgent : build_proxy_settings ( options . proxy_uri , options . proxy_token ) ,
177172 } ) ;
178173
179174 const resBody = await handleError ( statusCode , url , body ) ;
0 commit comments