@algolia/monitoring 1.7.0 → 1.8.1
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.
- package/README.md +5 -7
- package/dist/browser.d.ts +172 -156
- package/dist/builds/browser.js +10 -23
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +2 -2
- package/dist/builds/fetch.js +7 -20
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +7 -20
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +8 -21
- package/dist/builds/node.js.map +1 -1
- package/dist/fetch.d.ts +171 -154
- package/dist/node.d.cts +171 -154
- package/dist/node.d.ts +171 -154
- package/dist/src/monitoringClient.cjs +6 -19
- package/dist/src/monitoringClient.cjs.map +1 -1
- package/dist/src/monitoringClient.js +6 -19
- package/dist/src/monitoringClient.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +1 -2
- package/model/clientMethodProps.ts +11 -11
- package/model/incidentsResponse.ts +1 -1
- package/model/index.ts +1 -1
- package/model/indexingMetric.ts +1 -1
- package/model/inventoryResponse.ts +1 -1
- package/model/latencyMetric.ts +1 -1
- package/model/metric.ts +1 -1
- package/model/metrics.ts +5 -5
- package/model/period.ts +1 -1
- package/model/status.ts +1 -1
- package/model/statusResponse.ts +1 -1
- package/package.json +6 -6
package/dist/fetch.d.ts
CHANGED
|
@@ -1,133 +1,10 @@
|
|
|
1
1
|
import * as _algolia_client_common from '@algolia/client-common';
|
|
2
2
|
import { CreateClientOptions, RequestOptions, ClientOptions } from '@algolia/client-common';
|
|
3
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
4
|
/**
|
|
128
5
|
* Status of the cluster.
|
|
129
6
|
*/
|
|
130
|
-
type Status = '
|
|
7
|
+
type Status = 'operational' | 'degraded_performance' | 'partial_outage' | 'major_outage';
|
|
131
8
|
|
|
132
9
|
/**
|
|
133
10
|
* Incident details.
|
|
@@ -149,7 +26,9 @@ type IncidentEntry = {
|
|
|
149
26
|
};
|
|
150
27
|
|
|
151
28
|
type IncidentsResponse = {
|
|
152
|
-
incidents?:
|
|
29
|
+
incidents?: {
|
|
30
|
+
[key: string]: Array<IncidentEntry>;
|
|
31
|
+
};
|
|
153
32
|
};
|
|
154
33
|
|
|
155
34
|
type TimeEntry = {
|
|
@@ -164,7 +43,9 @@ type TimeEntry = {
|
|
|
164
43
|
};
|
|
165
44
|
|
|
166
45
|
type IndexingMetric = {
|
|
167
|
-
indexing?:
|
|
46
|
+
indexing?: {
|
|
47
|
+
[key: string]: Array<TimeEntry>;
|
|
48
|
+
};
|
|
168
49
|
};
|
|
169
50
|
|
|
170
51
|
type IndexingTimeResponse = {
|
|
@@ -186,23 +67,33 @@ type Metrics = {
|
|
|
186
67
|
/**
|
|
187
68
|
* CPU idleness in %.
|
|
188
69
|
*/
|
|
189
|
-
cpu_usage?:
|
|
70
|
+
cpu_usage?: {
|
|
71
|
+
[key: string]: Array<ProbesMetric>;
|
|
72
|
+
};
|
|
190
73
|
/**
|
|
191
74
|
* RAM used for indexing in MB.
|
|
192
75
|
*/
|
|
193
|
-
ram_indexing_usage?:
|
|
76
|
+
ram_indexing_usage?: {
|
|
77
|
+
[key: string]: Array<ProbesMetric>;
|
|
78
|
+
};
|
|
194
79
|
/**
|
|
195
80
|
* RAM used for search in MB.
|
|
196
81
|
*/
|
|
197
|
-
ram_search_usage?:
|
|
82
|
+
ram_search_usage?: {
|
|
83
|
+
[key: string]: Array<ProbesMetric>;
|
|
84
|
+
};
|
|
198
85
|
/**
|
|
199
86
|
* Solid-state disk (SSD) usage expressed as % of RAM. 0% means no SSD usage. A value of 50% indicates 32 GB SSD usage for a machine with 64 RAM.
|
|
200
87
|
*/
|
|
201
|
-
ssd_usage?:
|
|
88
|
+
ssd_usage?: {
|
|
89
|
+
[key: string]: Array<ProbesMetric>;
|
|
90
|
+
};
|
|
202
91
|
/**
|
|
203
92
|
* Average build time of the indices in seconds.
|
|
204
93
|
*/
|
|
205
|
-
avg_build_time?:
|
|
94
|
+
avg_build_time?: {
|
|
95
|
+
[key: string]: Array<ProbesMetric>;
|
|
96
|
+
};
|
|
206
97
|
};
|
|
207
98
|
|
|
208
99
|
type InfrastructureResponse = {
|
|
@@ -241,11 +132,13 @@ type Server = {
|
|
|
241
132
|
};
|
|
242
133
|
|
|
243
134
|
type InventoryResponse = {
|
|
244
|
-
inventory?: Server
|
|
135
|
+
inventory?: Array<Server>;
|
|
245
136
|
};
|
|
246
137
|
|
|
247
138
|
type LatencyMetric = {
|
|
248
|
-
latency?:
|
|
139
|
+
latency?: {
|
|
140
|
+
[key: string]: Array<TimeEntry>;
|
|
141
|
+
};
|
|
249
142
|
};
|
|
250
143
|
|
|
251
144
|
type LatencyResponse = {
|
|
@@ -253,10 +146,143 @@ type LatencyResponse = {
|
|
|
253
146
|
};
|
|
254
147
|
|
|
255
148
|
type StatusResponse = {
|
|
256
|
-
status?:
|
|
149
|
+
status?: {
|
|
150
|
+
[key: string]: Status;
|
|
151
|
+
};
|
|
257
152
|
};
|
|
258
153
|
|
|
259
|
-
|
|
154
|
+
type Metric = 'avg_build_time' | 'ssd_usage' | 'ram_search_usage' | 'ram_indexing_usage' | 'cpu_usage' | '*';
|
|
155
|
+
|
|
156
|
+
type Period = 'minute' | 'hour' | 'day' | 'week' | 'month';
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Properties for the `customDelete` method.
|
|
160
|
+
*/
|
|
161
|
+
type CustomDeleteProps = {
|
|
162
|
+
/**
|
|
163
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
164
|
+
*/
|
|
165
|
+
path: string;
|
|
166
|
+
/**
|
|
167
|
+
* Query parameters to apply to the current query.
|
|
168
|
+
*/
|
|
169
|
+
parameters?: {
|
|
170
|
+
[key: string]: any;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Properties for the `customGet` method.
|
|
175
|
+
*/
|
|
176
|
+
type CustomGetProps = {
|
|
177
|
+
/**
|
|
178
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
179
|
+
*/
|
|
180
|
+
path: string;
|
|
181
|
+
/**
|
|
182
|
+
* Query parameters to apply to the current query.
|
|
183
|
+
*/
|
|
184
|
+
parameters?: {
|
|
185
|
+
[key: string]: any;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Properties for the `customPost` method.
|
|
190
|
+
*/
|
|
191
|
+
type CustomPostProps = {
|
|
192
|
+
/**
|
|
193
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
194
|
+
*/
|
|
195
|
+
path: string;
|
|
196
|
+
/**
|
|
197
|
+
* Query parameters to apply to the current query.
|
|
198
|
+
*/
|
|
199
|
+
parameters?: {
|
|
200
|
+
[key: string]: any;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Parameters to send with the custom request.
|
|
204
|
+
*/
|
|
205
|
+
body?: Record<string, unknown>;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* Properties for the `customPut` method.
|
|
209
|
+
*/
|
|
210
|
+
type CustomPutProps = {
|
|
211
|
+
/**
|
|
212
|
+
* Path of the endpoint, anything after \"/1\" must be specified.
|
|
213
|
+
*/
|
|
214
|
+
path: string;
|
|
215
|
+
/**
|
|
216
|
+
* Query parameters to apply to the current query.
|
|
217
|
+
*/
|
|
218
|
+
parameters?: {
|
|
219
|
+
[key: string]: any;
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* Parameters to send with the custom request.
|
|
223
|
+
*/
|
|
224
|
+
body?: Record<string, unknown>;
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* Properties for the `getClusterIncidents` method.
|
|
228
|
+
*/
|
|
229
|
+
type GetClusterIncidentsProps = {
|
|
230
|
+
/**
|
|
231
|
+
* Subset of clusters, separated by commas.
|
|
232
|
+
*/
|
|
233
|
+
clusters: string;
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* Properties for the `getClusterStatus` method.
|
|
237
|
+
*/
|
|
238
|
+
type GetClusterStatusProps = {
|
|
239
|
+
/**
|
|
240
|
+
* Subset of clusters, separated by commas.
|
|
241
|
+
*/
|
|
242
|
+
clusters: string;
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* Properties for the `getIndexingTime` method.
|
|
246
|
+
*/
|
|
247
|
+
type GetIndexingTimeProps = {
|
|
248
|
+
/**
|
|
249
|
+
* Subset of clusters, separated by commas.
|
|
250
|
+
*/
|
|
251
|
+
clusters: string;
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Properties for the `getLatency` method.
|
|
255
|
+
*/
|
|
256
|
+
type GetLatencyProps = {
|
|
257
|
+
/**
|
|
258
|
+
* Subset of clusters, separated by commas.
|
|
259
|
+
*/
|
|
260
|
+
clusters: string;
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* Properties for the `getMetrics` method.
|
|
264
|
+
*/
|
|
265
|
+
type GetMetricsProps = {
|
|
266
|
+
/**
|
|
267
|
+
* Metric to report. For more information about the individual metrics, see the description of the API response. To include all metrics, use `*`.
|
|
268
|
+
*/
|
|
269
|
+
metric: Metric;
|
|
270
|
+
/**
|
|
271
|
+
* 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.
|
|
272
|
+
*/
|
|
273
|
+
period: Period;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* Properties for the `getReachability` method.
|
|
277
|
+
*/
|
|
278
|
+
type GetReachabilityProps = {
|
|
279
|
+
/**
|
|
280
|
+
* Subset of clusters, separated by commas.
|
|
281
|
+
*/
|
|
282
|
+
clusters: string;
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
declare const apiClientVersion = "1.8.1";
|
|
260
286
|
declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
261
287
|
transporter: _algolia_client_common.Transporter;
|
|
262
288
|
/**
|
|
@@ -289,7 +315,6 @@ declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOpti
|
|
|
289
315
|
}): void;
|
|
290
316
|
/**
|
|
291
317
|
* This method allow you to send requests to the Algolia REST API.
|
|
292
|
-
*
|
|
293
318
|
* @param customDelete - The customDelete object.
|
|
294
319
|
* @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
295
320
|
* @param customDelete.parameters - Query parameters to apply to the current query.
|
|
@@ -298,7 +323,6 @@ declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOpti
|
|
|
298
323
|
customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
|
|
299
324
|
/**
|
|
300
325
|
* This method allow you to send requests to the Algolia REST API.
|
|
301
|
-
*
|
|
302
326
|
* @param customGet - The customGet object.
|
|
303
327
|
* @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
304
328
|
* @param customGet.parameters - Query parameters to apply to the current query.
|
|
@@ -307,7 +331,6 @@ declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOpti
|
|
|
307
331
|
customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
|
|
308
332
|
/**
|
|
309
333
|
* This method allow you to send requests to the Algolia REST API.
|
|
310
|
-
*
|
|
311
334
|
* @param customPost - The customPost object.
|
|
312
335
|
* @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
313
336
|
* @param customPost.parameters - Query parameters to apply to the current query.
|
|
@@ -317,7 +340,6 @@ declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOpti
|
|
|
317
340
|
customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
|
|
318
341
|
/**
|
|
319
342
|
* This method allow you to send requests to the Algolia REST API.
|
|
320
|
-
*
|
|
321
343
|
* @param customPut - The customPut object.
|
|
322
344
|
* @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
|
|
323
345
|
* @param customPut.parameters - Query parameters to apply to the current query.
|
|
@@ -327,45 +349,39 @@ declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOpti
|
|
|
327
349
|
customPut({ path, parameters, body }: CustomPutProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
|
|
328
350
|
/**
|
|
329
351
|
* Retrieves known incidents for the selected clusters.
|
|
330
|
-
*
|
|
331
352
|
* @param getClusterIncidents - The getClusterIncidents object.
|
|
332
|
-
* @param getClusterIncidents.clusters - Subset of clusters, separated by
|
|
353
|
+
* @param getClusterIncidents.clusters - Subset of clusters, separated by commas.
|
|
333
354
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
334
355
|
*/
|
|
335
356
|
getClusterIncidents({ clusters }: GetClusterIncidentsProps, requestOptions?: RequestOptions): Promise<IncidentsResponse>;
|
|
336
357
|
/**
|
|
337
358
|
* Retrieves the status of selected clusters.
|
|
338
|
-
*
|
|
339
359
|
* @param getClusterStatus - The getClusterStatus object.
|
|
340
|
-
* @param getClusterStatus.clusters - Subset of clusters, separated by
|
|
360
|
+
* @param getClusterStatus.clusters - Subset of clusters, separated by commas.
|
|
341
361
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
342
362
|
*/
|
|
343
363
|
getClusterStatus({ clusters }: GetClusterStatusProps, requestOptions?: RequestOptions): Promise<StatusResponse>;
|
|
344
364
|
/**
|
|
345
365
|
* Retrieves known incidents for all clusters.
|
|
346
|
-
*
|
|
347
366
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
348
367
|
*/
|
|
349
368
|
getIncidents(requestOptions?: RequestOptions): Promise<IncidentsResponse>;
|
|
350
369
|
/**
|
|
351
370
|
* Retrieves average times for indexing operations for selected clusters.
|
|
352
|
-
*
|
|
353
371
|
* @param getIndexingTime - The getIndexingTime object.
|
|
354
|
-
* @param getIndexingTime.clusters - Subset of clusters, separated by
|
|
372
|
+
* @param getIndexingTime.clusters - Subset of clusters, separated by commas.
|
|
355
373
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
356
374
|
*/
|
|
357
375
|
getIndexingTime({ clusters }: GetIndexingTimeProps, requestOptions?: RequestOptions): Promise<IndexingTimeResponse>;
|
|
358
376
|
/**
|
|
359
377
|
* Retrieves the average latency for search requests for selected clusters.
|
|
360
|
-
*
|
|
361
378
|
* @param getLatency - The getLatency object.
|
|
362
|
-
* @param getLatency.clusters - Subset of clusters, separated by
|
|
379
|
+
* @param getLatency.clusters - Subset of clusters, separated by commas.
|
|
363
380
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
364
381
|
*/
|
|
365
382
|
getLatency({ clusters }: GetLatencyProps, requestOptions?: RequestOptions): Promise<LatencyResponse>;
|
|
366
383
|
/**
|
|
367
384
|
* 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
385
|
* @param getMetrics - The getMetrics object.
|
|
370
386
|
* @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
387
|
* @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.
|
|
@@ -374,21 +390,22 @@ declare function createMonitoringClient({ appId: appIdOption, apiKey: apiKeyOpti
|
|
|
374
390
|
getMetrics({ metric, period }: GetMetricsProps, requestOptions?: RequestOptions): Promise<InfrastructureResponse>;
|
|
375
391
|
/**
|
|
376
392
|
* Test whether clusters are reachable or not.
|
|
377
|
-
*
|
|
378
393
|
* @param getReachability - The getReachability object.
|
|
379
|
-
* @param getReachability.clusters - Subset of clusters, separated by
|
|
394
|
+
* @param getReachability.clusters - Subset of clusters, separated by commas.
|
|
380
395
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
381
396
|
*/
|
|
382
|
-
getReachability({ clusters }: GetReachabilityProps, requestOptions?: RequestOptions): Promise<
|
|
397
|
+
getReachability({ clusters }: GetReachabilityProps, requestOptions?: RequestOptions): Promise<{
|
|
398
|
+
[key: string]: {
|
|
399
|
+
[key: string]: boolean;
|
|
400
|
+
};
|
|
401
|
+
}>;
|
|
383
402
|
/**
|
|
384
403
|
* 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
404
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
387
405
|
*/
|
|
388
406
|
getServers(requestOptions?: RequestOptions): Promise<InventoryResponse>;
|
|
389
407
|
/**
|
|
390
408
|
* Retrieves the status of all Algolia clusters and instances.
|
|
391
|
-
*
|
|
392
409
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
393
410
|
*/
|
|
394
411
|
getStatus(requestOptions?: RequestOptions): Promise<StatusResponse>;
|