@algolia/monitoring 1.2.4 → 5.2.4-beta.2

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.
Files changed (81) hide show
  1. package/dist/browser.d.ts +305 -0
  2. package/dist/builds/browser.js +388 -0
  3. package/dist/builds/browser.js.map +1 -0
  4. package/dist/builds/browser.min.js +2 -0
  5. package/dist/builds/browser.min.js.map +1 -0
  6. package/dist/builds/browser.umd.js +12 -0
  7. package/dist/builds/node.cjs +406 -0
  8. package/dist/builds/node.cjs.map +1 -0
  9. package/dist/builds/node.js +386 -0
  10. package/dist/builds/node.js.map +1 -0
  11. package/dist/node.d.cts +305 -0
  12. package/dist/node.d.ts +305 -0
  13. package/dist/src/monitoringClient.cjs +375 -0
  14. package/dist/src/monitoringClient.cjs.map +1 -0
  15. package/dist/src/monitoringClient.js +349 -0
  16. package/dist/src/monitoringClient.js.map +1 -0
  17. package/index.d.ts +1 -1
  18. package/index.js +1 -1
  19. package/package.json +22 -22
  20. package/dist/builds/browser.d.ts +0 -28
  21. package/dist/builds/browser.d.ts.map +0 -1
  22. package/dist/builds/node.d.ts +0 -28
  23. package/dist/builds/node.d.ts.map +0 -1
  24. package/dist/model/badRequest.d.ts +0 -4
  25. package/dist/model/badRequest.d.ts.map +0 -1
  26. package/dist/model/clientMethodProps.d.ts +0 -121
  27. package/dist/model/clientMethodProps.d.ts.map +0 -1
  28. package/dist/model/errorBase.d.ts +0 -7
  29. package/dist/model/errorBase.d.ts.map +0 -1
  30. package/dist/model/forbidden.d.ts +0 -4
  31. package/dist/model/forbidden.d.ts.map +0 -1
  32. package/dist/model/incident.d.ts +0 -12
  33. package/dist/model/incident.d.ts.map +0 -1
  34. package/dist/model/incidentEntry.d.ts +0 -9
  35. package/dist/model/incidentEntry.d.ts.map +0 -1
  36. package/dist/model/incidentsResponse.d.ts +0 -5
  37. package/dist/model/incidentsResponse.d.ts.map +0 -1
  38. package/dist/model/index.d.ts +0 -26
  39. package/dist/model/index.d.ts.map +0 -1
  40. package/dist/model/indexingMetric.d.ts +0 -5
  41. package/dist/model/indexingMetric.d.ts.map +0 -1
  42. package/dist/model/indexingTimeResponse.d.ts +0 -5
  43. package/dist/model/indexingTimeResponse.d.ts.map +0 -1
  44. package/dist/model/infrastructureResponse.d.ts +0 -5
  45. package/dist/model/infrastructureResponse.d.ts.map +0 -1
  46. package/dist/model/inventoryResponse.d.ts +0 -5
  47. package/dist/model/inventoryResponse.d.ts.map +0 -1
  48. package/dist/model/latencyMetric.d.ts +0 -5
  49. package/dist/model/latencyMetric.d.ts.map +0 -1
  50. package/dist/model/latencyResponse.d.ts +0 -5
  51. package/dist/model/latencyResponse.d.ts.map +0 -1
  52. package/dist/model/metric.d.ts +0 -2
  53. package/dist/model/metric.d.ts.map +0 -1
  54. package/dist/model/metrics.d.ts +0 -24
  55. package/dist/model/metrics.d.ts.map +0 -1
  56. package/dist/model/period.d.ts +0 -2
  57. package/dist/model/period.d.ts.map +0 -1
  58. package/dist/model/probesMetric.d.ts +0 -11
  59. package/dist/model/probesMetric.d.ts.map +0 -1
  60. package/dist/model/region.d.ts +0 -5
  61. package/dist/model/region.d.ts.map +0 -1
  62. package/dist/model/server.d.ts +0 -25
  63. package/dist/model/server.d.ts.map +0 -1
  64. package/dist/model/serverStatus.d.ts +0 -2
  65. package/dist/model/serverStatus.d.ts.map +0 -1
  66. package/dist/model/status.d.ts +0 -5
  67. package/dist/model/status.d.ts.map +0 -1
  68. package/dist/model/statusResponse.d.ts +0 -5
  69. package/dist/model/statusResponse.d.ts.map +0 -1
  70. package/dist/model/timeEntry.d.ts +0 -11
  71. package/dist/model/timeEntry.d.ts.map +0 -1
  72. package/dist/model/type.d.ts +0 -2
  73. package/dist/model/type.d.ts.map +0 -1
  74. package/dist/model/unauthorized.d.ts +0 -4
  75. package/dist/model/unauthorized.d.ts.map +0 -1
  76. package/dist/monitoring.cjs +0 -376
  77. package/dist/monitoring.esm.browser.js +0 -1050
  78. package/dist/monitoring.esm.node.js +0 -373
  79. package/dist/monitoring.umd.js +0 -2
  80. package/dist/src/monitoringClient.d.ts +0 -137
  81. package/dist/src/monitoringClient.d.ts.map +0 -1
