@algolia/monitoring 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,420 @@
1
+ import * as _algolia_client_common from '@algolia/client-common';
2
+ import { CreateClientOptions, RequestOptions, ClientOptions } from '@algolia/client-common';
3
+
4
+ type Metric = '*' | 'avg_build_time' | 'cpu_usage' | 'ram_indexing_usage' | 'ram_search_usage' | 'ssd_usage';
5
+
6
+ type Period = 'day' | 'hour' | 'minute' | 'month' | 'week';
7
+
8
+ /**
9
+ * Properties for the `customDelete` method.
10
+ */
11
+ type CustomDeleteProps = {
12
+ /**
13
+ * Path of the endpoint, anything after \"/1\" must be specified.
14
+ */
15
+ path: string;
16
+ /**
17
+ * Query parameters to apply to the current query.
18
+ */
19
+ parameters?: Record<string, any>;
20
+ };
21
+ /**
22
+ * Properties for the `customGet` method.
23
+ */
24
+ type CustomGetProps = {
25
+ /**
26
+ * Path of the endpoint, anything after \"/1\" must be specified.
27
+ */
28
+ path: string;
29
+ /**
30
+ * Query parameters to apply to the current query.
31
+ */
32
+ parameters?: Record<string, any>;
33
+ };
34
+ /**
35
+ * Properties for the `customPost` method.
36
+ */
37
+ type CustomPostProps = {
38
+ /**
39
+ * Path of the endpoint, anything after \"/1\" must be specified.
40
+ */
41
+ path: string;
42
+ /**
43
+ * Query parameters to apply to the current query.
44
+ */
45
+ parameters?: Record<string, any>;
46
+ /**
47
+ * Parameters to send with the custom request.
48
+ */
49
+ body?: Record<string, unknown>;
50
+ };
51
+ /**
52
+ * Properties for the `customPut` method.
53
+ */
54
+ type CustomPutProps = {
55
+ /**
56
+ * Path of the endpoint, anything after \"/1\" must be specified.
57
+ */
58
+ path: string;
59
+ /**
60
+ * Query parameters to apply to the current query.
61
+ */
62
+ parameters?: Record<string, any>;
63
+ /**
64
+ * Parameters to send with the custom request.
65
+ */
66
+ body?: Record<string, unknown>;
67
+ };
68
+ /**
69
+ * Properties for the `getClusterIncidents` method.
70
+ */
71
+ type GetClusterIncidentsProps = {
72
+ /**
73
+ * Subset of clusters, separated by comma.
74
+ */
75
+ clusters: string;
76
+ };
77
+ /**
78
+ * Properties for the `getClusterStatus` method.
79
+ */
80
+ type GetClusterStatusProps = {
81
+ /**
82
+ * Subset of clusters, separated by comma.
83
+ */
84
+ clusters: string;
85
+ };
86
+ /**
87
+ * Properties for the `getIndexingTime` method.
88
+ */
89
+ type GetIndexingTimeProps = {
90
+ /**
91
+ * Subset of clusters, separated by comma.
92
+ */
93
+ clusters: string;
94
+ };
95
+ /**
96
+ * Properties for the `getLatency` method.
97
+ */
98
+ type GetLatencyProps = {
99
+ /**
100
+ * Subset of clusters, separated by comma.
101
+ */
102
+ clusters: string;
103
+ };
104
+ /**
105
+ * Properties for the `getMetrics` method.
106
+ */
107
+ type GetMetricsProps = {
108
+ /**
109
+ * Metric to report. For more information about the individual metrics, see the description of the API response. To include all metrics, use `*`.
110
+ */
111
+ metric: Metric;
112
+ /**
113
+ * Period over which to aggregate the metrics: - `minute`. Aggregate the last minute. 1 data point per 10 seconds. - `hour`. Aggregate the last hour. 1 data point per minute. - `day`. Aggregate the last day. 1 data point per 10 minutes. - `week`. Aggregate the last week. 1 data point per hour. - `month`. Aggregate the last month. 1 data point per day.
114
+ */
115
+ period: Period;
116
+ };
117
+ /**
118
+ * Properties for the `getReachability` method.
119
+ */
120
+ type GetReachabilityProps = {
121
+ /**
122
+ * Subset of clusters, separated by comma.
123
+ */
124
+ clusters: string;
125
+ };
126
+
127
+ /**
128
+ * Status of the cluster.
129
+ */
130
+ type Status = 'degraded_performance' | 'major_outage' | 'operational' | 'partial_outage';
131
+
132
+ /**
133
+ * Incident details.
134
+ */
135
+ type Incident = {
136
+ /**
137
+ * Description of the incident.
138
+ */
139
+ title?: string;
140
+ status?: Status;
141
+ };
142
+
143
+ type IncidentEntry = {
144
+ /**
145
+ * Timestamp, measured in milliseconds since the Unix epoch.
146
+ */
147
+ t?: number;
148
+ v?: Incident;
149
+ };
150
+
151
+ type IncidentsResponse = {
152
+ incidents?: Record<string, IncidentEntry[]>;
153
+ };
154
+
155
+ type TimeEntry = {
156
+ /**
157
+ * Timestamp, measured in milliseconds since the Unix epoch.
158
+ */
159
+ t?: number;
160
+ /**
161
+ * Time in ms.
162
+ */
163
+ v?: number;
164
+ };
165
+
166
+ type IndexingMetric = {
167
+ indexing?: Record<string, TimeEntry[]>;
168
+ };
169
+
170
+ type IndexingTimeResponse = {
171
+ metrics?: IndexingMetric;
172
+ };
173
+
174
+ type ProbesMetric = {
175
+ /**
176
+ * Timestamp, measured in milliseconds since the Unix epoch.
177
+ */
178
+ t?: number;
179
+ /**
180
+ * Value of the metric.
181
+ */
182
+ v?: number;
183
+ };
184
+
185
+ type Metrics = {
186
+ /**
187
+ * CPU idleness in %.
188
+ */
189
+ cpu_usage?: Record<string, ProbesMetric[]>;
190
+ /**
191
+ * RAM used for indexing in MB.
192
+ */
193
+ ram_indexing_usage?: Record<string, ProbesMetric[]>;
194
+ /**
195
+ * RAM used for search in MB.
196
+ */
197
+ ram_search_usage?: Record<string, ProbesMetric[]>;
198
+ /**
199
+ * Solid-state disk (SSD) usage expressed as % of RAM. 0% means no SSD usage. A value of 50% indicates 32&nbsp;GB SSD usage for a machine with 64&nbsp;RAM.
200
+ */
201
+ ssd_usage?: Record<string, ProbesMetric[]>;
202
+ /**
203
+ * Average build time of the indices in seconds.
204
+ */
205
+ avg_build_time?: Record<string, ProbesMetric[]>;
206
+ };
207
+
208
+ type InfrastructureResponse = {
209
+ metrics?: Metrics;
210
+ };
211
+
212
+ /**
213
+ * Region where the cluster is located.
214
+ */
215
+ type Region = 'au' | 'br' | 'ca' | 'de' | 'eu' | 'hk' | 'in' | 'jp' | 'sg' | 'uae' | 'uk' | 'usc' | 'use' | 'usw' | 'za';
216
+
217
+ type ServerStatus = 'PRODUCTION';
218
+
219
+ type Type = 'cluster';
220
+
221
+ type Server = {
222
+ /**
223
+ * Server name.
224
+ */
225
+ name?: string;
226
+ region?: Region;
227
+ /**
228
+ * Included to support legacy applications. Use `is_replica` instead.
229
+ */
230
+ is_slave?: boolean;
231
+ /**
232
+ * Whether this server is a replica of another server.
233
+ */
234
+ is_replica?: boolean;
235
+ /**
236
+ * Name of the cluster to which this server belongs.
237
+ */
238
+ cluster?: string;
239
+ status?: ServerStatus;
240
+ type?: Type;
241
+ };
242
+
243
+ type InventoryResponse = {
244
+ inventory?: Server[];
245
+ };
246
+
247
+ type LatencyMetric = {
248
+ latency?: Record<string, TimeEntry[]>;
249
+ };
250
+
251
+ type LatencyResponse = {
252
+ metrics?: LatencyMetric;
253
+ };
254
+
255
+ type StatusResponse = {
256
+ status?: Record<string, Status>;
257
+ };
258
+
259
+ declare const apiClientVersion = "1.4.0";
260
+ declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
261
+ transporter: _algolia_client_common.Transporter;
262
+ /**
263
+ * The `appId` currently in use.
264
+ */
265
+ appId: string;
266
+ /**
267
+ * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
268
+ */
269
+ clearCache(): Promise<void>;
270
+ /**
271
+ * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
272
+ */
273
+ readonly _ua: string;
274
+ /**
275
+ * Adds a `segment` to the `x-algolia-agent` sent with every requests.
276
+ *
277
+ * @param segment - The algolia agent (user-agent) segment to add.
278
+ * @param version - The version of the agent.
279
+ */
280
+ addAlgoliaAgent(segment: string, version?: string): void;
281
+ /**
282
+ * Helper method to switch the API key used to authenticate the requests.
283
+ *
284
+ * @param params - Method params.
285
+ * @param params.apiKey - The new API Key to use.
286
+ */
287
+ setClientApiKey({ apiKey }: {
288
+ apiKey: string;
289
+ }): void;
290
+ /**
291
+ * This method allow you to send requests to the Algolia REST API.
292
+ *
293
+ * @param customDelete - The customDelete object.
294
+ * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
295
+ * @param customDelete.parameters - Query parameters to apply to the current query.
296
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
297
+ */
298
+ customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
299
+ /**
300
+ * This method allow you to send requests to the Algolia REST API.
301
+ *
302
+ * @param customGet - The customGet object.
303
+ * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
304
+ * @param customGet.parameters - Query parameters to apply to the current query.
305
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
306
+ */
307
+ customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
308
+ /**
309
+ * This method allow you to send requests to the Algolia REST API.
310
+ *
311
+ * @param customPost - The customPost object.
312
+ * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
313
+ * @param customPost.parameters - Query parameters to apply to the current query.
314
+ * @param customPost.body - Parameters to send with the custom request.
315
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
316
+ */
317
+ customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
318
+ /**
319
+ * This method allow you to send requests to the Algolia REST API.
320
+ *
321
+ * @param customPut - The customPut object.
322
+ * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
323
+ * @param customPut.parameters - Query parameters to apply to the current query.
324
+ * @param customPut.body - Parameters to send with the custom request.
325
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
326
+ */
327
+ customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
328
+ /**
329
+ * Retrieves known incidents for the selected clusters.
330
+ *
331
+ * @param getClusterIncidents - The getClusterIncidents object.
332
+ * @param getClusterIncidents.clusters - Subset of clusters, separated by comma.
333
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
334
+ */
335
+ getClusterIncidents({ clusters }: GetClusterIncidentsProps, requestOptions?: RequestOptions): Promise<IncidentsResponse>;
336
+ /**
337
+ * Retrieves the status of selected clusters.
338
+ *
339
+ * @param getClusterStatus - The getClusterStatus object.
340
+ * @param getClusterStatus.clusters - Subset of clusters, separated by comma.
341
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
342
+ */
343
+ getClusterStatus({ clusters }: GetClusterStatusProps, requestOptions?: RequestOptions): Promise<StatusResponse>;
344
+ /**
345
+ * Retrieves known incidents for all clusters.
346
+ *
347
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
348
+ */
349
+ getIncidents(requestOptions?: RequestOptions): Promise<IncidentsResponse>;
350
+ /**
351
+ * Retrieves average times for indexing operations for selected clusters.
352
+ *
353
+ * @param getIndexingTime - The getIndexingTime object.
354
+ * @param getIndexingTime.clusters - Subset of clusters, separated by comma.
355
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
356
+ */
357
+ getIndexingTime({ clusters }: GetIndexingTimeProps, requestOptions?: RequestOptions): Promise<IndexingTimeResponse>;
358
+ /**
359
+ * Retrieves the average latency for search requests for selected clusters.
360
+ *
361
+ * @param getLatency - The getLatency object.
362
+ * @param getLatency.clusters - Subset of clusters, separated by comma.
363
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
364
+ */
365
+ getLatency({ clusters }: GetLatencyProps, requestOptions?: RequestOptions): Promise<LatencyResponse>;
366
+ /**
367
+ * Retrieves metrics related to your Algolia infrastructure, aggregated over a selected time window. Access to this API is available as part of the [Premium or Elevate plans](https://www.algolia.com/pricing). You must authenticate requests with the `x-algolia-application-id` and `x-algolia-api-key` headers (using the Monitoring API key).
368
+ *
369
+ * @param getMetrics - The getMetrics object.
370
+ * @param getMetrics.metric - Metric to report. For more information about the individual metrics, see the description of the API response. To include all metrics, use `*`.
371
+ * @param getMetrics.period - Period over which to aggregate the metrics: - `minute`. Aggregate the last minute. 1 data point per 10 seconds. - `hour`. Aggregate the last hour. 1 data point per minute. - `day`. Aggregate the last day. 1 data point per 10 minutes. - `week`. Aggregate the last week. 1 data point per hour. - `month`. Aggregate the last month. 1 data point per day.
372
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
373
+ */
374
+ getMetrics({ metric, period }: GetMetricsProps, requestOptions?: RequestOptions): Promise<InfrastructureResponse>;
375
+ /**
376
+ * Test whether clusters are reachable or not.
377
+ *
378
+ * @param getReachability - The getReachability object.
379
+ * @param getReachability.clusters - Subset of clusters, separated by comma.
380
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
381
+ */
382
+ getReachability({ clusters }: GetReachabilityProps, requestOptions?: RequestOptions): Promise<Record<string, Record<string, boolean>>>;
383
+ /**
384
+ * Retrieves the servers that belong to clusters. The response depends on whether you authenticate your API request: - With authentication, the response lists the servers assigned to your Algolia application\'s cluster. - Without authentication, the response lists the servers for all Algolia clusters.
385
+ *
386
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
387
+ */
388
+ getServers(requestOptions?: RequestOptions): Promise<InventoryResponse>;
389
+ /**
390
+ * Retrieves the status of all Algolia clusters and instances.
391
+ *
392
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
393
+ */
394
+ getStatus(requestOptions?: RequestOptions): Promise<StatusResponse>;
395
+ };
396
+
397
+ type BadRequest = {
398
+ reason?: string;
399
+ };
400
+
401
+ /**
402
+ * Error.
403
+ */
404
+ type ErrorBase = Record<string, any> & {
405
+ message?: string;
406
+ };
407
+
408
+ type Forbidden = {
409
+ reason?: string;
410
+ };
411
+
412
+ type Unauthorized = {
413
+ reason?: string;
414
+ };
415
+
416
+ type MonitoringClient = ReturnType<typeof createMonitoringClient>;
417
+
418
+ declare function monitoringClient(appId: string, apiKey: string, options?: ClientOptions): MonitoringClient;
419
+
420
+ export { type BadRequest, type CustomDeleteProps, type CustomGetProps, type CustomPostProps, type CustomPutProps, type ErrorBase, type Forbidden, type GetClusterIncidentsProps, type GetClusterStatusProps, type GetIndexingTimeProps, type GetLatencyProps, type GetMetricsProps, type GetReachabilityProps, type Incident, type IncidentEntry, type IncidentsResponse, type IndexingMetric, type IndexingTimeResponse, type InfrastructureResponse, type InventoryResponse, type LatencyMetric, type LatencyResponse, type Metric, type Metrics, type MonitoringClient, type Period, type ProbesMetric, type Region, type Server, type ServerStatus, type Status, type StatusResponse, type TimeEntry, type Type, type Unauthorized, apiClientVersion, monitoringClient };
package/dist/node.d.cts CHANGED
@@ -256,7 +256,7 @@ type StatusResponse = {
256
256
  status?: Record<string, Status>;
257
257
  };
