@amgix/amgix-client 1.1.0 → 1.2.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.
- package/dist/apis/AmgixApi.d.ts +101 -4
- package/dist/apis/AmgixApi.d.ts.map +1 -1
- package/dist/apis/AmgixApi.js +222 -3
- package/dist/models/BulkUploadRequest.d.ts +1 -1
- package/dist/models/BulkUploadRequest.js +1 -1
- package/dist/models/CollectionConfig.d.ts +1 -1
- package/dist/models/CollectionConfig.js +1 -1
- package/dist/models/CollectionExistsResponse.d.ts +1 -1
- package/dist/models/CollectionExistsResponse.js +1 -1
- package/dist/models/CollectionStatsResponse.d.ts +40 -0
- package/dist/models/CollectionStatsResponse.d.ts.map +1 -0
- package/dist/models/CollectionStatsResponse.js +55 -0
- package/dist/models/CustomDocumentVector.d.ts +1 -1
- package/dist/models/CustomDocumentVector.js +1 -1
- package/dist/models/CustomVector.d.ts +1 -1
- package/dist/models/CustomVector.js +1 -1
- package/dist/models/Document.d.ts +1 -1
- package/dist/models/Document.js +1 -1
- package/dist/models/DocumentStatus.d.ts +1 -1
- package/dist/models/DocumentStatus.js +1 -1
- package/dist/models/DocumentStatusResponse.d.ts +1 -1
- package/dist/models/DocumentStatusResponse.js +1 -1
- package/dist/models/HTTPValidationError.d.ts +1 -1
- package/dist/models/HTTPValidationError.js +1 -1
- package/dist/models/MetadataFilter.d.ts +1 -1
- package/dist/models/MetadataFilter.js +1 -1
- package/dist/models/MetadataIndex.d.ts +1 -1
- package/dist/models/MetadataIndex.js +1 -1
- package/dist/models/MetricDefinitionItem.d.ts +45 -0
- package/dist/models/MetricDefinitionItem.d.ts.map +1 -0
- package/dist/models/MetricDefinitionItem.js +58 -0
- package/dist/models/MetricTrend.d.ts +46 -0
- package/dist/models/MetricTrend.d.ts.map +1 -0
- package/dist/models/MetricTrend.js +57 -0
- package/dist/models/Metrics.d.ts +36 -0
- package/dist/models/Metrics.d.ts.map +1 -0
- package/dist/models/Metrics.js +50 -0
- package/dist/models/MetricsBucket.d.ts +63 -0
- package/dist/models/MetricsBucket.d.ts.map +1 -0
- package/dist/models/MetricsBucket.js +66 -0
- package/dist/models/NodeMetricSeries.d.ts +58 -0
- package/dist/models/NodeMetricSeries.d.ts.map +1 -0
- package/dist/models/NodeMetricSeries.js +58 -0
- package/dist/models/NodeView.d.ts +60 -0
- package/dist/models/NodeView.d.ts.map +1 -0
- package/dist/models/NodeView.js +61 -0
- package/dist/models/OkResponse.d.ts +1 -1
- package/dist/models/OkResponse.js +1 -1
- package/dist/models/QueueInfo.d.ts +1 -1
- package/dist/models/QueueInfo.js +1 -1
- package/dist/models/ReadyResponse.d.ts +1 -1
- package/dist/models/ReadyResponse.js +1 -1
- package/dist/models/SearchQuery.d.ts +1 -1
- package/dist/models/SearchQuery.js +1 -1
- package/dist/models/SearchResult.d.ts +1 -1
- package/dist/models/SearchResult.js +1 -1
- package/dist/models/SystemInfoResponse.d.ts +65 -0
- package/dist/models/SystemInfoResponse.d.ts.map +1 -0
- package/dist/models/SystemInfoResponse.js +70 -0
- package/dist/models/ValidationError.d.ts +1 -1
- package/dist/models/ValidationError.js +1 -1
- package/dist/models/ValidationErrorLocItem.d.ts +1 -1
- package/dist/models/ValidationErrorLocItem.js +1 -1
- package/dist/models/Vector.d.ts +1 -1
- package/dist/models/Vector.js +1 -1
- package/dist/models/VectorConfig.d.ts +1 -1
- package/dist/models/VectorConfig.js +1 -1
- package/dist/models/VectorScore.d.ts +1 -1
- package/dist/models/VectorScore.js +1 -1
- package/dist/models/VectorSearchWeight.d.ts +1 -1
- package/dist/models/VectorSearchWeight.js +1 -1
- package/dist/models/VersionResponse.d.ts +1 -1
- package/dist/models/VersionResponse.js +1 -1
- package/dist/models/WindowSample.d.ts +39 -0
- package/dist/models/WindowSample.d.ts.map +1 -0
- package/dist/models/WindowSample.js +52 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +9 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +5 -2
package/dist/apis/AmgixApi.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Amalgam Index API
|
|
3
3
|
* Amalgam Index (Amgix). Open-Source Hybrid Search System
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BulkUploadRequest, CollectionConfig, CollectionExistsResponse, Document, DocumentStatusResponse, OkResponse, QueueInfo, ReadyResponse, SearchQuery, SearchResult, VersionResponse } from '../models/index';
|
|
13
|
+
import type { BulkUploadRequest, CollectionConfig, CollectionExistsResponse, CollectionStatsResponse, Document, DocumentStatusResponse, MetricDefinitionItem, MetricTrend, Metrics, OkResponse, QueueInfo, ReadyResponse, SearchQuery, SearchResult, SystemInfoResponse, VersionResponse } from '../models/index';
|
|
14
14
|
export interface CollectionExistsRequest {
|
|
15
15
|
collectionName: string;
|
|
16
16
|
}
|
|
@@ -37,6 +37,9 @@ export interface GetCollectionConfigRequest {
|
|
|
37
37
|
export interface GetCollectionQueueInfoRequest {
|
|
38
38
|
collectionName: string;
|
|
39
39
|
}
|
|
40
|
+
export interface GetCollectionStatsRequest {
|
|
41
|
+
collectionName: string;
|
|
42
|
+
}
|
|
40
43
|
export interface GetDocumentRequest {
|
|
41
44
|
collectionName: string;
|
|
42
45
|
documentId: string;
|
|
@@ -45,6 +48,16 @@ export interface GetDocumentStatusRequest {
|
|
|
45
48
|
collectionName: string;
|
|
46
49
|
documentId: string;
|
|
47
50
|
}
|
|
51
|
+
export interface MetricsCurrentRequest {
|
|
52
|
+
window?: number;
|
|
53
|
+
keys?: Array<string>;
|
|
54
|
+
}
|
|
55
|
+
export interface MetricsTrendsRequest {
|
|
56
|
+
since: Date;
|
|
57
|
+
until: Date;
|
|
58
|
+
resolution?: number;
|
|
59
|
+
keys?: Array<string>;
|
|
60
|
+
}
|
|
48
61
|
export interface SearchRequest {
|
|
49
62
|
collectionName: string;
|
|
50
63
|
searchQuery: SearchQuery;
|
|
@@ -177,6 +190,20 @@ export declare class AmgixApi extends runtime.BaseAPI {
|
|
|
177
190
|
* Get Collection Queue Info
|
|
178
191
|
*/
|
|
179
192
|
getCollectionQueueInfo(requestParameters: GetCollectionQueueInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<QueueInfo>;
|
|
193
|
+
/**
|
|
194
|
+
* Creates request options for getCollectionStats without sending the request
|
|
195
|
+
*/
|
|
196
|
+
getCollectionStatsRequestOpts(requestParameters: GetCollectionStatsRequest): Promise<runtime.RequestOpts>;
|
|
197
|
+
/**
|
|
198
|
+
* Get persisted collection statistics and queue counts. Returns document counts maintained by the indexing pipeline (not a live physical count), plus queue entry counts by state (same data as ``GET .../queue/info``). Args: collection_name: The name of the collection. Returns: A `CollectionStatsResponse` with `doc_count` and `queue`. Raises: HTTPException: 404 if the collection does not exist.
|
|
199
|
+
* Get Collection Stats
|
|
200
|
+
*/
|
|
201
|
+
getCollectionStatsRaw(requestParameters: GetCollectionStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CollectionStatsResponse>>;
|
|
202
|
+
/**
|
|
203
|
+
* Get persisted collection statistics and queue counts. Returns document counts maintained by the indexing pipeline (not a live physical count), plus queue entry counts by state (same data as ``GET .../queue/info``). Args: collection_name: The name of the collection. Returns: A `CollectionStatsResponse` with `doc_count` and `queue`. Raises: HTTPException: 404 if the collection does not exist.
|
|
204
|
+
* Get Collection Stats
|
|
205
|
+
*/
|
|
206
|
+
getCollectionStats(requestParameters: GetCollectionStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CollectionStatsResponse>;
|
|
180
207
|
/**
|
|
181
208
|
* Creates request options for getDocument without sending the request
|
|
182
209
|
*/
|
|
@@ -224,12 +251,12 @@ export declare class AmgixApi extends runtime.BaseAPI {
|
|
|
224
251
|
*/
|
|
225
252
|
healthReadyRequestOpts(): Promise<runtime.RequestOpts>;
|
|
226
253
|
/**
|
|
227
|
-
* Check if service is ready to handle requests. Runs four probes: database, rabbitmq,
|
|
254
|
+
* Check if service is ready to handle requests. Runs four probes: database, rabbitmq, index workers, query workers. Returns 200 if all pass (fully ready), 218 if some fail (partial ready). Response body always includes all four probe results and a ready flag.
|
|
228
255
|
* Readiness Check
|
|
229
256
|
*/
|
|
230
257
|
healthReadyRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReadyResponse>>;
|
|
231
258
|
/**
|
|
232
|
-
* Check if service is ready to handle requests. Runs four probes: database, rabbitmq,
|
|
259
|
+
* Check if service is ready to handle requests. Runs four probes: database, rabbitmq, index workers, query workers. Returns 200 if all pass (fully ready), 218 if some fail (partial ready). Response body always includes all four probe results and a ready flag.
|
|
233
260
|
* Readiness Check
|
|
234
261
|
*/
|
|
235
262
|
healthReady(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReadyResponse>;
|
|
@@ -247,6 +274,62 @@ export declare class AmgixApi extends runtime.BaseAPI {
|
|
|
247
274
|
* List Collections
|
|
248
275
|
*/
|
|
249
276
|
listCollections(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<string>>;
|
|
277
|
+
/**
|
|
278
|
+
* Creates request options for metricsCurrent without sending the request
|
|
279
|
+
*/
|
|
280
|
+
metricsCurrentRequestOpts(requestParameters: MetricsCurrentRequest): Promise<runtime.RequestOpts>;
|
|
281
|
+
/**
|
|
282
|
+
* Return the current metrics state for all nodes over the given window (seconds).
|
|
283
|
+
* Metrics Current
|
|
284
|
+
*/
|
|
285
|
+
metricsCurrentRaw(requestParameters: MetricsCurrentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Metrics>>;
|
|
286
|
+
/**
|
|
287
|
+
* Return the current metrics state for all nodes over the given window (seconds).
|
|
288
|
+
* Metrics Current
|
|
289
|
+
*/
|
|
290
|
+
metricsCurrent(requestParameters?: MetricsCurrentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Metrics>;
|
|
291
|
+
/**
|
|
292
|
+
* Creates request options for metricsDefinitions without sending the request
|
|
293
|
+
*/
|
|
294
|
+
metricsDefinitionsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
295
|
+
/**
|
|
296
|
+
* Return catalog entries for all known metric keys, their units, and descriptions.
|
|
297
|
+
* Metrics Definitions
|
|
298
|
+
*/
|
|
299
|
+
metricsDefinitionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MetricDefinitionItem>>>;
|
|
300
|
+
/**
|
|
301
|
+
* Return catalog entries for all known metric keys, their units, and descriptions.
|
|
302
|
+
* Metrics Definitions
|
|
303
|
+
*/
|
|
304
|
+
metricsDefinitions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MetricDefinitionItem>>;
|
|
305
|
+
/**
|
|
306
|
+
* Creates request options for metricsPrometheus without sending the request
|
|
307
|
+
*/
|
|
308
|
+
metricsPrometheusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
309
|
+
/**
|
|
310
|
+
* Expose current cluster metrics in Prometheus text exposition (60s rolling window).
|
|
311
|
+
* Metrics Prometheus
|
|
312
|
+
*/
|
|
313
|
+
metricsPrometheusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
314
|
+
/**
|
|
315
|
+
* Expose current cluster metrics in Prometheus text exposition (60s rolling window).
|
|
316
|
+
* Metrics Prometheus
|
|
317
|
+
*/
|
|
318
|
+
metricsPrometheus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
319
|
+
/**
|
|
320
|
+
* Creates request options for metricsTrends without sending the request
|
|
321
|
+
*/
|
|
322
|
+
metricsTrendsRequestOpts(requestParameters: MetricsTrendsRequest): Promise<runtime.RequestOpts>;
|
|
323
|
+
/**
|
|
324
|
+
* Return historical metric buckets for the given time range and resolution. Args: since: Inclusive start of the time range (ISO 8601, UTC assumed if no timezone given). until: Exclusive end of the time range (ISO 8601, UTC assumed if no timezone given). resolution: Bucket size in seconds - 60 for 1-minute, 300 for 5-minute. keys: One or more metric keys to return. Omit to return all keys.
|
|
325
|
+
* Metrics Trends
|
|
326
|
+
*/
|
|
327
|
+
metricsTrendsRaw(requestParameters: MetricsTrendsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MetricTrend>>>;
|
|
328
|
+
/**
|
|
329
|
+
* Return historical metric buckets for the given time range and resolution. Args: since: Inclusive start of the time range (ISO 8601, UTC assumed if no timezone given). until: Exclusive end of the time range (ISO 8601, UTC assumed if no timezone given). resolution: Bucket size in seconds - 60 for 1-minute, 300 for 5-minute. keys: One or more metric keys to return. Omit to return all keys.
|
|
330
|
+
* Metrics Trends
|
|
331
|
+
*/
|
|
332
|
+
metricsTrends(requestParameters: MetricsTrendsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MetricTrend>>;
|
|
250
333
|
/**
|
|
251
334
|
* Creates request options for search without sending the request
|
|
252
335
|
*/
|
|
@@ -261,6 +344,20 @@ export declare class AmgixApi extends runtime.BaseAPI {
|
|
|
261
344
|
* Search
|
|
262
345
|
*/
|
|
263
346
|
search(requestParameters: SearchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SearchResult>>;
|
|
347
|
+
/**
|
|
348
|
+
* Creates request options for systemInfo without sending the request
|
|
349
|
+
*/
|
|
350
|
+
systemInfoRequestOpts(): Promise<runtime.RequestOpts>;
|
|
351
|
+
/**
|
|
352
|
+
* Summarize deployment and infrastructure (no connection URLs).
|
|
353
|
+
* System Info
|
|
354
|
+
*/
|
|
355
|
+
systemInfoRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfoResponse>>;
|
|
356
|
+
/**
|
|
357
|
+
* Summarize deployment and infrastructure (no connection URLs).
|
|
358
|
+
* System Info
|
|
359
|
+
*/
|
|
360
|
+
systemInfo(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfoResponse>;
|
|
264
361
|
/**
|
|
265
362
|
* Creates request options for upsertDocument without sending the request
|
|
266
363
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmgixApi.d.ts","sourceRoot":"","sources":["../../apis/AmgixApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,QAAQ,EACR,sBAAsB,EAEtB,UAAU,EACV,SAAS,EACT,aAAa,EACb,WAAW,EACX,YAAY,EACZ,eAAe,EAChB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"AmgixApi.d.ts","sourceRoot":"","sources":["../../apis/AmgixApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,uBAAuB,EACvB,QAAQ,EACR,sBAAsB,EAEtB,oBAAoB,EACpB,WAAW,EACX,OAAO,EACP,UAAU,EACV,SAAS,EACT,aAAa,EACb,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAsCzB,MAAM,WAAW,uBAAuB;IACpC,cAAc,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,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gam Index (Amgix). Open-Source Hybrid Search System
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -342,6 +342,41 @@ class AmgixApi extends runtime.BaseAPI {
|
|
|
342
342
|
const response = await this.getCollectionQueueInfoRaw(requestParameters, initOverrides);
|
|
343
343
|
return await response.value();
|
|
344
344
|
}
|
|
345
|
+
/**
|
|
346
|
+
* Creates request options for getCollectionStats without sending the request
|
|
347
|
+
*/
|
|
348
|
+
async getCollectionStatsRequestOpts(requestParameters) {
|
|
349
|
+
if (requestParameters['collectionName'] == null) {
|
|
350
|
+
throw new runtime.RequiredError('collectionName', 'Required parameter "collectionName" was null or undefined when calling getCollectionStats().');
|
|
351
|
+
}
|
|
352
|
+
const queryParameters = {};
|
|
353
|
+
const headerParameters = {};
|
|
354
|
+
let urlPath = `/v1/collections/{collection_name}/stats`;
|
|
355
|
+
urlPath = urlPath.replace(`{${"collection_name"}}`, encodeURIComponent(String(requestParameters['collectionName'])));
|
|
356
|
+
return {
|
|
357
|
+
path: urlPath,
|
|
358
|
+
method: 'GET',
|
|
359
|
+
headers: headerParameters,
|
|
360
|
+
query: queryParameters,
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Get persisted collection statistics and queue counts. Returns document counts maintained by the indexing pipeline (not a live physical count), plus queue entry counts by state (same data as ``GET .../queue/info``). Args: collection_name: The name of the collection. Returns: A `CollectionStatsResponse` with `doc_count` and `queue`. Raises: HTTPException: 404 if the collection does not exist.
|
|
365
|
+
* Get Collection Stats
|
|
366
|
+
*/
|
|
367
|
+
async getCollectionStatsRaw(requestParameters, initOverrides) {
|
|
368
|
+
const requestOptions = await this.getCollectionStatsRequestOpts(requestParameters);
|
|
369
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
370
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CollectionStatsResponseFromJSON)(jsonValue));
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Get persisted collection statistics and queue counts. Returns document counts maintained by the indexing pipeline (not a live physical count), plus queue entry counts by state (same data as ``GET .../queue/info``). Args: collection_name: The name of the collection. Returns: A `CollectionStatsResponse` with `doc_count` and `queue`. Raises: HTTPException: 404 if the collection does not exist.
|
|
374
|
+
* Get Collection Stats
|
|
375
|
+
*/
|
|
376
|
+
async getCollectionStats(requestParameters, initOverrides) {
|
|
377
|
+
const response = await this.getCollectionStatsRaw(requestParameters, initOverrides);
|
|
378
|
+
return await response.value();
|
|
379
|
+
}
|
|
345
380
|
/**
|
|
346
381
|
* Creates request options for getDocument without sending the request
|
|
347
382
|
*/
|
|
@@ -466,7 +501,7 @@ class AmgixApi extends runtime.BaseAPI {
|
|
|
466
501
|
};
|
|
467
502
|
}
|
|
468
503
|
/**
|
|
469
|
-
* Check if service is ready to handle requests. Runs four probes: database, rabbitmq,
|
|
504
|
+
* Check if service is ready to handle requests. Runs four probes: database, rabbitmq, index workers, query workers. Returns 200 if all pass (fully ready), 218 if some fail (partial ready). Response body always includes all four probe results and a ready flag.
|
|
470
505
|
* Readiness Check
|
|
471
506
|
*/
|
|
472
507
|
async healthReadyRaw(initOverrides) {
|
|
@@ -475,7 +510,7 @@ class AmgixApi extends runtime.BaseAPI {
|
|
|
475
510
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ReadyResponseFromJSON)(jsonValue));
|
|
476
511
|
}
|
|
477
512
|
/**
|
|
478
|
-
* Check if service is ready to handle requests. Runs four probes: database, rabbitmq,
|
|
513
|
+
* Check if service is ready to handle requests. Runs four probes: database, rabbitmq, index workers, query workers. Returns 200 if all pass (fully ready), 218 if some fail (partial ready). Response body always includes all four probe results and a ready flag.
|
|
479
514
|
* Readiness Check
|
|
480
515
|
*/
|
|
481
516
|
async healthReady(initOverrides) {
|
|
@@ -513,6 +548,159 @@ class AmgixApi extends runtime.BaseAPI {
|
|
|
513
548
|
const response = await this.listCollectionsRaw(initOverrides);
|
|
514
549
|
return await response.value();
|
|
515
550
|
}
|
|
551
|
+
/**
|
|
552
|
+
* Creates request options for metricsCurrent without sending the request
|
|
553
|
+
*/
|
|
554
|
+
async metricsCurrentRequestOpts(requestParameters) {
|
|
555
|
+
const queryParameters = {};
|
|
556
|
+
if (requestParameters['window'] != null) {
|
|
557
|
+
queryParameters['window'] = requestParameters['window'];
|
|
558
|
+
}
|
|
559
|
+
if (requestParameters['keys'] != null) {
|
|
560
|
+
queryParameters['keys'] = requestParameters['keys'];
|
|
561
|
+
}
|
|
562
|
+
const headerParameters = {};
|
|
563
|
+
let urlPath = `/v1/metrics/current`;
|
|
564
|
+
return {
|
|
565
|
+
path: urlPath,
|
|
566
|
+
method: 'GET',
|
|
567
|
+
headers: headerParameters,
|
|
568
|
+
query: queryParameters,
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Return the current metrics state for all nodes over the given window (seconds).
|
|
573
|
+
* Metrics Current
|
|
574
|
+
*/
|
|
575
|
+
async metricsCurrentRaw(requestParameters, initOverrides) {
|
|
576
|
+
const requestOptions = await this.metricsCurrentRequestOpts(requestParameters);
|
|
577
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
578
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MetricsFromJSON)(jsonValue));
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* Return the current metrics state for all nodes over the given window (seconds).
|
|
582
|
+
* Metrics Current
|
|
583
|
+
*/
|
|
584
|
+
async metricsCurrent(requestParameters = {}, initOverrides) {
|
|
585
|
+
const response = await this.metricsCurrentRaw(requestParameters, initOverrides);
|
|
586
|
+
return await response.value();
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* Creates request options for metricsDefinitions without sending the request
|
|
590
|
+
*/
|
|
591
|
+
async metricsDefinitionsRequestOpts() {
|
|
592
|
+
const queryParameters = {};
|
|
593
|
+
const headerParameters = {};
|
|
594
|
+
let urlPath = `/v1/metrics/definitions`;
|
|
595
|
+
return {
|
|
596
|
+
path: urlPath,
|
|
597
|
+
method: 'GET',
|
|
598
|
+
headers: headerParameters,
|
|
599
|
+
query: queryParameters,
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* Return catalog entries for all known metric keys, their units, and descriptions.
|
|
604
|
+
* Metrics Definitions
|
|
605
|
+
*/
|
|
606
|
+
async metricsDefinitionsRaw(initOverrides) {
|
|
607
|
+
const requestOptions = await this.metricsDefinitionsRequestOpts();
|
|
608
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
609
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.MetricDefinitionItemFromJSON));
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* Return catalog entries for all known metric keys, their units, and descriptions.
|
|
613
|
+
* Metrics Definitions
|
|
614
|
+
*/
|
|
615
|
+
async metricsDefinitions(initOverrides) {
|
|
616
|
+
const response = await this.metricsDefinitionsRaw(initOverrides);
|
|
617
|
+
return await response.value();
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* Creates request options for metricsPrometheus without sending the request
|
|
621
|
+
*/
|
|
622
|
+
async metricsPrometheusRequestOpts() {
|
|
623
|
+
const queryParameters = {};
|
|
624
|
+
const headerParameters = {};
|
|
625
|
+
let urlPath = `/v1/metrics/prometheus`;
|
|
626
|
+
return {
|
|
627
|
+
path: urlPath,
|
|
628
|
+
method: 'GET',
|
|
629
|
+
headers: headerParameters,
|
|
630
|
+
query: queryParameters,
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
/**
|
|
634
|
+
* Expose current cluster metrics in Prometheus text exposition (60s rolling window).
|
|
635
|
+
* Metrics Prometheus
|
|
636
|
+
*/
|
|
637
|
+
async metricsPrometheusRaw(initOverrides) {
|
|
638
|
+
const requestOptions = await this.metricsPrometheusRequestOpts();
|
|
639
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
640
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
641
|
+
return new runtime.JSONApiResponse(response);
|
|
642
|
+
}
|
|
643
|
+
else {
|
|
644
|
+
return new runtime.TextApiResponse(response);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Expose current cluster metrics in Prometheus text exposition (60s rolling window).
|
|
649
|
+
* Metrics Prometheus
|
|
650
|
+
*/
|
|
651
|
+
async metricsPrometheus(initOverrides) {
|
|
652
|
+
const response = await this.metricsPrometheusRaw(initOverrides);
|
|
653
|
+
return await response.value();
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* Creates request options for metricsTrends without sending the request
|
|
657
|
+
*/
|
|
658
|
+
async metricsTrendsRequestOpts(requestParameters) {
|
|
659
|
+
if (requestParameters['since'] == null) {
|
|
660
|
+
throw new runtime.RequiredError('since', 'Required parameter "since" was null or undefined when calling metricsTrends().');
|
|
661
|
+
}
|
|
662
|
+
if (requestParameters['until'] == null) {
|
|
663
|
+
throw new runtime.RequiredError('until', 'Required parameter "until" was null or undefined when calling metricsTrends().');
|
|
664
|
+
}
|
|
665
|
+
const queryParameters = {};
|
|
666
|
+
if (requestParameters['since'] != null) {
|
|
667
|
+
queryParameters['since'] = requestParameters['since'].toISOString();
|
|
668
|
+
}
|
|
669
|
+
if (requestParameters['until'] != null) {
|
|
670
|
+
queryParameters['until'] = requestParameters['until'].toISOString();
|
|
671
|
+
}
|
|
672
|
+
if (requestParameters['resolution'] != null) {
|
|
673
|
+
queryParameters['resolution'] = requestParameters['resolution'];
|
|
674
|
+
}
|
|
675
|
+
if (requestParameters['keys'] != null) {
|
|
676
|
+
queryParameters['keys'] = requestParameters['keys'];
|
|
677
|
+
}
|
|
678
|
+
const headerParameters = {};
|
|
679
|
+
let urlPath = `/v1/metrics/trends`;
|
|
680
|
+
return {
|
|
681
|
+
path: urlPath,
|
|
682
|
+
method: 'GET',
|
|
683
|
+
headers: headerParameters,
|
|
684
|
+
query: queryParameters,
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Return historical metric buckets for the given time range and resolution. Args: since: Inclusive start of the time range (ISO 8601, UTC assumed if no timezone given). until: Exclusive end of the time range (ISO 8601, UTC assumed if no timezone given). resolution: Bucket size in seconds - 60 for 1-minute, 300 for 5-minute. keys: One or more metric keys to return. Omit to return all keys.
|
|
689
|
+
* Metrics Trends
|
|
690
|
+
*/
|
|
691
|
+
async metricsTrendsRaw(requestParameters, initOverrides) {
|
|
692
|
+
const requestOptions = await this.metricsTrendsRequestOpts(requestParameters);
|
|
693
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
694
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.MetricTrendFromJSON));
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* Return historical metric buckets for the given time range and resolution. Args: since: Inclusive start of the time range (ISO 8601, UTC assumed if no timezone given). until: Exclusive end of the time range (ISO 8601, UTC assumed if no timezone given). resolution: Bucket size in seconds - 60 for 1-minute, 300 for 5-minute. keys: One or more metric keys to return. Omit to return all keys.
|
|
698
|
+
* Metrics Trends
|
|
699
|
+
*/
|
|
700
|
+
async metricsTrends(requestParameters, initOverrides) {
|
|
701
|
+
const response = await this.metricsTrendsRaw(requestParameters, initOverrides);
|
|
702
|
+
return await response.value();
|
|
703
|
+
}
|
|
516
704
|
/**
|
|
517
705
|
* Creates request options for search without sending the request
|
|
518
706
|
*/
|
|
@@ -553,6 +741,37 @@ class AmgixApi extends runtime.BaseAPI {
|
|
|
553
741
|
const response = await this.searchRaw(requestParameters, initOverrides);
|
|
554
742
|
return await response.value();
|
|
555
743
|
}
|
|
744
|
+
/**
|
|
745
|
+
* Creates request options for systemInfo without sending the request
|
|
746
|
+
*/
|
|
747
|
+
async systemInfoRequestOpts() {
|
|
748
|
+
const queryParameters = {};
|
|
749
|
+
const headerParameters = {};
|
|
750
|
+
let urlPath = `/v1/system/info`;
|
|
751
|
+
return {
|
|
752
|
+
path: urlPath,
|
|
753
|
+
method: 'GET',
|
|
754
|
+
headers: headerParameters,
|
|
755
|
+
query: queryParameters,
|
|
756
|
+
};
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* Summarize deployment and infrastructure (no connection URLs).
|
|
760
|
+
* System Info
|
|
761
|
+
*/
|
|
762
|
+
async systemInfoRaw(initOverrides) {
|
|
763
|
+
const requestOptions = await this.systemInfoRequestOpts();
|
|
764
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
765
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SystemInfoResponseFromJSON)(jsonValue));
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* Summarize deployment and infrastructure (no connection URLs).
|
|
769
|
+
* System Info
|
|
770
|
+
*/
|
|
771
|
+
async systemInfo(initOverrides) {
|
|
772
|
+
const response = await this.systemInfoRaw(initOverrides);
|
|
773
|
+
return await response.value();
|
|
774
|
+
}
|
|
556
775
|
/**
|
|
557
776
|
* Creates request options for upsertDocument without sending the request
|
|
558
777
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Amalgam Index API
|
|
3
3
|
* Amalgam Index (Amgix). Open-Source Hybrid Search System
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Amalgam Index API
|
|
6
6
|
* Amalgam Index (Amgix). Open-Source Hybrid Search System
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Amalgam Index API
|
|
3
3
|
* Amalgam Index (Amgix). Open-Source Hybrid Search System
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Amalgam Index API
|
|
6
6
|
* Amalgam Index (Amgix). Open-Source Hybrid Search System
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Amalgam Index API
|
|
3
3
|
* Amalgam Index (Amgix). Open-Source Hybrid Search System
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Amalgam Index API
|
|
6
6
|
* Amalgam Index (Amgix). Open-Source Hybrid Search System
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Amalgam Index API
|
|
3
|
+
* Amalgam Index (Amgix). Open-Source Hybrid Search System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { QueueInfo } from './QueueInfo';
|
|
13
|
+
/**
|
|
14
|
+
* Persisted index statistics for a collection (encoder-maintained counts) and queue counts.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CollectionStatsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CollectionStatsResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Number of documents reflected in collection stats
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof CollectionStatsResponse
|
|
23
|
+
*/
|
|
24
|
+
doc_count: number;
|
|
25
|
+
/**
|
|
26
|
+
* Counts of documents in each queue state
|
|
27
|
+
* @type {QueueInfo}
|
|
28
|
+
* @memberof CollectionStatsResponse
|
|
29
|
+
*/
|
|
30
|
+
queue: QueueInfo;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the CollectionStatsResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfCollectionStatsResponse(value: object): value is CollectionStatsResponse;
|
|
36
|
+
export declare function CollectionStatsResponseFromJSON(json: any): CollectionStatsResponse;
|
|
37
|
+
export declare function CollectionStatsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CollectionStatsResponse;
|
|
38
|
+
export declare function CollectionStatsResponseToJSON(json: any): CollectionStatsResponse;
|
|
39
|
+
export declare function CollectionStatsResponseToJSONTyped(value?: CollectionStatsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
+
//# sourceMappingURL=CollectionStatsResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionStatsResponse.d.ts","sourceRoot":"","sources":["../../models/CollectionStatsResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,SAAS,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAIjG;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CASrH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUpI"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Amalgam Index API
|
|
6
|
+
* Amalgam Index (Amgix). Open-Source Hybrid Search System
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCollectionStatsResponse = instanceOfCollectionStatsResponse;
|
|
17
|
+
exports.CollectionStatsResponseFromJSON = CollectionStatsResponseFromJSON;
|
|
18
|
+
exports.CollectionStatsResponseFromJSONTyped = CollectionStatsResponseFromJSONTyped;
|
|
19
|
+
exports.CollectionStatsResponseToJSON = CollectionStatsResponseToJSON;
|
|
20
|
+
exports.CollectionStatsResponseToJSONTyped = CollectionStatsResponseToJSONTyped;
|
|
21
|
+
const QueueInfo_1 = require("./QueueInfo");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CollectionStatsResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCollectionStatsResponse(value) {
|
|
26
|
+
if (!('doc_count' in value) || value['doc_count'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('queue' in value) || value['queue'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function CollectionStatsResponseFromJSON(json) {
|
|
33
|
+
return CollectionStatsResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function CollectionStatsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'doc_count': json['doc_count'],
|
|
41
|
+
'queue': (0, QueueInfo_1.QueueInfoFromJSON)(json['queue']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function CollectionStatsResponseToJSON(json) {
|
|
45
|
+
return CollectionStatsResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function CollectionStatsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'doc_count': value['doc_count'],
|
|
53
|
+
'queue': (0, QueueInfo_1.QueueInfoToJSON)(value['queue']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Amalgam Index API
|
|
3
3
|
* Amalgam Index (Amgix). Open-Source Hybrid Search System
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.2.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Amalgam Index API
|
|
6
6
|
* Amalgam Index (Amgix). Open-Source Hybrid Search System
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.2.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|