@@ -0,0 +1,305 @@
1
+ import * as _algolia_client_common from '@algolia/client-common';
2
+ import { ClientOptions } from '@algolia/client-common';
3
+
4
+ type BadRequest = {
5
+ reason?: string;
6
+ };
7
+
8
+ /**
9
+ * Error.
10
+ */
11
+ type ErrorBase = Record<string, any> & {
12
+ message?: string;
13
+ };
14
+
15
+ type Forbidden = {
16
+ reason?: string;
17
+ };
18
+
19
+ /**
20
+ * Status of the cluster.
21
+ */
22
+ type Status = 'degraded_performance' | 'major_outage' | 'operational' | 'partial_outage';
23
+
24
+ /**
25
+ * Incident details.
26
+ */
27
+ type Incident = {
28
+ /**
29
+ * Description of the incident.
30
+ */
31
+ title?: string;
32
+ status?: Status;
33
+ };
34
+
35
+ type IncidentEntry = {
36
+ /**
37
+ * Timestamp, measured in milliseconds since the Unix epoch.
38
+ */
39
+ t?: number;
40
+ v?: Incident;
41
+ };
42
+
43
+ type IncidentsResponse = {
44
+ incidents?: Record<string, IncidentEntry[]>;
45
+ };
46
+
47
+ type TimeEntry = {
48
+ /**
49
+ * Timestamp, measured in milliseconds since the Unix epoch.
50
+ */
51
+ t?: number;
52
+ /**
53
+ * Time in ms.
54
+ */
55
+ v?: number;
56
+ };
57
+
58
+ type IndexingMetric = {
59
+ indexing?: Record<string, TimeEntry[]>;
60
+ };
61
+
62
+ type IndexingTimeResponse = {
63
+ metrics?: IndexingMetric;
64
+ };
65
+
66
+ type ProbesMetric = {
67
+ /**
68
+ * Timestamp, measured in milliseconds since the Unix epoch.
69
+ */
70
+ t?: number;
71
+ /**
72
+ * Value of the metric.
73
+ */
74
+ v?: number;
75
+ };
76
+
77
+ type Metrics = {
78
+ /**
79
+ * CPU idleness in %.
80
+ */
81
+ cpu_usage?: Record<string, ProbesMetric[]>;
82
+ /**
83
+ * RAM used for indexing in MB.
84
+ */
85
+ ram_indexing_usage?: Record<string, ProbesMetric[]>;
86
+ /**
87
+ * RAM used for search in MB.
88
+ */
89
+ ram_search_usage?: Record<string, ProbesMetric[]>;
90
+ /**
91
+ * 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.
92
+ */
93
+ ssd_usage?: Record<string, ProbesMetric[]>;
94
+ /**
95
+ * Average build time of the indices in seconds.
96
+ */
97
+ avg_build_time?: Record<string, ProbesMetric[]>;
98
+ };
99
+
100
+ type InfrastructureResponse = {
101
+ metrics?: Metrics;
102
+ };
103
+
104
+ /**
105
+ * Region where the cluster is located.
106
+ */
107
+ type Region = 'au' | 'br' | 'ca' | 'de' | 'eu' | 'hk' | 'in' | 'jp' | 'sg' | 'uae' | 'uk' | 'usc' | 'use' | 'usw' | 'za';
108
+
109
+ type ServerStatus = 'PRODUCTION';
110
+
111
+ type Type = 'cluster';
112
+
113
+ type Server = {
114
+ /**
115
+ * Server name.
116
+ */
117
+ name?: string;
118
+ region?: Region;
119
+ /**
120
+ * Included to support legacy applications. Use `is_replica` instead.
121
+ */
122
+ is_slave?: boolean;
123
+ /**
124
+ * Whether this server is a replica of another server.
125
+ */
126
+ is_replica?: boolean;
127
+ /**
128
+ * Name of the cluster to which this server belongs.
129
+ */
130
+ cluster?: string;
131
+ status?: ServerStatus;
132
+ type?: Type;
133
+ };
134
+
135
+ type InventoryResponse = {
136
+ inventory?: Server[];
137
+ };
138
+
139
+ type LatencyMetric = {
140
+ latency?: Record<string, TimeEntry[]>;
141
+ };
142
+
143
+ type LatencyResponse = {
144
+ metrics?: LatencyMetric;
145
+ };
146
+
147
+ type Metric = '*' | 'avg_build_time' | 'cpu_usage' | 'ram_indexing_usage' | 'ram_search_usage' | 'ssd_usage';
148
+
149
+ type Period = 'day' | 'hour' | 'minute' | 'month' | 'week';
150
+
151
+ type StatusResponse = {
152
+ status?: Record<string, Status>;
153
+ };
154
+
155
+ type Unauthorized = {
156
+ reason?: string;
157
+ };
158
+
159
+ /**
160
+ * Properties for the `customDelete` method.
161
+ */
162
+ type CustomDeleteProps = {
163
+ /**
164
+ * Path of the endpoint, anything after \"/1\" must be specified.
165
+ */
166
+ path: string;
167
+ /**
168
+ * Query parameters to apply to the current query.
169
+ */
170
+ parameters?: Record<string, any>;
171
+ };
172
+ /**
173
+ * Properties for the `customGet` method.
174
+ */
175
+ type CustomGetProps = {
176
+ /**
177
+ * Path of the endpoint, anything after \"/1\" must be specified.
178
+ */
179
+ path: string;
180
+ /**
181
+ * Query parameters to apply to the current query.
182
+ */
183
+ parameters?: Record<string, any>;
184
+ };
185
+ /**
186
+ * Properties for the `customPost` method.
187
+ */
188
+ type CustomPostProps = {
189
+ /**
190
+ * Path of the endpoint, anything after \"/1\" must be specified.
191
+ */
192
+ path: string;
193
+ /**
194
+ * Query parameters to apply to the current query.
195
+ */
196
+ parameters?: Record<string, any>;
197
+ /**
198
+ * Parameters to send with the custom request.
199
+ */
200
+ body?: Record<string, unknown>;
201
+ };
202
+ /**
203
+ * Properties for the `customPut` method.
204
+ */
205
+ type CustomPutProps = {
206
+ /**
207
+ * Path of the endpoint, anything after \"/1\" must be specified.
208
+ */
209
+ path: string;
210
+ /**
211
+ * Query parameters to apply to the current query.
212
+ */
213
+ parameters?: Record<string, any>;
214
+ /**
215
+ * Parameters to send with the custom request.
216
+ */
217
+ body?: Record<string, unknown>;
218
+ };
219
+ /**
220
+ * Properties for the `getClusterIncidents` method.
221
+ */
222
+ type GetClusterIncidentsProps = {
223
+ /**
224
+ * Subset of clusters, separated by comma.
225
+ */
226
+ clusters: string;
227
+ };
228
+ /**
229
+ * Properties for the `getClusterStatus` method.
230
+ */
231
+ type GetClusterStatusProps = {
232
+ /**
233
+ * Subset of clusters, separated by comma.
234
+ */
235
+ clusters: string;
236
+ };
237
+ /**
238
+ * Properties for the `getIndexingTime` method.
239
+ */
240
+ type GetIndexingTimeProps = {
241
+ /**
242
+ * Subset of clusters, separated by comma.
243
+ */
244
+ clusters: string;
245
+ };
246
+ /**
247
+ * Properties for the `getLatency` method.
248
+ */
249
+ type GetLatencyProps = {
250
+ /**
251
+ * Subset of clusters, separated by comma.
252
+ */
253
+ clusters: string;
254
+ };
255
+ /**
256
+ * Properties for the `getMetrics` method.
257
+ */
258
+ type GetMetricsProps = {
259
+ /**
260
+ * Metric to report. For more information about the individual metrics, see the description of the API response. To include all metrics, use `*`.
261
+ */
262
+ metric: Metric;
263
+ /**
264
+ * 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.
265
+ */
266
+ period: Period;
267
+ };
268
+ /**
269
+ * Properties for the `getReachability` method.
270
+ */
271
+ type GetReachabilityProps = {
272
+ /**
273
+ * Subset of clusters, separated by comma.
274
+ */
275
+ clusters: string;
276
+ };
277
+
278
+ declare const apiClientVersion = "1.2.4";
279
+
280
+ /**
281
+ * The client type.
282
+ */
283
+ type MonitoringClient = ReturnType<typeof monitoringClient>;
284
+ declare function monitoringClient(appId: string, apiKey: string, options?: ClientOptions): {
285
+ transporter: _algolia_client_common.Transporter;
286
+ appId: string;
287
+ clearCache(): Promise<void>;
288
+ _ua: string;
289
+ addAlgoliaAgent(segment: string, version?: string): void;
290
+ customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, unknown>>;
291
+ customGet({ path, parameters }: CustomGetProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, unknown>>;
292
+ customPost({ path, parameters, body }: CustomPostProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, unknown>>;
293
+ customPut({ path, parameters, body }: CustomPutProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, unknown>>;
294
+ getClusterIncidents({ clusters }: GetClusterIncidentsProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<IncidentsResponse>;
295
+ getClusterStatus({ clusters }: GetClusterStatusProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<StatusResponse>;
296
+ getIncidents(requestOptions?: _algolia_client_common.RequestOptions): Promise<IncidentsResponse>;
297
+ getIndexingTime({ clusters }: GetIndexingTimeProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<IndexingTimeResponse>;
298
+ getLatency({ clusters }: GetLatencyProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<LatencyResponse>;
299
+ getMetrics({ metric, period }: GetMetricsProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<InfrastructureResponse>;
300
+ getReachability({ clusters }: GetReachabilityProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, Record<string, boolean>>>;
301
+ getServers(requestOptions?: _algolia_client_common.RequestOptions): Promise<InventoryResponse>;
302
+ getStatus(requestOptions?: _algolia_client_common.RequestOptions): Promise<StatusResponse>;
303
+ };
304
+
305
+ 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.ts ADDED
@@ -0,0 +1,305 @@
1
+ import * as _algolia_client_common from '@algolia/client-common';
2
+ import { ClientOptions } from '@algolia/client-common';
3
+
4
+ type BadRequest = {
5
+ reason?: string;
6
+ };
7
+
8
+ /**
9
+ * Error.
10
+ */
11
+ type ErrorBase = Record<string, any> & {
12
+ message?: string;
13
+ };
14
+
15
+ type Forbidden = {
16
+ reason?: string;
17
+ };
18
+
19
+ /**
20
+ * Status of the cluster.
21
+ */
22
+ type Status = 'degraded_performance' | 'major_outage' | 'operational' | 'partial_outage';
23
+
24
+ /**
25
+ * Incident details.
26
+ */
27
+ type Incident = {
28
+ /**
29
+ * Description of the incident.
30
+ */
31
+ title?: string;
32
+ status?: Status;
33
+ };
34
+
35
+ type IncidentEntry = {
36
+ /**
37
+ * Timestamp, measured in milliseconds since the Unix epoch.
38
+ */
39
+ t?: number;
40
+ v?: Incident;
41
+ };
42
+
43
+ type IncidentsResponse = {
44
+ incidents?: Record<string, IncidentEntry[]>;
45
+ };
46
+
47
+ type TimeEntry = {
48
+ /**
49
+ * Timestamp, measured in milliseconds since the Unix epoch.
50
+ */
51
+ t?: number;
52
+ /**
53
+ * Time in ms.
54
+ */
55
+ v?: number;
56
+ };
57
+
58
+ type IndexingMetric = {
59
+ indexing?: Record<string, TimeEntry[]>;
60
+ };
61
+
62
+ type IndexingTimeResponse = {
63
+ metrics?: IndexingMetric;
64
+ };
65
+
66
+ type ProbesMetric = {
67
+ /**
68
+ * Timestamp, measured in milliseconds since the Unix epoch.
69
+ */
70
+ t?: number;
71
+ /**
72
+ * Value of the metric.
73
+ */
74
+ v?: number;
75
+ };
76
+
77
+ type Metrics = {
78
+ /**
79
+ * CPU idleness in %.
80
+ */
81
+ cpu_usage?: Record<string, ProbesMetric[]>;
82
+ /**
83
+ * RAM used for indexing in MB.
84
+ */
85
+ ram_indexing_usage?: Record<string, ProbesMetric[]>;
86
+ /**
87
+ * RAM used for search in MB.
88
+ */
89
+ ram_search_usage?: Record<string, ProbesMetric[]>;
90
+ /**
91
+ * 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.
92
+ */
93
+ ssd_usage?: Record<string, ProbesMetric[]>;
94
+ /**
95
+ * Average build time of the indices in seconds.
96
+ */
97
+ avg_build_time?: Record<string, ProbesMetric[]>;
98
+ };
99
+
100
+ type InfrastructureResponse = {
101
+ metrics?: Metrics;
102
+ };
103
+
104
+ /**
105
+ * Region where the cluster is located.
106
+ */
107
+ type Region = 'au' | 'br' | 'ca' | 'de' | 'eu' | 'hk' | 'in' | 'jp' | 'sg' | 'uae' | 'uk' | 'usc' | 'use' | 'usw' | 'za';
108
+
109
+ type ServerStatus = 'PRODUCTION';
110
+
111
+ type Type = 'cluster';
112
+
113
+ type Server = {
114
+ /**
115
+ * Server name.
116
+ */
117
+ name?: string;
118
+ region?: Region;
119
+ /**
120
+ * Included to support legacy applications. Use `is_replica` instead.
121
+ */
122
+ is_slave?: boolean;
123
+ /**
124
+ * Whether this server is a replica of another server.
125
+ */
126
+ is_replica?: boolean;
127
+ /**
128
+ * Name of the cluster to which this server belongs.
129
+ */
130
+ cluster?: string;
131
+ status?: ServerStatus;
132
+ type?: Type;
133
+ };
134
+
135
+ type InventoryResponse = {
136
+ inventory?: Server[];
137
+ };
138
+
139
+ type LatencyMetric = {
140
+ latency?: Record<string, TimeEntry[]>;
141
+ };
142
+
143
+ type LatencyResponse = {
144
+ metrics?: LatencyMetric;
145
+ };
146
+
147
+ type Metric = '*' | 'avg_build_time' | 'cpu_usage' | 'ram_indexing_usage' | 'ram_search_usage' | 'ssd_usage';
148
+
149
+ type Period = 'day' | 'hour' | 'minute' | 'month' | 'week';
150
+
151
+ type StatusResponse = {
152
+ status?: Record<string, Status>;
153
+ };
154
+
155
+ type Unauthorized = {
156
+ reason?: string;
157
+ };
158
+
159
+ /**
160
+ * Properties for the `customDelete` method.
161
+ */
162
+ type CustomDeleteProps = {
163
+ /**
164
+ * Path of the endpoint, anything after \"/1\" must be specified.
165
+ */
166
+ path: string;
167
+ /**
168
+ * Query parameters to apply to the current query.
169
+ */
170
+ parameters?: Record<string, any>;
171
+ };
172
+ /**
173
+ * Properties for the `customGet` method.
174
+ */
175
+ type CustomGetProps = {
176
+ /**
177
+ * Path of the endpoint, anything after \"/1\" must be specified.
178
+ */
179
+ path: string;
180
+ /**
181
+ * Query parameters to apply to the current query.
182
+ */
183
+ parameters?: Record<string, any>;
184
+ };
185
+ /**
186
+ * Properties for the `customPost` method.
187
+ */
188
+ type CustomPostProps = {
189
+ /**
190
+ * Path of the endpoint, anything after \"/1\" must be specified.
191
+ */
192
+ path: string;
193
+ /**
194
+ * Query parameters to apply to the current query.
195
+ */
196
+ parameters?: Record<string, any>;
197
+ /**
198
+ * Parameters to send with the custom request.
199
+ */
200
+ body?: Record<string, unknown>;
201
+ };
202
+ /**
203
+ * Properties for the `customPut` method.
204
+ */
205
+ type CustomPutProps = {
206
+ /**
207
+ * Path of the endpoint, anything after \"/1\" must be specified.
208
+ */
209
+ path: string;
210
+ /**
211
+ * Query parameters to apply to the current query.
212
+ */
213
+ parameters?: Record<string, any>;
214
+ /**
215
+ * Parameters to send with the custom request.
216
+ */
217
+ body?: Record<string, unknown>;
218
+ };
219
+ /**
220
+ * Properties for the `getClusterIncidents` method.
221
+ */
222
+ type GetClusterIncidentsProps = {
223
+ /**
224
+ * Subset of clusters, separated by comma.
225
+ */
226
+ clusters: string;
227
+ };
228
+ /**
229
+ * Properties for the `getClusterStatus` method.
230
+ */
231
+ type GetClusterStatusProps = {
232
+ /**
233
+ * Subset of clusters, separated by comma.
234
+ */
235
+ clusters: string;
236
+ };
237
+ /**
238
+ * Properties for the `getIndexingTime` method.
239
+ */
240
+ type GetIndexingTimeProps = {
241
+ /**
242
+ * Subset of clusters, separated by comma.
243
+ */
244
+ clusters: string;
245
+ };
246
+ /**
247
+ * Properties for the `getLatency` method.
248
+ */
249
+ type GetLatencyProps = {
250
+ /**
251
+ * Subset of clusters, separated by comma.
252
+ */
253
+ clusters: string;
254
+ };
255
+ /**
256
+ * Properties for the `getMetrics` method.
257
+ */
258
+ type GetMetricsProps = {
259
+ /**
260
+ * Metric to report. For more information about the individual metrics, see the description of the API response. To include all metrics, use `*`.
261
+ */
262
+ metric: Metric;
263
+ /**
264
+ * 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.
265
+ */
266
+ period: Period;
267
+ };
268
+ /**
269
+ * Properties for the `getReachability` method.
270
+ */
271
+ type GetReachabilityProps = {
272
+ /**
273
+ * Subset of clusters, separated by comma.
274
+ */
275
+ clusters: string;
276
+ };
277
+
278
+ declare const apiClientVersion = "1.2.4";
279
+
280
+ /**
281
+ * The client type.
282
+ */
283
+ type MonitoringClient = ReturnType<typeof monitoringClient>;
284
+ declare function monitoringClient(appId: string, apiKey: string, options?: ClientOptions): {
285
+ transporter: _algolia_client_common.Transporter;
286
+ appId: string;
287
+ clearCache(): Promise<void>;
288
+ _ua: string;
289
+ addAlgoliaAgent(segment: string, version?: string): void;
290
+ customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, unknown>>;
291
+ customGet({ path, parameters }: CustomGetProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, unknown>>;
292
+ customPost({ path, parameters, body }: CustomPostProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, unknown>>;
293
+ customPut({ path, parameters, body }: CustomPutProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, unknown>>;
294
+ getClusterIncidents({ clusters }: GetClusterIncidentsProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<IncidentsResponse>;
295
+ getClusterStatus({ clusters }: GetClusterStatusProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<StatusResponse>;
296
+ getIncidents(requestOptions?: _algolia_client_common.RequestOptions): Promise<IncidentsResponse>;
297
+ getIndexingTime({ clusters }: GetIndexingTimeProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<IndexingTimeResponse>;
298
+ getLatency({ clusters }: GetLatencyProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<LatencyResponse>;
299
+ getMetrics({ metric, period }: GetMetricsProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<InfrastructureResponse>;
300
+ getReachability({ clusters }: GetReachabilityProps, requestOptions?: _algolia_client_common.RequestOptions): Promise<Record<string, Record<string, boolean>>>;
301
+ getServers(requestOptions?: _algolia_client_common.RequestOptions): Promise<InventoryResponse>;
302
+ getStatus(requestOptions?: _algolia_client_common.RequestOptions): Promise<StatusResponse>;
303
+ };
304
+
305
+ 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 };