258
258
 
259
- declare const apiClientVersion = "1.3.1";
259
+ declare const apiClientVersion = "1.4.0";
260
260
  declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
261
261
  transporter: _algolia_client_common.Transporter;
262
262
  /**
package/dist/node.d.ts CHANGED
@@ -256,7 +256,7 @@ type StatusResponse = {
256
256
  status?: Record<string, Status>;
257
257
  };
258
258
 
259
- declare const apiClientVersion = "1.3.1";
259
+ declare const apiClientVersion = "1.4.0";
260
260
  declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
261
261
  transporter: _algolia_client_common.Transporter;
262
262
  /**
@@ -25,7 +25,7 @@ __export(monitoringClient_exports, {
25
25
  });
26
26
  module.exports = __toCommonJS(monitoringClient_exports);
27
27
  var import_client_common = require("@algolia/client-common");
28
- var apiClientVersion = "1.3.1";
28
+ var apiClientVersion = "1.4.0";
29
29
  function getDefaultHosts() {
30
30
  return [{ url: "status.algolia.com", accept: "readWrite", protocol: "https" }];
31
31
  }
@@ -37,25 +37,26 @@ function createMonitoringClient({
37
37
  ...options
38
38
  }) {
39
39
  const auth = (0, import_client_common.createAuth)(appIdOption, apiKeyOption, authMode);
40
- return {
41
- transporter: (0, import_client_common.createTransporter)({
42
- hosts: getDefaultHosts(),
43
- ...options,
44
- algoliaAgent: (0, import_client_common.getAlgoliaAgent)({
45
- algoliaAgents,
46
- client: "Monitoring",
47
- version: apiClientVersion
48
- }),
49
- baseHeaders: {
50
- "content-type": "text/plain",
51
- ...auth.headers(),
52
- ...options.baseHeaders
53
- },
54
- baseQueryParameters: {
55
- ...auth.queryParameters(),
56
- ...options.baseQueryParameters
57
- }
40
+ const transporter = (0, import_client_common.createTransporter)({
41
+ hosts: getDefaultHosts(),
42
+ ...options,
43
+ algoliaAgent: (0, import_client_common.getAlgoliaAgent)({
44
+ algoliaAgents,
45
+ client: "Monitoring",
46
+ version: apiClientVersion
58
47
  }),
48
+ baseHeaders: {
49
+ "content-type": "text/plain",
50
+ ...auth.headers(),
51
+ ...options.baseHeaders
52
+ },
53
+ baseQueryParameters: {
54
+ ...auth.queryParameters(),
55
+ ...options.baseQueryParameters
56
+ }
57
+ });
58
+ return {
59
+ transporter,
59
60
  /**
60
61
  * The `appId` currently in use.
61
62
  */
@@ -64,15 +65,13 @@ function createMonitoringClient({
64
65
  * Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
65
66
  */
66
67
  clearCache() {
67
- return Promise.all([this.transporter.requestsCache.clear(), this.transporter.responsesCache.clear()]).then(
68
- () => void 0
69
- );
68
+ return Promise.all([transporter.requestsCache.clear(), transporter.responsesCache.clear()]).then(() => void 0);
70
69
  },
71
70
  /**
72
71
  * Get the value of the `algoliaAgent`, used by our libraries internally and telemetry system.
73
72
  */
74
73
  get _ua() {
75
- return this.transporter.algoliaAgent.value;
74
+ return transporter.algoliaAgent.value;
76
75
  },
77
76
  /**
78
77
  * Adds a `segment` to the `x-algolia-agent` sent with every requests.
@@ -81,7 +80,7 @@ function createMonitoringClient({
81
80
  * @param version - The version of the agent.
82
81
  */
83
82
  addAlgoliaAgent(segment, version) {
84
- this.transporter.algoliaAgent.add({ segment, version });
83
+ transporter.algoliaAgent.add({ segment, version });
85
84
  },
86
85
  /**
87
86
  * Helper method to switch the API key used to authenticate the requests.
@@ -91,9 +90,9 @@ function createMonitoringClient({
91
90
  */
92
91
  setClientApiKey({ apiKey }) {
93
92
  if (!authMode || authMode === "WithinHeaders") {
94
- this.transporter.baseHeaders["x-algolia-api-key"] = apiKey;
93
+ transporter.baseHeaders["x-algolia-api-key"] = apiKey;
95
94
  } else {
96
- this.transporter.baseQueryParameters["x-algolia-api-key"] = apiKey;
95
+ transporter.baseQueryParameters["x-algolia-api-key"] = apiKey;
97
96
  }
98
97
  },
99
98
  /**
@@ -117,7 +116,7 @@ function createMonitoringClient({
117
116
  queryParameters,
118
117
  headers
119
118
  };
120
- return this.transporter.request(request, requestOptions);
119
+ return transporter.request(request, requestOptions);
121
120
  },
122
121
  /**
123
122
  * This method allow you to send requests to the Algolia REST API.
@@ -140,7 +139,7 @@ function createMonitoringClient({
140
139
  queryParameters,
141
140
  headers
142
141
  };
143
- return this.transporter.request(request, requestOptions);
142
+ return transporter.request(request, requestOptions);
144
143
  },
145
144
  /**
146
145
  * This method allow you to send requests to the Algolia REST API.
@@ -165,7 +164,7 @@ function createMonitoringClient({
165
164
  headers,
166
165
  data: body ? body : {}
167
166
  };
168
- return this.transporter.request(request, requestOptions);
167
+ return transporter.request(request, requestOptions);
169
168
  },
170
169
  /**
171
170
  * This method allow you to send requests to the Algolia REST API.
@@ -190,7 +189,7 @@ function createMonitoringClient({
190
189
  headers,
191
190
  data: body ? body : {}
192
191
  };
193
- return this.transporter.request(request, requestOptions);
192
+ return transporter.request(request, requestOptions);
194
193
  },
195
194
  /**
196
195
  * Retrieves known incidents for the selected clusters.
@@ -212,7 +211,7 @@ function createMonitoringClient({
212
211
  queryParameters,
213
212
  headers
214
213
  };
215
- return this.transporter.request(request, requestOptions);
214
+ return transporter.request(request, requestOptions);
216
215
  },
217
216
  /**
218
217
  * Retrieves the status of selected clusters.
@@ -234,7 +233,7 @@ function createMonitoringClient({
234
233
  queryParameters,
235
234
  headers
236
235
  };
237
- return this.transporter.request(request, requestOptions);
236
+ return transporter.request(request, requestOptions);
238
237
  },
239
238
  /**
240
239
  * Retrieves known incidents for all clusters.
@@ -251,7 +250,7 @@ function createMonitoringClient({
251
250
  queryParameters,
252
251
  headers
253
252
  };
254
- return this.transporter.request(request, requestOptions);
253
+ return transporter.request(request, requestOptions);
255
254
  },
256
255
  /**
257
256
  * Retrieves average times for indexing operations for selected clusters.
@@ -273,7 +272,7 @@ function createMonitoringClient({
273
272
  queryParameters,
274
273
  headers
275
274
  };
276
- return this.transporter.request(request, requestOptions);
275
+ return transporter.request(request, requestOptions);
277
276
  },
278
277
  /**
279
278
  * Retrieves the average latency for search requests for selected clusters.
@@ -295,7 +294,7 @@ function createMonitoringClient({
295
294
  queryParameters,
296
295
  headers
297
296
  };
298
- return this.transporter.request(request, requestOptions);
297
+ return transporter.request(request, requestOptions);
299
298
  },
300
299
  /**
301
300
  * Retrieves metrics related to your Algolia infrastructure, aggregated over a selected time window. Access to this API is available as part of the [Premium or Elevate plans](https://www.algolia.com/pricing). You must authenticate requests with the `x-algolia-application-id` and `x-algolia-api-key` headers (using the Monitoring API key).
@@ -321,7 +320,7 @@ function createMonitoringClient({
321
320
  queryParameters,
322
321
  headers
323
322
  };
324
- return this.transporter.request(request, requestOptions);
323
+ return transporter.request(request, requestOptions);
325
324
  },
326
325
  /**
327
326
  * Test whether clusters are reachable or not.
@@ -343,7 +342,7 @@ function createMonitoringClient({
343
342
  queryParameters,
344
343
  headers
345
344
  };
346
- return this.transporter.request(request, requestOptions);
345
+ return transporter.request(request, requestOptions);
347
346
  },
348
347
  /**
349
348
  * Retrieves the servers that belong to clusters. The response depends on whether you authenticate your API request: - With authentication, the response lists the servers assigned to your Algolia application\'s cluster. - Without authentication, the response lists the servers for all Algolia clusters.
@@ -360,7 +359,7 @@ function createMonitoringClient({
360
359
  queryParameters,
361
360
  headers
362
361
  };
363
- return this.transporter.request(request, requestOptions);
362
+ return transporter.request(request, requestOptions);
364
363
  },
365
364
  /**
366
365
  * Retrieves the status of all Algolia clusters and instances.
@@ -377,7 +376,7 @@ function createMonitoringClient({
377
376
  queryParameters,
378
377
  headers
379
378
  };
380
- return this.transporter.request(request, requestOptions);
379
+ return transporter.request(request, requestOptions);
381
380
  }
382
381
  };
383
382
  }