@terascope/types 0.10.2 → 0.11.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/src/data-types.d.ts +2 -2
- package/dist/src/data-types.d.ts.map +1 -1
- package/dist/src/data-types.js.map +1 -1
- package/dist/src/elasticsearch-client/elasticsearch-params.d.ts +511 -0
- package/dist/src/elasticsearch-client/elasticsearch-params.d.ts.map +1 -0
- package/dist/src/elasticsearch-client/elasticsearch-params.js +3 -0
- package/dist/src/elasticsearch-client/elasticsearch-params.js.map +1 -0
- package/dist/src/elasticsearch-client/elasticsearch-response.d.ts +197 -0
- package/dist/src/elasticsearch-client/elasticsearch-response.d.ts.map +1 -0
- package/dist/src/elasticsearch-client/elasticsearch-response.js +3 -0
- package/dist/src/elasticsearch-client/elasticsearch-response.js.map +1 -0
- package/dist/src/elasticsearch-client/elasticsearch-types.d.ts +2148 -0
- package/dist/src/elasticsearch-client/elasticsearch-types.d.ts.map +1 -0
- package/dist/src/elasticsearch-client/elasticsearch-types.js +3 -0
- package/dist/src/elasticsearch-client/elasticsearch-types.js.map +1 -0
- package/dist/src/elasticsearch-client/index.d.ts +4 -0
- package/dist/src/elasticsearch-client/index.d.ts.map +1 -0
- package/dist/src/elasticsearch-client/index.js +30 -0
- package/dist/src/elasticsearch-client/index.js.map +1 -0
- package/dist/src/elasticsearch-interfaces.d.ts +15 -5
- package/dist/src/elasticsearch-interfaces.d.ts.map +1 -1
- package/dist/src/elasticsearch-interfaces.js +6 -0
- package/dist/src/elasticsearch-interfaces.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +6 -1
- package/dist/src/index.js.map +1 -1
- package/package.json +2 -4
|
@@ -0,0 +1,2148 @@
|
|
|
1
|
+
export declare type Duration = number;
|
|
2
|
+
export declare type TimeUnit = 'd' | 'h' | 'm' | 's' | 'ms' | 'micros' | 'nanos';
|
|
3
|
+
export declare type TimeSpan = `${Duration}${TimeUnit}`;
|
|
4
|
+
export declare type ExpandWildcards = 'open' | 'closed' | 'hidden' | 'none' | 'all';
|
|
5
|
+
export declare type SearchTypes = 'query_then_fetch' | 'dfs_query_then_fetch';
|
|
6
|
+
export declare type SuggestMode = 'missing' | 'popular' | 'always';
|
|
7
|
+
export declare type ConflictOptions = 'abort' | 'proceed';
|
|
8
|
+
export declare type ScriptLangs = 'painless' | 'expression' | 'mustache' | 'java';
|
|
9
|
+
export declare type Health = 'green' | 'yellow' | 'red';
|
|
10
|
+
export declare type Bytes = 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
|
|
11
|
+
export interface Remote {
|
|
12
|
+
host?: string;
|
|
13
|
+
username?: string;
|
|
14
|
+
password?: string;
|
|
15
|
+
socket_timeout?: TimeSpan;
|
|
16
|
+
connect_timeout?: TimeSpan;
|
|
17
|
+
}
|
|
18
|
+
export interface ErrorCauseKeys {
|
|
19
|
+
type: string;
|
|
20
|
+
reason: string;
|
|
21
|
+
stack_trace?: string;
|
|
22
|
+
caused_by?: ErrorCause;
|
|
23
|
+
root_cause?: ErrorCause[];
|
|
24
|
+
suppressed?: ErrorCause[];
|
|
25
|
+
}
|
|
26
|
+
export declare type ErrorCause = ErrorCauseKeys & {
|
|
27
|
+
[property: string]: any;
|
|
28
|
+
};
|
|
29
|
+
export interface BulkIndexByScrollFailure {
|
|
30
|
+
cause: ErrorCause;
|
|
31
|
+
id: string;
|
|
32
|
+
index: string;
|
|
33
|
+
status: number;
|
|
34
|
+
type: string;
|
|
35
|
+
}
|
|
36
|
+
export interface SearchResult<TDocument = Record<string, any>> {
|
|
37
|
+
fields?: Record<string, any>;
|
|
38
|
+
found: boolean;
|
|
39
|
+
_index: string;
|
|
40
|
+
_type?: string;
|
|
41
|
+
_score?: number;
|
|
42
|
+
_id: string;
|
|
43
|
+
_primary_term?: number;
|
|
44
|
+
_routing?: string;
|
|
45
|
+
_seq_no?: number;
|
|
46
|
+
_source?: TDocument;
|
|
47
|
+
_version?: number;
|
|
48
|
+
}
|
|
49
|
+
export interface ShardFailure {
|
|
50
|
+
index?: string;
|
|
51
|
+
node?: string;
|
|
52
|
+
reason: ErrorCause;
|
|
53
|
+
shard: number;
|
|
54
|
+
status?: string;
|
|
55
|
+
}
|
|
56
|
+
export declare type IndexRefresh = boolean | RefreshOptions;
|
|
57
|
+
export declare type RefreshOptions = 'wait_for';
|
|
58
|
+
export declare type VersionType = 'internal' | 'external' | 'external_gte' | 'force';
|
|
59
|
+
export declare type Action = 'Error' | 'created' | 'updated' | 'deleted' | 'not_found' | 'noop';
|
|
60
|
+
export interface ShardStatistics {
|
|
61
|
+
failed: number;
|
|
62
|
+
successful: number;
|
|
63
|
+
total: number;
|
|
64
|
+
failures?: ShardFailure[];
|
|
65
|
+
skipped?: number;
|
|
66
|
+
}
|
|
67
|
+
export interface WriteResponseBase {
|
|
68
|
+
_id: string;
|
|
69
|
+
_index: string;
|
|
70
|
+
_primary_term: number;
|
|
71
|
+
result: Action;
|
|
72
|
+
_seq_no: number;
|
|
73
|
+
_shards: ShardStatistics;
|
|
74
|
+
_version: number;
|
|
75
|
+
forced_refresh?: boolean;
|
|
76
|
+
error?: ErrorCauseKeys;
|
|
77
|
+
}
|
|
78
|
+
export declare type WaitForActiveShardOptions = 'all';
|
|
79
|
+
export declare type WaitForActiveShards = number | WaitForActiveShardOptions;
|
|
80
|
+
export declare type OpType = 'index' | 'create';
|
|
81
|
+
export declare type ScriptLanguage = 'painless' | 'expression' | 'mustache' | 'java';
|
|
82
|
+
export interface IndexedScript extends ScriptBase {
|
|
83
|
+
id: string;
|
|
84
|
+
}
|
|
85
|
+
export interface ScriptBase {
|
|
86
|
+
lang?: ScriptLanguage;
|
|
87
|
+
params?: Record<string, any>;
|
|
88
|
+
}
|
|
89
|
+
export interface InlineScript extends ScriptBase {
|
|
90
|
+
source: string;
|
|
91
|
+
}
|
|
92
|
+
export declare type Script = InlineScript | IndexedScript | string;
|
|
93
|
+
export interface SearchSourceFilter {
|
|
94
|
+
excludes?: string | string[];
|
|
95
|
+
includes?: string | string[];
|
|
96
|
+
exclude?: string | string[];
|
|
97
|
+
include?: string | string[];
|
|
98
|
+
}
|
|
99
|
+
export interface InlineGet<TDocument = unknown> {
|
|
100
|
+
fields?: Record<string, any>;
|
|
101
|
+
found: boolean;
|
|
102
|
+
_seq_no: number;
|
|
103
|
+
_primary_term: number;
|
|
104
|
+
_routing?: string;
|
|
105
|
+
_source: TDocument;
|
|
106
|
+
}
|
|
107
|
+
export interface PluginStats {
|
|
108
|
+
classname: string;
|
|
109
|
+
description: string;
|
|
110
|
+
opensearch_version: string;
|
|
111
|
+
extended_plugins: string[];
|
|
112
|
+
has_native_controller: boolean;
|
|
113
|
+
java_version: string;
|
|
114
|
+
name: string;
|
|
115
|
+
version: string;
|
|
116
|
+
licensed: boolean;
|
|
117
|
+
type: string;
|
|
118
|
+
}
|
|
119
|
+
export declare type NodeRole = 'cluster_manager' | 'master' | 'data' | 'client' | 'ingest' | 'voting_only' | 'remote_cluster_client' | 'coordinating_only';
|
|
120
|
+
export declare type NodeRoles = NodeRole[];
|
|
121
|
+
export interface IndexTemplateProperties {
|
|
122
|
+
aliases?: {
|
|
123
|
+
[alias: string]: Alias;
|
|
124
|
+
};
|
|
125
|
+
mappings?: Record<string, any>;
|
|
126
|
+
settings?: Record<string, any>;
|
|
127
|
+
index_patterns?: string | string[];
|
|
128
|
+
}
|
|
129
|
+
export interface Alias {
|
|
130
|
+
filter?: string;
|
|
131
|
+
index_routing?: string;
|
|
132
|
+
is_hidden?: boolean;
|
|
133
|
+
is_write_index?: boolean;
|
|
134
|
+
routing?: string;
|
|
135
|
+
search_routing?: string;
|
|
136
|
+
}
|
|
137
|
+
export interface MGetBody {
|
|
138
|
+
docs?: MGetDocs[];
|
|
139
|
+
ids?: string[];
|
|
140
|
+
}
|
|
141
|
+
export interface MGetDocs {
|
|
142
|
+
_id: string;
|
|
143
|
+
_index?: string;
|
|
144
|
+
_type?: string;
|
|
145
|
+
_source?: boolean;
|
|
146
|
+
routing?: string;
|
|
147
|
+
source_includes?: string | string[];
|
|
148
|
+
source_excludes?: string | string[];
|
|
149
|
+
_stored_fields?: string | string[];
|
|
150
|
+
}
|
|
151
|
+
export declare type BulkCreateOperation = BulkOperation;
|
|
152
|
+
export declare type BulkCreateResponseItem = BulkResponseItemBase;
|
|
153
|
+
export declare type BulkDeleteOperation = BulkOperation;
|
|
154
|
+
export declare type BulkDeleteResponseItem = BulkResponseItemBase;
|
|
155
|
+
export declare type BulkIndexOperation = BulkOperation;
|
|
156
|
+
export declare type BulkIndexResponseItem = BulkResponseItemBase;
|
|
157
|
+
export interface BulkOperation {
|
|
158
|
+
_id: string;
|
|
159
|
+
_index: string;
|
|
160
|
+
retry_on_conflict: number;
|
|
161
|
+
routing: string;
|
|
162
|
+
version: number;
|
|
163
|
+
version_type: VersionType;
|
|
164
|
+
}
|
|
165
|
+
export interface BulkOperationContainer {
|
|
166
|
+
index?: BulkIndexOperation;
|
|
167
|
+
create?: BulkCreateOperation;
|
|
168
|
+
update?: BulkUpdateOperation;
|
|
169
|
+
delete?: BulkDeleteOperation;
|
|
170
|
+
}
|
|
171
|
+
export declare type SearchSourceConfig = boolean | SearchSourceFilter | string | string[];
|
|
172
|
+
export interface BulkUpdateAction<TDocument = unknown, TPartialDocument = unknown> {
|
|
173
|
+
detect_noop?: boolean;
|
|
174
|
+
doc?: TPartialDocument;
|
|
175
|
+
doc_as_upsert?: boolean;
|
|
176
|
+
script?: Script;
|
|
177
|
+
scripted_upsert?: boolean;
|
|
178
|
+
_source?: SearchSourceConfig;
|
|
179
|
+
upsert?: TDocument;
|
|
180
|
+
}
|
|
181
|
+
export interface BulkResponseItemBase {
|
|
182
|
+
_id?: string | null;
|
|
183
|
+
_index: string;
|
|
184
|
+
status: number;
|
|
185
|
+
error?: ErrorCause;
|
|
186
|
+
_primary_term?: number;
|
|
187
|
+
result?: string;
|
|
188
|
+
_seq_no?: number;
|
|
189
|
+
_shards?: ShardStatistics;
|
|
190
|
+
_version?: number;
|
|
191
|
+
forced_refresh?: boolean;
|
|
192
|
+
get?: InlineGet<Record<string, any>>;
|
|
193
|
+
}
|
|
194
|
+
export interface BulkResponseItemContainer {
|
|
195
|
+
index?: BulkIndexResponseItem;
|
|
196
|
+
create?: BulkCreateResponseItem;
|
|
197
|
+
update?: BulkUpdateResponseItem;
|
|
198
|
+
delete?: BulkDeleteResponseItem;
|
|
199
|
+
}
|
|
200
|
+
export declare type BulkUpdateOperation = BulkOperation;
|
|
201
|
+
export declare type BulkUpdateResponseItem = BulkResponseItemBase;
|
|
202
|
+
export interface CatIndicesIndicesRecord {
|
|
203
|
+
health?: string;
|
|
204
|
+
h?: string;
|
|
205
|
+
status?: string;
|
|
206
|
+
s?: string;
|
|
207
|
+
index?: string;
|
|
208
|
+
i?: string;
|
|
209
|
+
idx?: string;
|
|
210
|
+
uuid?: string;
|
|
211
|
+
id?: string;
|
|
212
|
+
pri?: string;
|
|
213
|
+
p?: string;
|
|
214
|
+
'shards.primary'?: string;
|
|
215
|
+
shardsPrimary?: string;
|
|
216
|
+
rep?: string;
|
|
217
|
+
r?: string;
|
|
218
|
+
'shards.replica'?: string;
|
|
219
|
+
shardsReplica?: string;
|
|
220
|
+
'docs.count'?: string;
|
|
221
|
+
dc?: string;
|
|
222
|
+
docsCount?: string;
|
|
223
|
+
'docs.deleted'?: string;
|
|
224
|
+
dd?: string;
|
|
225
|
+
docsDeleted?: string;
|
|
226
|
+
'creation.date'?: string;
|
|
227
|
+
cd?: string;
|
|
228
|
+
'creation.date.string'?: string;
|
|
229
|
+
cds?: string;
|
|
230
|
+
'store.size'?: string;
|
|
231
|
+
ss?: string;
|
|
232
|
+
storeSize?: string;
|
|
233
|
+
'prstore.size'?: string;
|
|
234
|
+
'completion.size'?: string;
|
|
235
|
+
cs?: string;
|
|
236
|
+
completionSize?: string;
|
|
237
|
+
'prcompletion.size'?: string;
|
|
238
|
+
'fielddata.memory_size'?: string;
|
|
239
|
+
fm?: string;
|
|
240
|
+
fielddataMemory?: string;
|
|
241
|
+
'prfielddata.memory_size'?: string;
|
|
242
|
+
'fielddata.evictions'?: string;
|
|
243
|
+
fe?: string;
|
|
244
|
+
fielddataEvictions?: string;
|
|
245
|
+
'prfielddata.evictions'?: string;
|
|
246
|
+
'query_cache.memory_size'?: string;
|
|
247
|
+
qcm?: string;
|
|
248
|
+
queryCacheMemory?: string;
|
|
249
|
+
'prquery_cache.memory_size'?: string;
|
|
250
|
+
'query_cache.evictions'?: string;
|
|
251
|
+
qce?: string;
|
|
252
|
+
queryCacheEvictions?: string;
|
|
253
|
+
'prquery_cache.evictions'?: string;
|
|
254
|
+
'request_cache.memory_size'?: string;
|
|
255
|
+
rcm?: string;
|
|
256
|
+
requestCacheMemory?: string;
|
|
257
|
+
'prrequest_cache.memory_size'?: string;
|
|
258
|
+
'request_cache.evictions'?: string;
|
|
259
|
+
rce?: string;
|
|
260
|
+
requestCacheEvictions?: string;
|
|
261
|
+
'prrequest_cache.evictions'?: string;
|
|
262
|
+
'request_cache.hit_count'?: string;
|
|
263
|
+
rchc?: string;
|
|
264
|
+
requestCacheHitCount?: string;
|
|
265
|
+
'prrequest_cache.hit_count'?: string;
|
|
266
|
+
'request_cache.miss_count'?: string;
|
|
267
|
+
rcmc?: string;
|
|
268
|
+
requestCacheMissCount?: string;
|
|
269
|
+
'prrequest_cache.miss_count'?: string;
|
|
270
|
+
'flush.total'?: string;
|
|
271
|
+
ft?: string;
|
|
272
|
+
flushTotal?: string;
|
|
273
|
+
'prflush.total'?: string;
|
|
274
|
+
'flush.total_time'?: string;
|
|
275
|
+
ftt?: string;
|
|
276
|
+
flushTotalTime?: string;
|
|
277
|
+
'prflush.total_time'?: string;
|
|
278
|
+
'get.current'?: string;
|
|
279
|
+
gc?: string;
|
|
280
|
+
getCurrent?: string;
|
|
281
|
+
'prget.current'?: string;
|
|
282
|
+
'get.time'?: string;
|
|
283
|
+
gti?: string;
|
|
284
|
+
getTime?: string;
|
|
285
|
+
'prget.time'?: string;
|
|
286
|
+
'get.total'?: string;
|
|
287
|
+
gto?: string;
|
|
288
|
+
getTotal?: string;
|
|
289
|
+
'prget.total'?: string;
|
|
290
|
+
'get.exists_time'?: string;
|
|
291
|
+
geti?: string;
|
|
292
|
+
getExistsTime?: string;
|
|
293
|
+
'prget.exists_time'?: string;
|
|
294
|
+
'get.exists_total'?: string;
|
|
295
|
+
geto?: string;
|
|
296
|
+
getExistsTotal?: string;
|
|
297
|
+
'prget.exists_total'?: string;
|
|
298
|
+
'get.missing_time'?: string;
|
|
299
|
+
gmti?: string;
|
|
300
|
+
getMissingTime?: string;
|
|
301
|
+
'prget.missing_time'?: string;
|
|
302
|
+
'get.missing_total'?: string;
|
|
303
|
+
gmto?: string;
|
|
304
|
+
getMissingTotal?: string;
|
|
305
|
+
'prget.missing_total'?: string;
|
|
306
|
+
'indexing.delete_current'?: string;
|
|
307
|
+
idc?: string;
|
|
308
|
+
indexingDeleteCurrent?: string;
|
|
309
|
+
'prindexing.delete_current'?: string;
|
|
310
|
+
'indexing.delete_time'?: string;
|
|
311
|
+
idti?: string;
|
|
312
|
+
indexingDeleteTime?: string;
|
|
313
|
+
'prindexing.delete_time'?: string;
|
|
314
|
+
'indexing.delete_total'?: string;
|
|
315
|
+
idto?: string;
|
|
316
|
+
indexingDeleteTotal?: string;
|
|
317
|
+
'prindexing.delete_total'?: string;
|
|
318
|
+
'indexing.index_current'?: string;
|
|
319
|
+
iic?: string;
|
|
320
|
+
indexingIndexCurrent?: string;
|
|
321
|
+
'prindexing.index_current'?: string;
|
|
322
|
+
'indexing.index_time'?: string;
|
|
323
|
+
iiti?: string;
|
|
324
|
+
indexingIndexTime?: string;
|
|
325
|
+
'prindexing.index_time'?: string;
|
|
326
|
+
'indexing.index_total'?: string;
|
|
327
|
+
iito?: string;
|
|
328
|
+
indexingIndexTotal?: string;
|
|
329
|
+
'prindexing.index_total'?: string;
|
|
330
|
+
'indexing.index_failed'?: string;
|
|
331
|
+
iif?: string;
|
|
332
|
+
indexingIndexFailed?: string;
|
|
333
|
+
'prindexing.index_failed'?: string;
|
|
334
|
+
'merges.current'?: string;
|
|
335
|
+
mc?: string;
|
|
336
|
+
mergesCurrent?: string;
|
|
337
|
+
'prmerges.current'?: string;
|
|
338
|
+
'merges.current_docs'?: string;
|
|
339
|
+
mcd?: string;
|
|
340
|
+
mergesCurrentDocs?: string;
|
|
341
|
+
'prmerges.current_docs'?: string;
|
|
342
|
+
'merges.current_size'?: string;
|
|
343
|
+
mcs?: string;
|
|
344
|
+
mergesCurrentSize?: string;
|
|
345
|
+
'prmerges.current_size'?: string;
|
|
346
|
+
'merges.total'?: string;
|
|
347
|
+
mt?: string;
|
|
348
|
+
mergesTotal?: string;
|
|
349
|
+
'prmerges.total'?: string;
|
|
350
|
+
'merges.total_docs'?: string;
|
|
351
|
+
mtd?: string;
|
|
352
|
+
mergesTotalDocs?: string;
|
|
353
|
+
'prmerges.total_docs'?: string;
|
|
354
|
+
'merges.total_size'?: string;
|
|
355
|
+
mts?: string;
|
|
356
|
+
mergesTotalSize?: string;
|
|
357
|
+
'prmerges.total_size'?: string;
|
|
358
|
+
'merges.total_time'?: string;
|
|
359
|
+
mtt?: string;
|
|
360
|
+
mergesTotalTime?: string;
|
|
361
|
+
'prmerges.total_time'?: string;
|
|
362
|
+
'refresh.total'?: string;
|
|
363
|
+
rto?: string;
|
|
364
|
+
refreshTotal?: string;
|
|
365
|
+
'prrefresh.total'?: string;
|
|
366
|
+
'refresh.time'?: string;
|
|
367
|
+
rti?: string;
|
|
368
|
+
refreshTime?: string;
|
|
369
|
+
'prrefresh.time'?: string;
|
|
370
|
+
'refresh.external_total'?: string;
|
|
371
|
+
reto?: string;
|
|
372
|
+
'prrefresh.external_total'?: string;
|
|
373
|
+
'refresh.external_time'?: string;
|
|
374
|
+
reti?: string;
|
|
375
|
+
'prrefresh.external_time'?: string;
|
|
376
|
+
'refresh.listeners'?: string;
|
|
377
|
+
rli?: string;
|
|
378
|
+
refreshListeners?: string;
|
|
379
|
+
'prrefresh.listeners'?: string;
|
|
380
|
+
'search.fetch_current'?: string;
|
|
381
|
+
sfc?: string;
|
|
382
|
+
searchFetchCurrent?: string;
|
|
383
|
+
'prsearch.fetch_current'?: string;
|
|
384
|
+
'search.fetch_time'?: string;
|
|
385
|
+
sfti?: string;
|
|
386
|
+
searchFetchTime?: string;
|
|
387
|
+
'prsearch.fetch_time'?: string;
|
|
388
|
+
'search.fetch_total'?: string;
|
|
389
|
+
sfto?: string;
|
|
390
|
+
searchFetchTotal?: string;
|
|
391
|
+
'prsearch.fetch_total'?: string;
|
|
392
|
+
'search.open_contexts'?: string;
|
|
393
|
+
so?: string;
|
|
394
|
+
searchOpenContexts?: string;
|
|
395
|
+
'prsearch.open_contexts'?: string;
|
|
396
|
+
'search.query_current'?: string;
|
|
397
|
+
sqc?: string;
|
|
398
|
+
searchQueryCurrent?: string;
|
|
399
|
+
'prsearch.query_current'?: string;
|
|
400
|
+
'search.query_time'?: string;
|
|
401
|
+
sqti?: string;
|
|
402
|
+
searchQueryTime?: string;
|
|
403
|
+
'prsearch.query_time'?: string;
|
|
404
|
+
'search.query_total'?: string;
|
|
405
|
+
sqto?: string;
|
|
406
|
+
searchQueryTotal?: string;
|
|
407
|
+
'prsearch.query_total'?: string;
|
|
408
|
+
'search.scroll_current'?: string;
|
|
409
|
+
scc?: string;
|
|
410
|
+
searchScrollCurrent?: string;
|
|
411
|
+
'prsearch.scroll_current'?: string;
|
|
412
|
+
'search.scroll_time'?: string;
|
|
413
|
+
scti?: string;
|
|
414
|
+
searchScrollTime?: string;
|
|
415
|
+
'prsearch.scroll_time'?: string;
|
|
416
|
+
'search.scroll_total'?: string;
|
|
417
|
+
scto?: string;
|
|
418
|
+
searchScrollTotal?: string;
|
|
419
|
+
'prsearch.scroll_total'?: string;
|
|
420
|
+
'segments.count'?: string;
|
|
421
|
+
sc?: string;
|
|
422
|
+
segmentsCount?: string;
|
|
423
|
+
'prsegments.count'?: string;
|
|
424
|
+
'segments.memory'?: string;
|
|
425
|
+
sm?: string;
|
|
426
|
+
segmentsMemory?: string;
|
|
427
|
+
'prsegments.memory'?: string;
|
|
428
|
+
'segments.index_writer_memory'?: string;
|
|
429
|
+
siwm?: string;
|
|
430
|
+
segmentsIndexWriterMemory?: string;
|
|
431
|
+
'prsegments.index_writer_memory'?: string;
|
|
432
|
+
'segments.version_map_memory'?: string;
|
|
433
|
+
svmm?: string;
|
|
434
|
+
segmentsVersionMapMemory?: string;
|
|
435
|
+
'prsegments.version_map_memory'?: string;
|
|
436
|
+
'segments.fixed_bitset_memory'?: string;
|
|
437
|
+
sfbm?: string;
|
|
438
|
+
fixedBitsetMemory?: string;
|
|
439
|
+
'prsegments.fixed_bitset_memory'?: string;
|
|
440
|
+
'warmer.current'?: string;
|
|
441
|
+
wc?: string;
|
|
442
|
+
warmerCurrent?: string;
|
|
443
|
+
'prwarmer.current'?: string;
|
|
444
|
+
'warmer.total'?: string;
|
|
445
|
+
wto?: string;
|
|
446
|
+
warmerTotal?: string;
|
|
447
|
+
'prwarmer.total'?: string;
|
|
448
|
+
'warmer.total_time'?: string;
|
|
449
|
+
wtt?: string;
|
|
450
|
+
warmerTotalTime?: string;
|
|
451
|
+
'prwarmer.total_time'?: string;
|
|
452
|
+
'suggest.current'?: string;
|
|
453
|
+
suc?: string;
|
|
454
|
+
suggestCurrent?: string;
|
|
455
|
+
'prsuggest.current'?: string;
|
|
456
|
+
'suggest.time'?: string;
|
|
457
|
+
suti?: string;
|
|
458
|
+
suggestTime?: string;
|
|
459
|
+
'prsuggest.time'?: string;
|
|
460
|
+
'suggest.total'?: string;
|
|
461
|
+
suto?: string;
|
|
462
|
+
suggestTotal?: string;
|
|
463
|
+
'prsuggest.total'?: string;
|
|
464
|
+
'memory.total'?: string;
|
|
465
|
+
tm?: string;
|
|
466
|
+
memoryTotal?: string;
|
|
467
|
+
'prmemory.total'?: string;
|
|
468
|
+
'search.throttled'?: string;
|
|
469
|
+
sth?: string;
|
|
470
|
+
'bulk.total_operations'?: string;
|
|
471
|
+
bto?: string;
|
|
472
|
+
bulkTotalOperation?: string;
|
|
473
|
+
'prbulk.total_operations'?: string;
|
|
474
|
+
'bulk.total_time'?: string;
|
|
475
|
+
btti?: string;
|
|
476
|
+
bulkTotalTime?: string;
|
|
477
|
+
'prbulk.total_time'?: string;
|
|
478
|
+
'bulk.total_size_in_bytes'?: string;
|
|
479
|
+
btsi?: string;
|
|
480
|
+
bulkTotalSizeInBytes?: string;
|
|
481
|
+
'prbulk.total_size_in_bytes'?: string;
|
|
482
|
+
'bulk.avg_time'?: string;
|
|
483
|
+
bati?: string;
|
|
484
|
+
bulkAvgTime?: string;
|
|
485
|
+
'prbulk.avg_time'?: string;
|
|
486
|
+
'bulk.avg_size_in_bytes'?: string;
|
|
487
|
+
basi?: string;
|
|
488
|
+
bulkAvgSizeInBytes?: string;
|
|
489
|
+
'prbulk.avg_size_in_bytes'?: string;
|
|
490
|
+
}
|
|
491
|
+
export interface ClusterHealthShardHealthStats {
|
|
492
|
+
active_shards: number;
|
|
493
|
+
initializing_shards: number;
|
|
494
|
+
primary_active: boolean;
|
|
495
|
+
relocating_shards: number;
|
|
496
|
+
status: Health;
|
|
497
|
+
unassigned_shards: number;
|
|
498
|
+
}
|
|
499
|
+
export interface ClusterHealthIndexHealthStats {
|
|
500
|
+
active_primary_shards: number;
|
|
501
|
+
active_shards: number;
|
|
502
|
+
initializing_shards: number;
|
|
503
|
+
number_of_replicas: number;
|
|
504
|
+
number_of_shards: number;
|
|
505
|
+
relocating_shards: number;
|
|
506
|
+
shards?: Record<string, ClusterHealthShardHealthStats>;
|
|
507
|
+
status: Health;
|
|
508
|
+
unassigned_shards: number;
|
|
509
|
+
}
|
|
510
|
+
export interface IndicesGetFieldMappingTypeFieldMappings {
|
|
511
|
+
mappings: Partial<Record<string, MappingFieldMapping>>;
|
|
512
|
+
}
|
|
513
|
+
export interface MappingFieldMapping {
|
|
514
|
+
full_name: string;
|
|
515
|
+
mapping: Partial<Record<string, MappingProperty>>;
|
|
516
|
+
}
|
|
517
|
+
export interface IndexTemplate {
|
|
518
|
+
name: string;
|
|
519
|
+
index_template: {
|
|
520
|
+
index_patterns: string[];
|
|
521
|
+
settings: {
|
|
522
|
+
index: Record<string, any>;
|
|
523
|
+
};
|
|
524
|
+
mappings: Record<string, any>;
|
|
525
|
+
aliases: Alias;
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
export interface IndicesGetMappingIndexMappingRecord {
|
|
529
|
+
item?: MappingTypeMapping;
|
|
530
|
+
mappings: MappingTypeMapping;
|
|
531
|
+
}
|
|
532
|
+
export interface IndicesIndexState {
|
|
533
|
+
aliases?: Record<string, IndicesAlias>;
|
|
534
|
+
mappings?: MappingTypeMapping;
|
|
535
|
+
settings: IndicesIndexSettings | IndicesIndexStatePrefixedSettings;
|
|
536
|
+
}
|
|
537
|
+
export interface MappingTypeMapping {
|
|
538
|
+
all_field?: MappingAllField;
|
|
539
|
+
date_detection?: boolean;
|
|
540
|
+
dynamic?: boolean | MappingDynamicMapping;
|
|
541
|
+
dynamic_date_formats?: string[];
|
|
542
|
+
dynamic_templates?: Record<string, MappingDynamicTemplate> | Record<string, MappingDynamicTemplate>[];
|
|
543
|
+
_field_names?: {
|
|
544
|
+
enabled: boolean;
|
|
545
|
+
};
|
|
546
|
+
index_field?: {
|
|
547
|
+
enabled: boolean;
|
|
548
|
+
};
|
|
549
|
+
_meta?: Record<string, unknown>;
|
|
550
|
+
numeric_detection?: boolean;
|
|
551
|
+
properties?: Record<string, MappingProperty>;
|
|
552
|
+
_routing?: {
|
|
553
|
+
required: boolean;
|
|
554
|
+
};
|
|
555
|
+
_size?: {
|
|
556
|
+
enabled: boolean;
|
|
557
|
+
};
|
|
558
|
+
_source?: {
|
|
559
|
+
compress?: boolean;
|
|
560
|
+
compress_threshold?: string;
|
|
561
|
+
enabled: boolean;
|
|
562
|
+
excludes?: string[];
|
|
563
|
+
includes?: string[];
|
|
564
|
+
};
|
|
565
|
+
runtime?: Record<string, MappingRuntimeField>;
|
|
566
|
+
}
|
|
567
|
+
export interface MappingRuntimeField {
|
|
568
|
+
format?: string;
|
|
569
|
+
script?: Script;
|
|
570
|
+
type: MappingRuntimeFieldType;
|
|
571
|
+
}
|
|
572
|
+
export declare type MappingRuntimeFieldType = 'boolean' | 'date' | 'number' | 'geo_point' | 'ip' | 'keyword' | 'long';
|
|
573
|
+
export interface MappingDynamicTemplate {
|
|
574
|
+
mapping?: MappingPropertyBase;
|
|
575
|
+
match?: string;
|
|
576
|
+
match_mapping_type?: string;
|
|
577
|
+
match_pattern?: MappingMatchType;
|
|
578
|
+
path_match?: string;
|
|
579
|
+
path_unmatch?: string;
|
|
580
|
+
unmatch?: string;
|
|
581
|
+
}
|
|
582
|
+
export interface MappingPropertyBase {
|
|
583
|
+
local_metadata?: Record<string, any>;
|
|
584
|
+
meta?: Record<string, string>;
|
|
585
|
+
name?: string;
|
|
586
|
+
properties?: Record<string, MappingProperty>;
|
|
587
|
+
ignore_above?: number;
|
|
588
|
+
dynamic?: boolean | MappingDynamicMapping;
|
|
589
|
+
fields?: Record<string, MappingProperty>;
|
|
590
|
+
}
|
|
591
|
+
export declare type MappingProperty = MappingFlattenedProperty | MappingJoinProperty | MappingPercolatorProperty | MappingRankFeatureProperty | MappingRankFeaturesProperty | MappingConstantKeywordProperty | MappingFieldAliasProperty | MappingHistogramProperty | MappingCoreProperty;
|
|
592
|
+
export interface MappingFlattenedProperty extends MappingPropertyBase {
|
|
593
|
+
boost?: number;
|
|
594
|
+
depth_limit?: number;
|
|
595
|
+
doc_values?: boolean;
|
|
596
|
+
eager_global_ordinals?: boolean;
|
|
597
|
+
index?: boolean;
|
|
598
|
+
index_options?: MappingIndexOptions;
|
|
599
|
+
null_value?: string;
|
|
600
|
+
similarity?: string;
|
|
601
|
+
split_queries_on_whitespace?: boolean;
|
|
602
|
+
type: 'flattened';
|
|
603
|
+
}
|
|
604
|
+
export declare type MappingCoreProperty = MappingObjectProperty | MappingNestedProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingDocValuesProperty;
|
|
605
|
+
export declare type MappingDocValuesProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDateProperty | MappingDateNanosProperty | MappingKeywordProperty | MappingNumberProperty | MappingRangeProperty | MappingGeoPointProperty | MappingGeoShapeProperty | MappingCompletionProperty | MappingIpProperty | MappingMurmur3HashProperty | MappingShapeProperty | MappingTokenCountProperty | MappingVersionProperty | MappingWildcardProperty | MappingPointProperty;
|
|
606
|
+
export interface MappingBooleanProperty extends MappingDocValuesPropertyBase {
|
|
607
|
+
boost?: number;
|
|
608
|
+
fielddata?: IndicesNumericFielddata;
|
|
609
|
+
index?: boolean;
|
|
610
|
+
null_value?: boolean;
|
|
611
|
+
type: 'boolean';
|
|
612
|
+
}
|
|
613
|
+
export interface IndicesNumericFielddata {
|
|
614
|
+
format: IndicesNumericFielddataFormat;
|
|
615
|
+
}
|
|
616
|
+
export declare type IndicesNumericFielddataFormat = 'array' | 'disabled';
|
|
617
|
+
export interface MappingPointProperty extends MappingDocValuesPropertyBase {
|
|
618
|
+
ignore_malformed?: boolean;
|
|
619
|
+
ignore_z_value?: boolean;
|
|
620
|
+
null_value?: string;
|
|
621
|
+
type: 'point';
|
|
622
|
+
}
|
|
623
|
+
export interface MappingWildcardProperty extends MappingDocValuesPropertyBase {
|
|
624
|
+
type: 'wildcard';
|
|
625
|
+
null_value?: string;
|
|
626
|
+
}
|
|
627
|
+
export interface MappingVersionProperty extends MappingDocValuesPropertyBase {
|
|
628
|
+
type: 'version';
|
|
629
|
+
}
|
|
630
|
+
export interface MappingTokenCountProperty extends MappingDocValuesPropertyBase {
|
|
631
|
+
analyzer?: string;
|
|
632
|
+
boost?: number;
|
|
633
|
+
index?: boolean;
|
|
634
|
+
null_value?: number;
|
|
635
|
+
enable_position_increments?: boolean;
|
|
636
|
+
type: 'token_count';
|
|
637
|
+
}
|
|
638
|
+
export interface MappingShapeProperty extends MappingDocValuesPropertyBase {
|
|
639
|
+
coerce?: boolean;
|
|
640
|
+
ignore_malformed?: boolean;
|
|
641
|
+
ignore_z_value?: boolean;
|
|
642
|
+
orientation?: MappingGeoOrientation;
|
|
643
|
+
type: 'shape';
|
|
644
|
+
}
|
|
645
|
+
export declare type MappingGeoOrientation = 'right' | 'RIGHT' | 'counterclockwise' | 'ccw' | 'left' | 'LEFT' | 'clockwise' | 'cw';
|
|
646
|
+
export interface MappingMurmur3HashProperty extends MappingDocValuesPropertyBase {
|
|
647
|
+
type: 'murmur3';
|
|
648
|
+
}
|
|
649
|
+
export interface MappingIpProperty extends MappingDocValuesPropertyBase {
|
|
650
|
+
boost?: number;
|
|
651
|
+
index?: boolean;
|
|
652
|
+
null_value?: string;
|
|
653
|
+
ignore_malformed?: boolean;
|
|
654
|
+
type: 'ip';
|
|
655
|
+
}
|
|
656
|
+
export interface MappingCompletionProperty extends MappingDocValuesPropertyBase {
|
|
657
|
+
analyzer?: string;
|
|
658
|
+
contexts?: MappingSuggestContext[];
|
|
659
|
+
max_input_length?: number;
|
|
660
|
+
preserve_position_increments?: boolean;
|
|
661
|
+
preserve_separators?: boolean;
|
|
662
|
+
search_analyzer?: string;
|
|
663
|
+
type: 'completion';
|
|
664
|
+
}
|
|
665
|
+
export interface MappingSuggestContext {
|
|
666
|
+
name: string;
|
|
667
|
+
path?: string;
|
|
668
|
+
type: string;
|
|
669
|
+
precision?: number | string;
|
|
670
|
+
}
|
|
671
|
+
export declare type MappingGeoStrategy = 'recursive' | 'term';
|
|
672
|
+
export interface MappingGeoShapeProperty extends MappingDocValuesPropertyBase {
|
|
673
|
+
coerce?: boolean;
|
|
674
|
+
ignore_malformed?: boolean;
|
|
675
|
+
ignore_z_value?: boolean;
|
|
676
|
+
orientation?: MappingGeoOrientation;
|
|
677
|
+
strategy?: MappingGeoStrategy;
|
|
678
|
+
type: 'geo_shape';
|
|
679
|
+
}
|
|
680
|
+
export interface MappingGeoPointProperty extends MappingDocValuesPropertyBase {
|
|
681
|
+
ignore_malformed?: boolean;
|
|
682
|
+
ignore_z_value?: boolean;
|
|
683
|
+
null_value?: GeoLocation;
|
|
684
|
+
type: 'geo_point';
|
|
685
|
+
}
|
|
686
|
+
export declare type GeoLocation = LatLonGeoLocation | GeoHashLocation | number[] | string;
|
|
687
|
+
export interface LatLonGeoLocation {
|
|
688
|
+
lat: number;
|
|
689
|
+
lon: number;
|
|
690
|
+
}
|
|
691
|
+
export declare type GeoHash = string;
|
|
692
|
+
export interface GeoHashLocation {
|
|
693
|
+
geohash: GeoHash;
|
|
694
|
+
}
|
|
695
|
+
export interface MappingLongRangeProperty extends MappingRangePropertyBase {
|
|
696
|
+
type: 'long_range';
|
|
697
|
+
}
|
|
698
|
+
export interface MappingIpRangeProperty extends MappingRangePropertyBase {
|
|
699
|
+
type: 'ip_range';
|
|
700
|
+
}
|
|
701
|
+
export interface MappingRangePropertyBase extends MappingDocValuesPropertyBase {
|
|
702
|
+
boost?: number;
|
|
703
|
+
coerce?: boolean;
|
|
704
|
+
index?: boolean;
|
|
705
|
+
}
|
|
706
|
+
export interface MappingIntegerRangeProperty extends MappingRangePropertyBase {
|
|
707
|
+
type: 'integer_range';
|
|
708
|
+
}
|
|
709
|
+
export interface MappingDoubleRangeProperty extends MappingRangePropertyBase {
|
|
710
|
+
type: 'double_range';
|
|
711
|
+
}
|
|
712
|
+
export declare type MappingRangeProperty = MappingLongRangeProperty | MappingIpRangeProperty | MappingIntegerRangeProperty | MappingFloatRangeProperty | MappingDoubleRangeProperty | MappingDateRangeProperty;
|
|
713
|
+
export declare type MappingNumberProperty = MappingFloatNumberProperty | MappingHalfFloatNumberProperty | MappingDoubleNumberProperty | MappingIntegerNumberProperty | MappingLongNumberProperty | MappingShortNumberProperty | MappingByteNumberProperty | MappingUnsignedLongNumberProperty | MappingScaledFloatNumberProperty;
|
|
714
|
+
export interface MappingFloatNumberProperty extends MappingStandardNumberProperty {
|
|
715
|
+
type: 'float';
|
|
716
|
+
null_value?: number;
|
|
717
|
+
}
|
|
718
|
+
export interface MappingNumberPropertyBase extends MappingDocValuesPropertyBase {
|
|
719
|
+
index?: boolean;
|
|
720
|
+
ignore_malformed?: boolean;
|
|
721
|
+
time_series_metric?: MappingTimeSeriesMetricType;
|
|
722
|
+
}
|
|
723
|
+
export declare type MappingTimeSeriesMetricType = 'gauge' | 'counter' | 'summary' | 'histogram';
|
|
724
|
+
export interface MappingStandardNumberProperty extends MappingNumberPropertyBase {
|
|
725
|
+
coerce?: boolean;
|
|
726
|
+
script?: Script;
|
|
727
|
+
on_script_error?: MappingOnScriptError;
|
|
728
|
+
}
|
|
729
|
+
export declare type MappingOnScriptError = 'fail' | 'continue';
|
|
730
|
+
export interface MappingScaledFloatNumberProperty extends MappingNumberPropertyBase {
|
|
731
|
+
type: 'scaled_float';
|
|
732
|
+
coerce?: boolean;
|
|
733
|
+
null_value?: number;
|
|
734
|
+
scaling_factor?: number;
|
|
735
|
+
}
|
|
736
|
+
export interface MappingUnsignedLongNumberProperty extends MappingNumberPropertyBase {
|
|
737
|
+
type: 'unsigned_long';
|
|
738
|
+
null_value?: number;
|
|
739
|
+
}
|
|
740
|
+
export interface MappingByteNumberProperty extends MappingStandardNumberProperty {
|
|
741
|
+
type: 'byte';
|
|
742
|
+
null_value?: number;
|
|
743
|
+
}
|
|
744
|
+
export interface MappingShortNumberProperty extends MappingStandardNumberProperty {
|
|
745
|
+
type: 'short';
|
|
746
|
+
null_value?: number;
|
|
747
|
+
}
|
|
748
|
+
export interface MappingLongNumberProperty extends MappingStandardNumberProperty {
|
|
749
|
+
type: 'long';
|
|
750
|
+
null_value?: number;
|
|
751
|
+
}
|
|
752
|
+
export interface MappingIntegerNumberProperty extends MappingStandardNumberProperty {
|
|
753
|
+
type: 'integer';
|
|
754
|
+
null_value?: number;
|
|
755
|
+
}
|
|
756
|
+
export interface MappingDoubleNumberProperty extends MappingStandardNumberProperty {
|
|
757
|
+
type: 'double';
|
|
758
|
+
null_value?: number;
|
|
759
|
+
}
|
|
760
|
+
export interface MappingHalfFloatNumberProperty extends MappingStandardNumberProperty {
|
|
761
|
+
type: 'half_float';
|
|
762
|
+
null_value?: number;
|
|
763
|
+
}
|
|
764
|
+
export interface MappingKeywordProperty extends MappingDocValuesPropertyBase {
|
|
765
|
+
boost?: number;
|
|
766
|
+
eager_global_ordinals?: boolean;
|
|
767
|
+
index?: boolean;
|
|
768
|
+
index_options?: MappingIndexOptions;
|
|
769
|
+
normalizer?: string;
|
|
770
|
+
norms?: boolean;
|
|
771
|
+
null_value?: string;
|
|
772
|
+
split_queries_on_whitespace?: boolean;
|
|
773
|
+
time_series_dimension?: boolean;
|
|
774
|
+
type: 'keyword';
|
|
775
|
+
}
|
|
776
|
+
export interface MappingDateNanosProperty extends MappingDocValuesPropertyBase {
|
|
777
|
+
boost?: number;
|
|
778
|
+
format?: string;
|
|
779
|
+
ignore_malformed?: boolean;
|
|
780
|
+
index?: boolean;
|
|
781
|
+
null_value?: string;
|
|
782
|
+
precision_step?: number;
|
|
783
|
+
type: 'date_nanos';
|
|
784
|
+
}
|
|
785
|
+
export interface MappingDateProperty extends MappingDocValuesPropertyBase {
|
|
786
|
+
boost?: number;
|
|
787
|
+
fielddata?: IndicesNumericFielddata;
|
|
788
|
+
format?: string;
|
|
789
|
+
ignore_malformed?: boolean;
|
|
790
|
+
index?: boolean;
|
|
791
|
+
null_value?: string;
|
|
792
|
+
precision_step?: number;
|
|
793
|
+
locale?: string;
|
|
794
|
+
type: 'date';
|
|
795
|
+
}
|
|
796
|
+
export interface MappingDateRangeProperty extends MappingRangePropertyBase {
|
|
797
|
+
format?: string;
|
|
798
|
+
type: 'date_range';
|
|
799
|
+
}
|
|
800
|
+
export interface MappingBinaryProperty extends MappingDocValuesPropertyBase {
|
|
801
|
+
type: 'binary';
|
|
802
|
+
}
|
|
803
|
+
export interface MappingObjectProperty extends MappingCorePropertyBase {
|
|
804
|
+
enabled?: boolean;
|
|
805
|
+
type?: 'object';
|
|
806
|
+
}
|
|
807
|
+
export interface MappingDocValuesPropertyBase extends MappingCorePropertyBase {
|
|
808
|
+
doc_values?: boolean;
|
|
809
|
+
}
|
|
810
|
+
export interface MappingTextProperty extends MappingCorePropertyBase {
|
|
811
|
+
analyzer?: string;
|
|
812
|
+
boost?: number;
|
|
813
|
+
eager_global_ordinals?: boolean;
|
|
814
|
+
fielddata?: boolean;
|
|
815
|
+
fielddata_frequency_filter?: IndicesFielddataFrequencyFilter;
|
|
816
|
+
index?: boolean;
|
|
817
|
+
index_options?: MappingIndexOptions;
|
|
818
|
+
index_phrases?: boolean;
|
|
819
|
+
index_prefixes?: MappingTextIndexPrefixes;
|
|
820
|
+
norms?: boolean;
|
|
821
|
+
position_increment_gap?: number;
|
|
822
|
+
search_analyzer?: string;
|
|
823
|
+
search_quote_analyzer?: string;
|
|
824
|
+
term_vector?: MappingTermVectorOption;
|
|
825
|
+
type: 'text';
|
|
826
|
+
}
|
|
827
|
+
export declare type MappingTermVectorOption = 'no' | 'yes' | 'with_offsets' | 'with_positions' | 'with_positions_offsets' | 'with_positions_offsets_payloads' | 'with_positions_payloads';
|
|
828
|
+
export interface MappingTextIndexPrefixes {
|
|
829
|
+
max_chars: number;
|
|
830
|
+
min_chars: number;
|
|
831
|
+
}
|
|
832
|
+
export interface IndicesFielddataFrequencyFilter {
|
|
833
|
+
max: number;
|
|
834
|
+
min: number;
|
|
835
|
+
min_segment_size: number;
|
|
836
|
+
}
|
|
837
|
+
export interface MappingSearchAsYouTypeProperty extends MappingCorePropertyBase {
|
|
838
|
+
analyzer?: string;
|
|
839
|
+
index?: boolean;
|
|
840
|
+
index_options?: MappingIndexOptions;
|
|
841
|
+
max_shingle_size?: number;
|
|
842
|
+
norms?: boolean;
|
|
843
|
+
search_analyzer?: string;
|
|
844
|
+
search_quote_analyzer?: string;
|
|
845
|
+
term_vector?: MappingTermVectorOption;
|
|
846
|
+
type: 'search_as_you_type';
|
|
847
|
+
}
|
|
848
|
+
export interface MappingCorePropertyBase extends MappingPropertyBase {
|
|
849
|
+
copy_to?: string | string[];
|
|
850
|
+
similarity?: string;
|
|
851
|
+
store?: boolean;
|
|
852
|
+
}
|
|
853
|
+
export declare type MappingIndexOptions = 'docs' | 'freqs' | 'positions' | 'offsets';
|
|
854
|
+
export interface MappingNestedProperty extends MappingCorePropertyBase {
|
|
855
|
+
enabled?: boolean;
|
|
856
|
+
include_in_parent?: boolean;
|
|
857
|
+
include_in_root?: boolean;
|
|
858
|
+
type: 'nested';
|
|
859
|
+
}
|
|
860
|
+
export interface MappingHistogramProperty extends MappingPropertyBase {
|
|
861
|
+
ignore_malformed?: boolean;
|
|
862
|
+
type: 'histogram';
|
|
863
|
+
}
|
|
864
|
+
export interface MappingFieldAliasProperty extends MappingPropertyBase {
|
|
865
|
+
path?: string;
|
|
866
|
+
type: 'alias';
|
|
867
|
+
}
|
|
868
|
+
export interface MappingConstantKeywordProperty extends MappingPropertyBase {
|
|
869
|
+
value?: any;
|
|
870
|
+
type: 'constant_keyword';
|
|
871
|
+
}
|
|
872
|
+
export interface MappingRankFeatureProperty extends MappingPropertyBase {
|
|
873
|
+
positive_score_impact?: boolean;
|
|
874
|
+
type: 'rank_feature';
|
|
875
|
+
}
|
|
876
|
+
export interface MappingRankFeaturesProperty extends MappingPropertyBase {
|
|
877
|
+
type: 'rank_features';
|
|
878
|
+
}
|
|
879
|
+
export interface MappingPercolatorProperty extends MappingPropertyBase {
|
|
880
|
+
type: 'percolator';
|
|
881
|
+
}
|
|
882
|
+
export interface MappingJoinProperty extends MappingPropertyBase {
|
|
883
|
+
relations?: Record<string, string | string[]>;
|
|
884
|
+
type: 'join';
|
|
885
|
+
}
|
|
886
|
+
export interface MappingFloatRangeProperty extends MappingRangePropertyBase {
|
|
887
|
+
type: 'float_range';
|
|
888
|
+
}
|
|
889
|
+
export declare type MappingMatchType = 'simple' | 'regex';
|
|
890
|
+
export declare type MappingDynamicMapping = 'strict' | 'runtime' | 'true' | 'false';
|
|
891
|
+
export interface MappingAllField {
|
|
892
|
+
analyzer: string;
|
|
893
|
+
enabled: boolean;
|
|
894
|
+
omit_norms: boolean;
|
|
895
|
+
search_analyzer: string;
|
|
896
|
+
similarity: string;
|
|
897
|
+
store: boolean;
|
|
898
|
+
store_term_vector_offsets: boolean;
|
|
899
|
+
store_term_vector_payloads: boolean;
|
|
900
|
+
store_term_vector_positions: boolean;
|
|
901
|
+
store_term_vectors: boolean;
|
|
902
|
+
}
|
|
903
|
+
export interface IndicesAlias {
|
|
904
|
+
filter?: Record<string, any>;
|
|
905
|
+
index_routing?: string;
|
|
906
|
+
is_hidden?: boolean;
|
|
907
|
+
is_write_index?: boolean;
|
|
908
|
+
routing?: string;
|
|
909
|
+
search_routing?: string;
|
|
910
|
+
}
|
|
911
|
+
export interface IndicesIndexStatePrefixedSettings {
|
|
912
|
+
index: IndicesIndexSettings;
|
|
913
|
+
}
|
|
914
|
+
export interface TemplateBody extends IndexTemplateProperties {
|
|
915
|
+
version?: number;
|
|
916
|
+
order?: number;
|
|
917
|
+
}
|
|
918
|
+
export declare type MappingRuntimeFields = Record<string, MappingRuntimeField>;
|
|
919
|
+
export interface MappingRoutingField {
|
|
920
|
+
required: boolean;
|
|
921
|
+
}
|
|
922
|
+
export interface MappingSourceField {
|
|
923
|
+
compress?: boolean;
|
|
924
|
+
compress_threshold?: string;
|
|
925
|
+
enabled: boolean;
|
|
926
|
+
excludes?: string[];
|
|
927
|
+
includes?: string[];
|
|
928
|
+
}
|
|
929
|
+
export interface MappingSizeField {
|
|
930
|
+
enabled: boolean;
|
|
931
|
+
}
|
|
932
|
+
export interface MappingIndexField {
|
|
933
|
+
enabled: boolean;
|
|
934
|
+
}
|
|
935
|
+
export interface MappingFieldNamesField {
|
|
936
|
+
enabled: boolean;
|
|
937
|
+
}
|
|
938
|
+
export interface IndicesResponseBase {
|
|
939
|
+
_shards?: ShardStatistics;
|
|
940
|
+
acknowledged: boolean;
|
|
941
|
+
}
|
|
942
|
+
export interface IndicesPutMappingTypeFieldMappings {
|
|
943
|
+
mappings: Partial<Record<string, MappingFieldMapping>>;
|
|
944
|
+
}
|
|
945
|
+
export interface IndicesPutSettingsIndexSettingsBody extends IndicesIndexSettings {
|
|
946
|
+
settings?: IndicesIndexSettings;
|
|
947
|
+
}
|
|
948
|
+
export declare type IndicesIndexCheckOnStartup = 'false' | 'checksum' | 'true';
|
|
949
|
+
export interface IndicesIndexSettings {
|
|
950
|
+
number_of_shards?: number | string;
|
|
951
|
+
'index.number_of_shards'?: number | string;
|
|
952
|
+
number_of_replicas?: number | string;
|
|
953
|
+
'index.number_of_replicas'?: number | string;
|
|
954
|
+
number_of_routing_shards?: number;
|
|
955
|
+
'index.number_of_routing_shards'?: number;
|
|
956
|
+
check_on_startup?: IndicesIndexCheckOnStartup;
|
|
957
|
+
'index.check_on_startup'?: IndicesIndexCheckOnStartup;
|
|
958
|
+
codec?: string;
|
|
959
|
+
'index.codec'?: string;
|
|
960
|
+
routing_partition_size?: number | string;
|
|
961
|
+
'index.routing_partition_size'?: number | string;
|
|
962
|
+
'soft_deletes.retention_lease.period'?: number | string;
|
|
963
|
+
'index.soft_deletes.retention_lease.period'?: number | string;
|
|
964
|
+
load_fixed_bitset_filters_eagerly?: boolean;
|
|
965
|
+
'index.load_fixed_bitset_filters_eagerly'?: boolean;
|
|
966
|
+
hidden?: boolean | string;
|
|
967
|
+
'index.hidden'?: boolean | string;
|
|
968
|
+
auto_expand_replicas?: string;
|
|
969
|
+
'index.auto_expand_replicas'?: string;
|
|
970
|
+
'search.idle.after'?: number | string;
|
|
971
|
+
'index.search.idle.after'?: number | string;
|
|
972
|
+
refresh_interval?: number | string;
|
|
973
|
+
'index.refresh_interval'?: number | string;
|
|
974
|
+
max_result_window?: number;
|
|
975
|
+
'index.max_result_window'?: number;
|
|
976
|
+
max_inner_result_window?: number;
|
|
977
|
+
'index.max_inner_result_window'?: number;
|
|
978
|
+
max_rescore_window?: number;
|
|
979
|
+
'index.max_rescore_window'?: number;
|
|
980
|
+
max_docvalue_fields_search?: number;
|
|
981
|
+
'index.max_docvalue_fields_search'?: number;
|
|
982
|
+
max_script_fields?: number;
|
|
983
|
+
'index.max_script_fields'?: number;
|
|
984
|
+
max_ngram_diff?: number;
|
|
985
|
+
'index.max_ngram_diff'?: number;
|
|
986
|
+
max_shingle_diff?: number;
|
|
987
|
+
'index.max_shingle_diff'?: number;
|
|
988
|
+
blocks?: IndicesIndexSettingBlocks;
|
|
989
|
+
'index.blocks'?: IndicesIndexSettingBlocks;
|
|
990
|
+
max_refresh_listeners?: number;
|
|
991
|
+
'index.max_refresh_listeners'?: number;
|
|
992
|
+
'analyze.max_token_count'?: number;
|
|
993
|
+
'index.analyze.max_token_count'?: number;
|
|
994
|
+
'highlight.max_analyzed_offset'?: number;
|
|
995
|
+
'index.highlight.max_analyzed_offset'?: number;
|
|
996
|
+
max_terms_count?: number;
|
|
997
|
+
'index.max_terms_count'?: number;
|
|
998
|
+
max_regex_length?: number;
|
|
999
|
+
'index.max_regex_length'?: number;
|
|
1000
|
+
routing?: IndicesIndexRouting;
|
|
1001
|
+
'index.routing'?: IndicesIndexRouting;
|
|
1002
|
+
gc_deletes?: number | string;
|
|
1003
|
+
'index.gc_deletes'?: number | string;
|
|
1004
|
+
default_pipeline?: string;
|
|
1005
|
+
'index.default_pipeline'?: string;
|
|
1006
|
+
final_pipeline?: string;
|
|
1007
|
+
'index.final_pipeline'?: string;
|
|
1008
|
+
lifecycle?: IndicesIndexSettingsLifecycle;
|
|
1009
|
+
'index.lifecycle'?: IndicesIndexSettingsLifecycle;
|
|
1010
|
+
provided_name?: string;
|
|
1011
|
+
'index.provided_name'?: string;
|
|
1012
|
+
creation_date?: string;
|
|
1013
|
+
'index.creation_date'?: string;
|
|
1014
|
+
uuid?: string;
|
|
1015
|
+
'index.uuid'?: string;
|
|
1016
|
+
version?: IndicesIndexVersioning;
|
|
1017
|
+
'index.version'?: IndicesIndexVersioning;
|
|
1018
|
+
verified_before_close?: boolean | string;
|
|
1019
|
+
'index.verified_before_close'?: boolean | string;
|
|
1020
|
+
format?: string | number;
|
|
1021
|
+
'index.format'?: string | number;
|
|
1022
|
+
max_slices_per_scroll?: number;
|
|
1023
|
+
'index.max_slices_per_scroll'?: number;
|
|
1024
|
+
'translog.durability'?: string;
|
|
1025
|
+
'index.translog.durability'?: string;
|
|
1026
|
+
'query_string.lenient'?: boolean | string;
|
|
1027
|
+
'index.query_string.lenient'?: boolean | string;
|
|
1028
|
+
priority?: number | string;
|
|
1029
|
+
'index.priority'?: number | string;
|
|
1030
|
+
top_metrics_max_size?: number;
|
|
1031
|
+
analysis?: IndicesIndexSettingsAnalysis;
|
|
1032
|
+
}
|
|
1033
|
+
export interface IndicesIndexSettingsLifecycle {
|
|
1034
|
+
name: string;
|
|
1035
|
+
}
|
|
1036
|
+
export interface IndicesIndexVersioning {
|
|
1037
|
+
created: string;
|
|
1038
|
+
}
|
|
1039
|
+
export interface IndicesIndexSettingBlocks {
|
|
1040
|
+
read_only?: boolean;
|
|
1041
|
+
'index.blocks.read_only'?: boolean;
|
|
1042
|
+
read_only_allow_delete?: boolean;
|
|
1043
|
+
'index.blocks.read_only_allow_delete'?: boolean;
|
|
1044
|
+
read?: boolean;
|
|
1045
|
+
'index.blocks.read'?: boolean;
|
|
1046
|
+
write?: boolean | string;
|
|
1047
|
+
'index.blocks.write'?: boolean | string;
|
|
1048
|
+
metadata?: boolean;
|
|
1049
|
+
'index.blocks.metadata'?: boolean;
|
|
1050
|
+
}
|
|
1051
|
+
export interface IndicesIndexSettingsAnalysis {
|
|
1052
|
+
char_filter?: Record<string, AnalysisCharFilter>;
|
|
1053
|
+
}
|
|
1054
|
+
export declare type AnalysisCharFilter = AnalysisHtmlStripCharFilter | AnalysisMappingCharFilter | AnalysisPatternReplaceTokenFilter;
|
|
1055
|
+
export declare type AnalysisHtmlStripCharFilter = AnalysisCharFilterBase;
|
|
1056
|
+
export interface AnalysisMappingCharFilter extends AnalysisCharFilterBase {
|
|
1057
|
+
mappings: string[];
|
|
1058
|
+
mappings_path: string;
|
|
1059
|
+
}
|
|
1060
|
+
export interface AnalysisPatternReplaceTokenFilter extends AnalysisTokenFilterBase {
|
|
1061
|
+
flags: string;
|
|
1062
|
+
pattern: string;
|
|
1063
|
+
replacement: string;
|
|
1064
|
+
}
|
|
1065
|
+
export interface AnalysisTokenFilterBase {
|
|
1066
|
+
type: string;
|
|
1067
|
+
version?: string;
|
|
1068
|
+
}
|
|
1069
|
+
export interface AnalysisCharFilterBase {
|
|
1070
|
+
type: string;
|
|
1071
|
+
version?: string;
|
|
1072
|
+
}
|
|
1073
|
+
export interface DictionaryResponseBase<TValue = unknown> {
|
|
1074
|
+
[key: string]: TValue;
|
|
1075
|
+
}
|
|
1076
|
+
export interface IndicesRecoveryRecoveryStatus {
|
|
1077
|
+
shards: IndicesRecoveryShardRecovery[];
|
|
1078
|
+
}
|
|
1079
|
+
export interface IndicesRecoveryRecoveryBytes {
|
|
1080
|
+
percent: string | number;
|
|
1081
|
+
recovered?: string | number;
|
|
1082
|
+
recovered_in_bytes: string | number;
|
|
1083
|
+
reused?: string | number;
|
|
1084
|
+
reused_in_bytes: string | number;
|
|
1085
|
+
total?: string | number;
|
|
1086
|
+
total_in_bytes: string | number;
|
|
1087
|
+
}
|
|
1088
|
+
export interface IndicesRecoveryRecoveryFiles {
|
|
1089
|
+
details?: IndicesRecoveryFileDetails[];
|
|
1090
|
+
percent: string | number;
|
|
1091
|
+
recovered: number;
|
|
1092
|
+
reused: number;
|
|
1093
|
+
total: number;
|
|
1094
|
+
}
|
|
1095
|
+
export interface IndicesRecoveryFileDetails {
|
|
1096
|
+
length: number;
|
|
1097
|
+
name: string;
|
|
1098
|
+
recovered: number;
|
|
1099
|
+
}
|
|
1100
|
+
export interface IndicesRecoveryRecoveryIndexStatus {
|
|
1101
|
+
bytes?: IndicesRecoveryRecoveryBytes;
|
|
1102
|
+
files: IndicesRecoveryRecoveryFiles;
|
|
1103
|
+
size: IndicesRecoveryRecoveryBytes;
|
|
1104
|
+
source_throttle_time?: string | number;
|
|
1105
|
+
source_throttle_time_in_millis: string | number;
|
|
1106
|
+
target_throttle_time?: string | number;
|
|
1107
|
+
target_throttle_time_in_millis: string | number;
|
|
1108
|
+
total_time_in_millis: string | number;
|
|
1109
|
+
total_time?: string | number;
|
|
1110
|
+
}
|
|
1111
|
+
export interface IndicesRecoveryShardRecovery {
|
|
1112
|
+
id: number;
|
|
1113
|
+
index: IndicesRecoveryRecoveryIndexStatus;
|
|
1114
|
+
primary: boolean;
|
|
1115
|
+
source: IndicesRecoveryRecoveryOrigin;
|
|
1116
|
+
stage: string;
|
|
1117
|
+
start?: IndicesRecoveryRecoveryStartStatus;
|
|
1118
|
+
start_time?: string;
|
|
1119
|
+
start_time_in_millis: string | number;
|
|
1120
|
+
stop_time?: string;
|
|
1121
|
+
stop_time_in_millis: string | number;
|
|
1122
|
+
target: IndicesRecoveryRecoveryOrigin;
|
|
1123
|
+
total_time?: string;
|
|
1124
|
+
total_time_in_millis: string | number;
|
|
1125
|
+
translog: IndicesRecoveryTranslogStatus;
|
|
1126
|
+
type: string;
|
|
1127
|
+
verify_index: IndicesRecoveryVerifyIndex;
|
|
1128
|
+
}
|
|
1129
|
+
export interface IndicesRecoveryRecoveryOrigin {
|
|
1130
|
+
hoststring?: string;
|
|
1131
|
+
host?: string;
|
|
1132
|
+
transport_address?: string;
|
|
1133
|
+
id?: string;
|
|
1134
|
+
ip?: string;
|
|
1135
|
+
string?: string;
|
|
1136
|
+
bootstrap_new_history_string?: boolean;
|
|
1137
|
+
repository?: string;
|
|
1138
|
+
snapshot?: string;
|
|
1139
|
+
version?: string;
|
|
1140
|
+
restorestring?: string;
|
|
1141
|
+
index?: string;
|
|
1142
|
+
}
|
|
1143
|
+
export interface IndicesRecoveryVerifyIndex {
|
|
1144
|
+
check_index_time?: string | number;
|
|
1145
|
+
check_index_time_in_millis: string | number;
|
|
1146
|
+
total_time?: string | number;
|
|
1147
|
+
total_time_in_millis: string | number;
|
|
1148
|
+
}
|
|
1149
|
+
export interface IndicesRecoveryTranslogStatus {
|
|
1150
|
+
percent: string | number;
|
|
1151
|
+
recovered: number;
|
|
1152
|
+
total: number;
|
|
1153
|
+
total_on_start: number;
|
|
1154
|
+
total_time?: string;
|
|
1155
|
+
total_time_in_millis: string | number;
|
|
1156
|
+
}
|
|
1157
|
+
export interface IndicesRecoveryRecoveryStartStatus {
|
|
1158
|
+
check_index_time: number;
|
|
1159
|
+
total_time_in_millis: string;
|
|
1160
|
+
}
|
|
1161
|
+
export interface IndicesValidateQueryIndicesValidationExplanation {
|
|
1162
|
+
error?: string;
|
|
1163
|
+
explanation?: string;
|
|
1164
|
+
index: string;
|
|
1165
|
+
valid: boolean;
|
|
1166
|
+
}
|
|
1167
|
+
export interface MSearchHeader {
|
|
1168
|
+
type?: string;
|
|
1169
|
+
allow_no_indices?: boolean;
|
|
1170
|
+
expand_wildcards?: ExpandWildcards;
|
|
1171
|
+
ignore_unavailable?: boolean;
|
|
1172
|
+
index?: string | string[];
|
|
1173
|
+
preference?: string;
|
|
1174
|
+
request_cache?: boolean;
|
|
1175
|
+
routing?: string;
|
|
1176
|
+
search_type?: SearchTypes;
|
|
1177
|
+
}
|
|
1178
|
+
export interface MSearchBody {
|
|
1179
|
+
track_total_hits?: boolean | number;
|
|
1180
|
+
query: Record<string, any>;
|
|
1181
|
+
from?: number;
|
|
1182
|
+
size?: number;
|
|
1183
|
+
}
|
|
1184
|
+
export interface IndividualResponse<T> extends SearchRecordResponse<T> {
|
|
1185
|
+
status: number;
|
|
1186
|
+
}
|
|
1187
|
+
export interface SearchRecordResponse<T = Record<string, unknown>> {
|
|
1188
|
+
took: number;
|
|
1189
|
+
timed_out: boolean;
|
|
1190
|
+
_scroll_id?: string;
|
|
1191
|
+
terminated_early?: boolean;
|
|
1192
|
+
max_score?: number;
|
|
1193
|
+
fields?: Record<string, any>;
|
|
1194
|
+
aggregations?: SearchAggregations;
|
|
1195
|
+
_shards: {
|
|
1196
|
+
total: number;
|
|
1197
|
+
successful: number;
|
|
1198
|
+
skipped: number;
|
|
1199
|
+
failed: number;
|
|
1200
|
+
};
|
|
1201
|
+
hits: {
|
|
1202
|
+
total: number | HitsTotal;
|
|
1203
|
+
max_score: number;
|
|
1204
|
+
hits: SearchResult<T>[];
|
|
1205
|
+
};
|
|
1206
|
+
}
|
|
1207
|
+
export declare type SearchAggregations = Record<string, AggregationsAggregate>;
|
|
1208
|
+
export interface NodesInfoNodeInfoHttp {
|
|
1209
|
+
bound_address: string[];
|
|
1210
|
+
max_content_length?: number | string;
|
|
1211
|
+
max_content_length_in_bytes: number;
|
|
1212
|
+
publish_address: string;
|
|
1213
|
+
}
|
|
1214
|
+
export interface NodesInfoNodeInfoJvmMemory {
|
|
1215
|
+
direct_max?: number | string;
|
|
1216
|
+
direct_max_in_bytes: number;
|
|
1217
|
+
heap_init?: number | string;
|
|
1218
|
+
heap_init_in_bytes: number;
|
|
1219
|
+
heap_max?: number | string;
|
|
1220
|
+
heap_max_in_bytes: number;
|
|
1221
|
+
non_heap_init?: number | string;
|
|
1222
|
+
non_heap_init_in_bytes: number;
|
|
1223
|
+
non_heap_max?: number | string;
|
|
1224
|
+
non_heap_max_in_bytes: number;
|
|
1225
|
+
}
|
|
1226
|
+
export interface NodesInfoNodeJvmInfo {
|
|
1227
|
+
gc_collectors: string[];
|
|
1228
|
+
mem: NodesInfoNodeInfoJvmMemory;
|
|
1229
|
+
memory_pools: string[];
|
|
1230
|
+
pid: number;
|
|
1231
|
+
start_time_in_millis: number;
|
|
1232
|
+
version: string;
|
|
1233
|
+
vm_name: string;
|
|
1234
|
+
vm_vendor: string;
|
|
1235
|
+
vm_version: string;
|
|
1236
|
+
bundled_jdk: boolean;
|
|
1237
|
+
using_bundled_jdk: boolean;
|
|
1238
|
+
using_compressed_ordinary_object_pointers?: boolean | string;
|
|
1239
|
+
input_arguments: string[];
|
|
1240
|
+
}
|
|
1241
|
+
export interface NodesInfoNodeInfoNetwork {
|
|
1242
|
+
primary_interface: NodesInfoNodeInfoNetworkInterface;
|
|
1243
|
+
refresh_interval: number;
|
|
1244
|
+
}
|
|
1245
|
+
export interface NodesInfoNodeInfoNetworkInterface {
|
|
1246
|
+
address: string;
|
|
1247
|
+
mac_address: string;
|
|
1248
|
+
name: string;
|
|
1249
|
+
}
|
|
1250
|
+
export interface NodesInfoNodeOperatingSystemInfo {
|
|
1251
|
+
arch: string;
|
|
1252
|
+
available_processors: number;
|
|
1253
|
+
allocated_processors?: number;
|
|
1254
|
+
name: string;
|
|
1255
|
+
pretty_name: string;
|
|
1256
|
+
refresh_interval_in_millis: number;
|
|
1257
|
+
version: string;
|
|
1258
|
+
cpu?: NodesInfoNodeInfoOSCPU;
|
|
1259
|
+
mem?: NodesInfoNodeInfoMemory;
|
|
1260
|
+
swap?: NodesInfoNodeInfoMemory;
|
|
1261
|
+
}
|
|
1262
|
+
export interface NodesInfoNodeInfoMemory {
|
|
1263
|
+
total: string;
|
|
1264
|
+
total_in_bytes: number;
|
|
1265
|
+
}
|
|
1266
|
+
export interface NodesInfoNodeInfoOSCPU {
|
|
1267
|
+
cache_size: string;
|
|
1268
|
+
cache_size_in_bytes: number;
|
|
1269
|
+
cores_per_socket: number;
|
|
1270
|
+
mhz: number;
|
|
1271
|
+
model: string;
|
|
1272
|
+
total_cores: number;
|
|
1273
|
+
total_sockets: number;
|
|
1274
|
+
vendor: string;
|
|
1275
|
+
}
|
|
1276
|
+
export interface NodesInfoNodeProcessInfo {
|
|
1277
|
+
id: number;
|
|
1278
|
+
mlockall: boolean;
|
|
1279
|
+
refresh_interval_in_millis: number;
|
|
1280
|
+
}
|
|
1281
|
+
export interface NodesInfoNodeThreadPoolInfo {
|
|
1282
|
+
core?: number;
|
|
1283
|
+
keep_alive?: string;
|
|
1284
|
+
max?: number;
|
|
1285
|
+
queue_size: number;
|
|
1286
|
+
size?: number;
|
|
1287
|
+
type: string;
|
|
1288
|
+
}
|
|
1289
|
+
export interface NodesInfoNodeInfo {
|
|
1290
|
+
attributes: Record<string, string>;
|
|
1291
|
+
build_hash: string;
|
|
1292
|
+
build_type: string;
|
|
1293
|
+
host: string;
|
|
1294
|
+
http?: NodesInfoNodeInfoHttp;
|
|
1295
|
+
ip: string;
|
|
1296
|
+
jvm?: NodesInfoNodeJvmInfo;
|
|
1297
|
+
name: string;
|
|
1298
|
+
network?: NodesInfoNodeInfoNetwork;
|
|
1299
|
+
os?: NodesInfoNodeOperatingSystemInfo;
|
|
1300
|
+
plugins?: PluginStats[];
|
|
1301
|
+
process?: NodesInfoNodeProcessInfo;
|
|
1302
|
+
roles: NodeRoles;
|
|
1303
|
+
settings?: NodesInfoNodeInfoSettings;
|
|
1304
|
+
thread_pool?: Record<string, NodesInfoNodeThreadPoolInfo>;
|
|
1305
|
+
total_indexing_buffer?: number;
|
|
1306
|
+
total_indexing_buffer_in_bytes?: number | string;
|
|
1307
|
+
transport?: NodesInfoNodeInfoTransport;
|
|
1308
|
+
transport_address: string;
|
|
1309
|
+
version: string;
|
|
1310
|
+
modules?: PluginStats[];
|
|
1311
|
+
ingest?: NodesInfoNodeInfoIngest;
|
|
1312
|
+
aggregations?: Record<string, NodesInfoNodeInfoAggregation>;
|
|
1313
|
+
}
|
|
1314
|
+
export interface NodesInfoNodeInfoAggregation {
|
|
1315
|
+
types: string[];
|
|
1316
|
+
}
|
|
1317
|
+
export interface NodesInfoNodeInfoIngest {
|
|
1318
|
+
processors: NodesInfoNodeInfoIngestProcessor[];
|
|
1319
|
+
}
|
|
1320
|
+
export interface NodesInfoNodeInfoIngestProcessor {
|
|
1321
|
+
type: string;
|
|
1322
|
+
}
|
|
1323
|
+
export interface NodesInfoNodeInfoSettingsCluster {
|
|
1324
|
+
name: string;
|
|
1325
|
+
routing?: IndicesIndexRouting;
|
|
1326
|
+
election: NodesInfoNodeInfoSettingsClusterElection;
|
|
1327
|
+
initial_cluster_manager_nodes?: string;
|
|
1328
|
+
initial_master_nodes?: string;
|
|
1329
|
+
}
|
|
1330
|
+
export interface IndicesIndexRoutingAllocation {
|
|
1331
|
+
enable?: IndicesIndexRoutingAllocationOptions;
|
|
1332
|
+
include?: IndicesIndexRoutingAllocationInclude;
|
|
1333
|
+
initial_recovery?: IndicesIndexRoutingAllocationInitialRecovery;
|
|
1334
|
+
disk?: IndicesIndexRoutingAllocationDisk;
|
|
1335
|
+
}
|
|
1336
|
+
export interface IndicesIndexRoutingAllocationDisk {
|
|
1337
|
+
threshold_enabled: boolean | string;
|
|
1338
|
+
}
|
|
1339
|
+
export interface IndicesIndexRoutingAllocationInclude {
|
|
1340
|
+
_tier_preference?: string;
|
|
1341
|
+
_id?: string;
|
|
1342
|
+
}
|
|
1343
|
+
export interface IndicesIndexRoutingAllocationInitialRecovery {
|
|
1344
|
+
_id?: string;
|
|
1345
|
+
}
|
|
1346
|
+
export declare type IndicesIndexRoutingAllocationOptions = 'all' | 'primaries' | 'new_primaries' | 'none';
|
|
1347
|
+
export interface IndicesIndexRoutingRebalance {
|
|
1348
|
+
enable: IndicesIndexRoutingRebalanceOptions;
|
|
1349
|
+
}
|
|
1350
|
+
export declare type IndicesIndexRoutingRebalanceOptions = 'all' | 'primaries' | 'replicas' | 'none';
|
|
1351
|
+
export interface IndicesIndexRouting {
|
|
1352
|
+
allocation?: IndicesIndexRoutingAllocation;
|
|
1353
|
+
rebalance?: IndicesIndexRoutingRebalance;
|
|
1354
|
+
}
|
|
1355
|
+
export interface NodesInfoNodeInfoSettingsClusterElection {
|
|
1356
|
+
strategy: string;
|
|
1357
|
+
}
|
|
1358
|
+
export interface NodesInfoNodeInfoSettingsHttp {
|
|
1359
|
+
type: string | NodesInfoNodeInfoSettingsHttpType;
|
|
1360
|
+
'type.default'?: string;
|
|
1361
|
+
compression?: boolean | string;
|
|
1362
|
+
port?: number | string;
|
|
1363
|
+
}
|
|
1364
|
+
export interface NodesInfoNodeInfoSettingsHttpType {
|
|
1365
|
+
default: string;
|
|
1366
|
+
}
|
|
1367
|
+
export interface NodesInfoNodeInfoSettingsNetwork {
|
|
1368
|
+
host: string;
|
|
1369
|
+
}
|
|
1370
|
+
export interface NodesInfoNodeInfoSettingsNode {
|
|
1371
|
+
name: string;
|
|
1372
|
+
attr: Record<string, any>;
|
|
1373
|
+
max_local_storage_nodes?: string;
|
|
1374
|
+
}
|
|
1375
|
+
export interface NodesInfoNodeInfoSettingsTransport {
|
|
1376
|
+
type: string | NodesInfoNodeInfoSettingsTransportType;
|
|
1377
|
+
'type.default'?: string;
|
|
1378
|
+
features?: Record<string, any>;
|
|
1379
|
+
}
|
|
1380
|
+
export interface NodesInfoNodeInfoSettingsTransportType {
|
|
1381
|
+
default: string;
|
|
1382
|
+
}
|
|
1383
|
+
export interface NodesInfoNodeInfoTransport {
|
|
1384
|
+
bound_address: string[];
|
|
1385
|
+
publish_address: string;
|
|
1386
|
+
profiles: Record<string, string>;
|
|
1387
|
+
}
|
|
1388
|
+
export interface NodesInfoNodeInfoSettings {
|
|
1389
|
+
cluster: NodesInfoNodeInfoSettingsCluster;
|
|
1390
|
+
node: NodesInfoNodeInfoSettingsNode;
|
|
1391
|
+
path: NodesInfoNodeInfoPath;
|
|
1392
|
+
repositories?: NodesInfoNodeInfoRepositories;
|
|
1393
|
+
discovery?: NodesInfoNodeInfoDiscover;
|
|
1394
|
+
action?: NodesInfoNodeInfoAction;
|
|
1395
|
+
client: NodesInfoNodeInfoClient;
|
|
1396
|
+
http: NodesInfoNodeInfoSettingsHttp;
|
|
1397
|
+
bootstrap?: NodesInfoNodeInfoBootstrap;
|
|
1398
|
+
transport: NodesInfoNodeInfoSettingsTransport;
|
|
1399
|
+
network?: NodesInfoNodeInfoSettingsNetwork;
|
|
1400
|
+
script?: NodesInfoNodeInfoScript;
|
|
1401
|
+
search?: NodesInfoNodeInfoSearch;
|
|
1402
|
+
}
|
|
1403
|
+
export interface NodesInfoNodeInfoSearch {
|
|
1404
|
+
remote: NodesInfoNodeInfoSearchRemote;
|
|
1405
|
+
}
|
|
1406
|
+
export interface NodesInfoNodeInfoSearchRemote {
|
|
1407
|
+
connect: string;
|
|
1408
|
+
}
|
|
1409
|
+
export interface NodesInfoNodeInfoScript {
|
|
1410
|
+
allowed_types: string;
|
|
1411
|
+
disable_max_compilations_rate: string;
|
|
1412
|
+
}
|
|
1413
|
+
export interface NodesInfoNodeInfoBootstrap {
|
|
1414
|
+
memory_lock: string;
|
|
1415
|
+
}
|
|
1416
|
+
export interface NodesInfoNodeInfoDiscover {
|
|
1417
|
+
seed_hosts: string;
|
|
1418
|
+
}
|
|
1419
|
+
export interface NodesInfoNodeInfoClient {
|
|
1420
|
+
type: string;
|
|
1421
|
+
}
|
|
1422
|
+
export interface NodesInfoNodeInfoAction {
|
|
1423
|
+
destructive_requires_name: string;
|
|
1424
|
+
}
|
|
1425
|
+
export interface NodesInfoNodeInfoPath {
|
|
1426
|
+
logs: string;
|
|
1427
|
+
home: string;
|
|
1428
|
+
repo: string[];
|
|
1429
|
+
data?: string[];
|
|
1430
|
+
}
|
|
1431
|
+
export interface NodesInfoNodeInfoRepositories {
|
|
1432
|
+
url: NodesInfoNodeInfoRepositoriesUrl;
|
|
1433
|
+
}
|
|
1434
|
+
export interface NodesInfoNodeInfoRepositoriesUrl {
|
|
1435
|
+
allowed_urls: string;
|
|
1436
|
+
}
|
|
1437
|
+
export declare type Level = 'cluster' | 'indices' | 'shards';
|
|
1438
|
+
export declare type Metrics = string | string[];
|
|
1439
|
+
export interface NodeStatistics {
|
|
1440
|
+
failures?: ErrorCause[];
|
|
1441
|
+
total: number;
|
|
1442
|
+
successful: number;
|
|
1443
|
+
failed: number;
|
|
1444
|
+
}
|
|
1445
|
+
export interface NodesStats {
|
|
1446
|
+
adaptive_selection: Record<string, NodesAdaptiveSelection>;
|
|
1447
|
+
breakers: Record<string, NodesBreaker>;
|
|
1448
|
+
fs: NodesFileSystem;
|
|
1449
|
+
host: string;
|
|
1450
|
+
http: string;
|
|
1451
|
+
indices: IndicesStatsIndexStats;
|
|
1452
|
+
ingest: NodesIngest;
|
|
1453
|
+
ip: string | string[];
|
|
1454
|
+
jvm: NodesJvm;
|
|
1455
|
+
name: string;
|
|
1456
|
+
os: NodesOperatingSystem;
|
|
1457
|
+
process: NodesProcess;
|
|
1458
|
+
roles: NodeRoles;
|
|
1459
|
+
script: NodesScripting;
|
|
1460
|
+
thread_pool: Record<string, NodesThreadCount>;
|
|
1461
|
+
timestamp: number;
|
|
1462
|
+
transport: NodesTransport;
|
|
1463
|
+
transport_address: string;
|
|
1464
|
+
attributes: Record<string, string>;
|
|
1465
|
+
}
|
|
1466
|
+
export interface NodesTransport {
|
|
1467
|
+
rx_count: number;
|
|
1468
|
+
rx_size: string;
|
|
1469
|
+
rx_size_in_bytes: number;
|
|
1470
|
+
server_open: number;
|
|
1471
|
+
tx_count: number;
|
|
1472
|
+
tx_size: string;
|
|
1473
|
+
tx_size_in_bytes: number;
|
|
1474
|
+
}
|
|
1475
|
+
export interface NodesThreadCount {
|
|
1476
|
+
active: number;
|
|
1477
|
+
completed: number;
|
|
1478
|
+
largest: number;
|
|
1479
|
+
queue: number;
|
|
1480
|
+
rejected: number;
|
|
1481
|
+
threads: number;
|
|
1482
|
+
}
|
|
1483
|
+
export interface IndicesStatsIndexStats {
|
|
1484
|
+
completion?: CompletionStats;
|
|
1485
|
+
docs?: DocStats;
|
|
1486
|
+
fielddata?: FielddataStats;
|
|
1487
|
+
flush?: FlushStats;
|
|
1488
|
+
get?: GetStats;
|
|
1489
|
+
indexing?: IndexingStats;
|
|
1490
|
+
merges?: MergesStats;
|
|
1491
|
+
query_cache?: QueryCacheStats;
|
|
1492
|
+
recovery?: RecoveryStats;
|
|
1493
|
+
refresh?: RefreshStats;
|
|
1494
|
+
request_cache?: RequestCacheStats;
|
|
1495
|
+
search?: SearchStats;
|
|
1496
|
+
segments?: SegmentsStats;
|
|
1497
|
+
store?: StoreStats;
|
|
1498
|
+
translog?: TranslogStats;
|
|
1499
|
+
warmer?: WarmerStats;
|
|
1500
|
+
bulk?: BulkStats;
|
|
1501
|
+
}
|
|
1502
|
+
export interface StoreStats {
|
|
1503
|
+
size?: number | string;
|
|
1504
|
+
size_in_bytes: number;
|
|
1505
|
+
reserved?: number | string;
|
|
1506
|
+
reserved_in_bytes: number;
|
|
1507
|
+
total_data_set_size?: number | string;
|
|
1508
|
+
total_data_set_size_in_bytes?: number;
|
|
1509
|
+
}
|
|
1510
|
+
export interface BulkStats {
|
|
1511
|
+
total_operations: number;
|
|
1512
|
+
total_time?: string;
|
|
1513
|
+
total_time_in_millis: number;
|
|
1514
|
+
total_size?: number | string;
|
|
1515
|
+
total_size_in_bytes: number;
|
|
1516
|
+
avg_time?: string;
|
|
1517
|
+
avg_time_in_millis: number;
|
|
1518
|
+
avg_size?: number | string;
|
|
1519
|
+
avg_size_in_bytes: number;
|
|
1520
|
+
}
|
|
1521
|
+
export interface WarmerStats {
|
|
1522
|
+
current: number;
|
|
1523
|
+
total: number;
|
|
1524
|
+
total_time?: string;
|
|
1525
|
+
total_time_in_millis: number;
|
|
1526
|
+
}
|
|
1527
|
+
export interface TranslogStats {
|
|
1528
|
+
earliest_last_modified_age: number;
|
|
1529
|
+
operations: number;
|
|
1530
|
+
size?: string;
|
|
1531
|
+
size_in_bytes: number;
|
|
1532
|
+
uncommitted_operations: number;
|
|
1533
|
+
uncommitted_size?: string;
|
|
1534
|
+
uncommitted_size_in_bytes: number;
|
|
1535
|
+
}
|
|
1536
|
+
export interface SegmentsStats {
|
|
1537
|
+
count: number;
|
|
1538
|
+
doc_values_memory?: number | string;
|
|
1539
|
+
doc_values_memory_in_bytes: number;
|
|
1540
|
+
file_sizes: Record<string, IndicesStatsShardFileSizeInfo>;
|
|
1541
|
+
fixed_bit_set?: number | string;
|
|
1542
|
+
fixed_bit_set_memory_in_bytes: number;
|
|
1543
|
+
index_writer_memory?: number | string;
|
|
1544
|
+
index_writer_max_memory_in_bytes?: number;
|
|
1545
|
+
index_writer_memory_in_bytes: number;
|
|
1546
|
+
max_unsafe_auto_id_timestamp: number;
|
|
1547
|
+
memory?: number | string;
|
|
1548
|
+
memory_in_bytes: number;
|
|
1549
|
+
norms_memory?: number | string;
|
|
1550
|
+
norms_memory_in_bytes: number;
|
|
1551
|
+
points_memory?: number | string;
|
|
1552
|
+
points_memory_in_bytes: number;
|
|
1553
|
+
stored_memory?: number | string;
|
|
1554
|
+
stored_fields_memory_in_bytes: number;
|
|
1555
|
+
terms_memory_in_bytes: number;
|
|
1556
|
+
terms_memory?: number | string;
|
|
1557
|
+
term_vectory_memory?: number | string;
|
|
1558
|
+
term_vectors_memory_in_bytes: number;
|
|
1559
|
+
version_map_memory?: number | string;
|
|
1560
|
+
version_map_memory_in_bytes: number;
|
|
1561
|
+
}
|
|
1562
|
+
export interface IndicesStatsShardFileSizeInfo {
|
|
1563
|
+
description: string;
|
|
1564
|
+
size_in_bytes: number;
|
|
1565
|
+
min_size_in_bytes?: number;
|
|
1566
|
+
max_size_in_bytes?: number;
|
|
1567
|
+
average_size_in_bytes?: number;
|
|
1568
|
+
count?: number;
|
|
1569
|
+
}
|
|
1570
|
+
export interface SearchStats {
|
|
1571
|
+
fetch_current: number;
|
|
1572
|
+
fetch_time_in_millis: number;
|
|
1573
|
+
fetch_total: number;
|
|
1574
|
+
open_contexts?: number;
|
|
1575
|
+
query_current: number;
|
|
1576
|
+
query_time_in_millis: number;
|
|
1577
|
+
query_total: number;
|
|
1578
|
+
scroll_current: number;
|
|
1579
|
+
scroll_time_in_millis: number;
|
|
1580
|
+
scroll_total: number;
|
|
1581
|
+
suggest_current: number;
|
|
1582
|
+
suggest_time_in_millis: number;
|
|
1583
|
+
suggest_total: number;
|
|
1584
|
+
groups?: Record<string, SearchStats>;
|
|
1585
|
+
}
|
|
1586
|
+
export interface RequestCacheStats {
|
|
1587
|
+
evictions: number;
|
|
1588
|
+
hit_count: number;
|
|
1589
|
+
memory_size?: string;
|
|
1590
|
+
memory_size_in_bytes: number;
|
|
1591
|
+
miss_count: number;
|
|
1592
|
+
}
|
|
1593
|
+
export interface RecoveryStats {
|
|
1594
|
+
current_as_source: number;
|
|
1595
|
+
current_as_target: number;
|
|
1596
|
+
throttle_time?: string;
|
|
1597
|
+
throttle_time_in_millis: number;
|
|
1598
|
+
}
|
|
1599
|
+
export interface RefreshStats {
|
|
1600
|
+
external_total: number;
|
|
1601
|
+
external_total_time_in_millis: number;
|
|
1602
|
+
listeners: number;
|
|
1603
|
+
total: number;
|
|
1604
|
+
total_time?: string;
|
|
1605
|
+
total_time_in_millis: number;
|
|
1606
|
+
}
|
|
1607
|
+
export interface QueryCacheStats {
|
|
1608
|
+
cache_count: number;
|
|
1609
|
+
cache_size: number;
|
|
1610
|
+
evictions: number;
|
|
1611
|
+
hit_count: number;
|
|
1612
|
+
memory_size?: number | string;
|
|
1613
|
+
memory_size_in_bytes: number;
|
|
1614
|
+
miss_count: number;
|
|
1615
|
+
total_count: number;
|
|
1616
|
+
}
|
|
1617
|
+
export interface MergesStats {
|
|
1618
|
+
current: number;
|
|
1619
|
+
current_docs: number;
|
|
1620
|
+
current_size?: string;
|
|
1621
|
+
current_size_in_bytes: number;
|
|
1622
|
+
total: number;
|
|
1623
|
+
total_auto_throttle?: string;
|
|
1624
|
+
total_auto_throttle_in_bytes: number;
|
|
1625
|
+
total_docs: number;
|
|
1626
|
+
total_size?: string;
|
|
1627
|
+
total_size_in_bytes: number;
|
|
1628
|
+
total_stopped_time?: string;
|
|
1629
|
+
total_stopped_time_in_millis: number;
|
|
1630
|
+
total_throttled_time?: string;
|
|
1631
|
+
total_throttled_time_in_millis: number;
|
|
1632
|
+
total_time?: string;
|
|
1633
|
+
total_time_in_millis: number;
|
|
1634
|
+
}
|
|
1635
|
+
export interface IndexingStats {
|
|
1636
|
+
index_current: number;
|
|
1637
|
+
delete_current: number;
|
|
1638
|
+
delete_time?: string;
|
|
1639
|
+
delete_time_in_millis: number;
|
|
1640
|
+
delete_total: number;
|
|
1641
|
+
is_throttled: boolean;
|
|
1642
|
+
noop_update_total: number;
|
|
1643
|
+
throttle_time?: string;
|
|
1644
|
+
throttle_time_in_millis: number;
|
|
1645
|
+
index_time?: string;
|
|
1646
|
+
index_time_in_millis: number;
|
|
1647
|
+
index_total: number;
|
|
1648
|
+
index_failed: number;
|
|
1649
|
+
types?: Record<string, IndexingStats>;
|
|
1650
|
+
}
|
|
1651
|
+
export interface GetStats {
|
|
1652
|
+
current: number;
|
|
1653
|
+
exists_time?: string;
|
|
1654
|
+
exists_time_in_millis: number;
|
|
1655
|
+
exists_total: number;
|
|
1656
|
+
missing_time?: string;
|
|
1657
|
+
missing_time_in_millis: number;
|
|
1658
|
+
missing_total: number;
|
|
1659
|
+
time?: string;
|
|
1660
|
+
time_in_millis: number;
|
|
1661
|
+
total: number;
|
|
1662
|
+
}
|
|
1663
|
+
export interface FlushStats {
|
|
1664
|
+
periodic: number;
|
|
1665
|
+
total: number;
|
|
1666
|
+
total_time?: string;
|
|
1667
|
+
total_time_in_millis: number;
|
|
1668
|
+
}
|
|
1669
|
+
export interface FielddataStats {
|
|
1670
|
+
evictions?: number;
|
|
1671
|
+
memory_size?: number | string;
|
|
1672
|
+
memory_size_in_bytes: number;
|
|
1673
|
+
fields?: Record<string, FieldMemoryUsage>;
|
|
1674
|
+
}
|
|
1675
|
+
export interface FieldMemoryUsage {
|
|
1676
|
+
memory_size?: number | string;
|
|
1677
|
+
memory_size_in_bytes: number;
|
|
1678
|
+
}
|
|
1679
|
+
export interface DocStats {
|
|
1680
|
+
count: number;
|
|
1681
|
+
deleted: number;
|
|
1682
|
+
}
|
|
1683
|
+
export interface CompletionStats {
|
|
1684
|
+
size_in_bytes: number;
|
|
1685
|
+
size?: number | string;
|
|
1686
|
+
fields?: Record<string, FieldSizeUsage>;
|
|
1687
|
+
}
|
|
1688
|
+
export interface FieldSizeUsage {
|
|
1689
|
+
size?: string | number;
|
|
1690
|
+
size_in_bytes: number;
|
|
1691
|
+
}
|
|
1692
|
+
export interface NodesScripting {
|
|
1693
|
+
cache_evictions: number;
|
|
1694
|
+
compilations: number;
|
|
1695
|
+
}
|
|
1696
|
+
export interface NodesOperatingSystem {
|
|
1697
|
+
cpu: NodesCpu;
|
|
1698
|
+
mem: NodesExtendedMemoryStats;
|
|
1699
|
+
swap: NodesMemoryStats;
|
|
1700
|
+
timestamp: number;
|
|
1701
|
+
}
|
|
1702
|
+
export interface NodesExtendedMemoryStats extends NodesMemoryStats {
|
|
1703
|
+
free_percent: number;
|
|
1704
|
+
used_percent: number;
|
|
1705
|
+
total_in_bytes: number;
|
|
1706
|
+
free_in_bytes: number;
|
|
1707
|
+
used_in_bytes: number;
|
|
1708
|
+
}
|
|
1709
|
+
export interface NodesNodeBufferPool {
|
|
1710
|
+
count: number;
|
|
1711
|
+
total_capacity: string;
|
|
1712
|
+
total_capacity_in_bytes: number;
|
|
1713
|
+
used: string;
|
|
1714
|
+
used_in_bytes: number;
|
|
1715
|
+
}
|
|
1716
|
+
export interface NodesGarbageCollector {
|
|
1717
|
+
collectors: Record<string, NodesGarbageCollectorTotal>;
|
|
1718
|
+
}
|
|
1719
|
+
export interface NodesGarbageCollectorTotal {
|
|
1720
|
+
collection_count: number;
|
|
1721
|
+
collection_time: string;
|
|
1722
|
+
collection_time_in_millis: number;
|
|
1723
|
+
}
|
|
1724
|
+
export interface NodesJvm {
|
|
1725
|
+
buffer_pools: Record<string, NodesNodeBufferPool>;
|
|
1726
|
+
classes: NodesJvmClasses;
|
|
1727
|
+
gc: NodesGarbageCollector;
|
|
1728
|
+
mem: NodesMemoryStats;
|
|
1729
|
+
threads: NodesJvmThreads;
|
|
1730
|
+
timestamp: number;
|
|
1731
|
+
uptime: string;
|
|
1732
|
+
uptime_in_millis: number;
|
|
1733
|
+
}
|
|
1734
|
+
export interface NodesJvmClasses {
|
|
1735
|
+
current_loaded_count: number;
|
|
1736
|
+
total_loaded_count: number;
|
|
1737
|
+
total_unloaded_count: number;
|
|
1738
|
+
}
|
|
1739
|
+
export interface NodesJvmThreads {
|
|
1740
|
+
count: number;
|
|
1741
|
+
peak_count: number;
|
|
1742
|
+
}
|
|
1743
|
+
export interface NodesProcess {
|
|
1744
|
+
cpu: NodesCpu;
|
|
1745
|
+
mem: NodesMemoryStats;
|
|
1746
|
+
open_file_descriptors: number;
|
|
1747
|
+
timestamp: number;
|
|
1748
|
+
}
|
|
1749
|
+
export interface NodesMemoryStats {
|
|
1750
|
+
resident?: string;
|
|
1751
|
+
resident_in_bytes?: number;
|
|
1752
|
+
share?: string;
|
|
1753
|
+
share_in_bytes?: number;
|
|
1754
|
+
total_virtual?: string;
|
|
1755
|
+
total_virtual_in_bytes?: number;
|
|
1756
|
+
total_in_bytes: number;
|
|
1757
|
+
free_in_bytes: number;
|
|
1758
|
+
used_in_bytes: number;
|
|
1759
|
+
}
|
|
1760
|
+
export interface NodesCpu {
|
|
1761
|
+
percent: number;
|
|
1762
|
+
sys?: string;
|
|
1763
|
+
sys_in_millis?: number;
|
|
1764
|
+
total?: string;
|
|
1765
|
+
total_in_millis?: number;
|
|
1766
|
+
user?: string;
|
|
1767
|
+
user_in_millis?: number;
|
|
1768
|
+
load_average?: Record<string, number>;
|
|
1769
|
+
}
|
|
1770
|
+
export interface NodesIngest {
|
|
1771
|
+
pipelines: Record<string, NodesIngestTotal>;
|
|
1772
|
+
total: NodesIngestTotal;
|
|
1773
|
+
}
|
|
1774
|
+
export interface NodesKeyedProcessor {
|
|
1775
|
+
statistics: NodesProcess;
|
|
1776
|
+
type: string;
|
|
1777
|
+
}
|
|
1778
|
+
export interface NodesIngestTotal {
|
|
1779
|
+
count: number;
|
|
1780
|
+
current: number;
|
|
1781
|
+
failed: number;
|
|
1782
|
+
processors: NodesKeyedProcessor[];
|
|
1783
|
+
time_in_millis: number;
|
|
1784
|
+
}
|
|
1785
|
+
export interface NodesDataPathStats {
|
|
1786
|
+
available: string;
|
|
1787
|
+
available_in_bytes: number;
|
|
1788
|
+
disk_queue: string;
|
|
1789
|
+
disk_reads: number;
|
|
1790
|
+
disk_read_size: string;
|
|
1791
|
+
disk_read_size_in_bytes: number;
|
|
1792
|
+
disk_writes: number;
|
|
1793
|
+
disk_write_size: string;
|
|
1794
|
+
disk_write_size_in_bytes: number;
|
|
1795
|
+
free: string;
|
|
1796
|
+
free_in_bytes: number;
|
|
1797
|
+
mount: string;
|
|
1798
|
+
path: string;
|
|
1799
|
+
total: string;
|
|
1800
|
+
total_in_bytes: number;
|
|
1801
|
+
type: string;
|
|
1802
|
+
}
|
|
1803
|
+
export interface NodesFileSystem {
|
|
1804
|
+
data: NodesDataPathStats[];
|
|
1805
|
+
timestamp: number;
|
|
1806
|
+
total: NodesFileSystemTotal;
|
|
1807
|
+
}
|
|
1808
|
+
export interface NodesFileSystemTotal {
|
|
1809
|
+
available: string;
|
|
1810
|
+
available_in_bytes: number;
|
|
1811
|
+
free: string;
|
|
1812
|
+
free_in_bytes: number;
|
|
1813
|
+
total: string;
|
|
1814
|
+
total_in_bytes: number;
|
|
1815
|
+
}
|
|
1816
|
+
export interface NodesBreaker {
|
|
1817
|
+
estimated_size: string;
|
|
1818
|
+
estimated_size_in_bytes: number;
|
|
1819
|
+
limit_size: string;
|
|
1820
|
+
limit_size_in_bytes: number;
|
|
1821
|
+
overhead: number;
|
|
1822
|
+
tripped: number;
|
|
1823
|
+
}
|
|
1824
|
+
export interface NodesAdaptiveSelection {
|
|
1825
|
+
avg_queue_size: number;
|
|
1826
|
+
avg_response_time: number;
|
|
1827
|
+
avg_response_time_ns: number;
|
|
1828
|
+
avg_service_time: string;
|
|
1829
|
+
avg_service_time_ns: number;
|
|
1830
|
+
outgoing_searches: number;
|
|
1831
|
+
rank: string;
|
|
1832
|
+
}
|
|
1833
|
+
export interface ReindexBody {
|
|
1834
|
+
conflicts?: ConflictOptions;
|
|
1835
|
+
max_docs?: number;
|
|
1836
|
+
source: {
|
|
1837
|
+
index: string;
|
|
1838
|
+
query?: Record<string, any>;
|
|
1839
|
+
remote?: Remote;
|
|
1840
|
+
size?: number;
|
|
1841
|
+
slice?: {
|
|
1842
|
+
id?: number;
|
|
1843
|
+
max?: number;
|
|
1844
|
+
};
|
|
1845
|
+
_source?: boolean | string | string[];
|
|
1846
|
+
};
|
|
1847
|
+
dest: {
|
|
1848
|
+
index: string;
|
|
1849
|
+
version_type?: VersionType;
|
|
1850
|
+
op_type?: OpType;
|
|
1851
|
+
type?: string;
|
|
1852
|
+
};
|
|
1853
|
+
script?: {
|
|
1854
|
+
source?: string;
|
|
1855
|
+
lang?: ScriptLangs;
|
|
1856
|
+
};
|
|
1857
|
+
}
|
|
1858
|
+
export declare type AggregationsAggregate = AggregationsSingleBucketAggregate | AggregationsAutoDateHistogramAggregate | AggregationsFiltersAggregate | AggregationsSignificantTermsAggregate<any> | AggregationsTermsAggregate<any> | AggregationsBucketAggregate | AggregationsCompositeBucketAggregate | AggregationsMultiBucketAggregate<AggregationsBucket> | AggregationsMatrixStatsAggregate | AggregationsKeyedValueAggregate | AggregationsMetricAggregate;
|
|
1859
|
+
export interface AggregationsSingleBucketAggregateKeys extends AggregationsAggregateBase {
|
|
1860
|
+
doc_count: number;
|
|
1861
|
+
}
|
|
1862
|
+
export interface AggregationsKeyedValueAggregate extends AggregationsValueAggregate {
|
|
1863
|
+
keys: string[];
|
|
1864
|
+
}
|
|
1865
|
+
export declare type AggregationsValueBucket = {
|
|
1866
|
+
[property: string]: AggregationsAggregate;
|
|
1867
|
+
};
|
|
1868
|
+
export declare type AggregationsBucket = AggregationsValueBucket | AggregationsKeyedBucket<any>;
|
|
1869
|
+
export interface AggregationsValueAggregate extends AggregationsAggregateBase {
|
|
1870
|
+
value: number;
|
|
1871
|
+
value_as_string?: string;
|
|
1872
|
+
}
|
|
1873
|
+
export interface AggregationsBoxPlotAggregate extends AggregationsAggregateBase {
|
|
1874
|
+
min: number;
|
|
1875
|
+
max: number;
|
|
1876
|
+
q1: number;
|
|
1877
|
+
q2: number;
|
|
1878
|
+
q3: number;
|
|
1879
|
+
}
|
|
1880
|
+
export interface AggregationsGeoBoundsAggregate extends AggregationsAggregateBase {
|
|
1881
|
+
bounds: AggregationsGeoBounds;
|
|
1882
|
+
}
|
|
1883
|
+
export interface LatLon {
|
|
1884
|
+
lat: number;
|
|
1885
|
+
lon: number;
|
|
1886
|
+
}
|
|
1887
|
+
export interface AggregationsGeoBounds {
|
|
1888
|
+
bottom_right: LatLon;
|
|
1889
|
+
top_left: LatLon;
|
|
1890
|
+
}
|
|
1891
|
+
export interface AggregationsGeoCentroidAggregate extends AggregationsAggregateBase {
|
|
1892
|
+
count: number;
|
|
1893
|
+
location: QueryDslGeoLocation;
|
|
1894
|
+
}
|
|
1895
|
+
export declare type QueryDslGeoLocation = string | number[] | LatLon;
|
|
1896
|
+
export interface AggregationsGeoLineAggregate extends AggregationsAggregateBase {
|
|
1897
|
+
type: string;
|
|
1898
|
+
geometry: AggregationsLineStringGeoShape;
|
|
1899
|
+
properties: AggregationsGeoLineProperties;
|
|
1900
|
+
}
|
|
1901
|
+
export interface AggregationsLineStringGeoShape {
|
|
1902
|
+
coordinates: QueryDslGeoCoordinate[];
|
|
1903
|
+
}
|
|
1904
|
+
export declare type QueryDslGeoCoordinate = string | number[] | QueryDslThreeDimensionalPoint;
|
|
1905
|
+
export interface QueryDslThreeDimensionalPoint {
|
|
1906
|
+
lat: number;
|
|
1907
|
+
lon: number;
|
|
1908
|
+
z?: number;
|
|
1909
|
+
}
|
|
1910
|
+
export interface AggregationsGeoLineProperties {
|
|
1911
|
+
complete: boolean;
|
|
1912
|
+
sort_values: number[];
|
|
1913
|
+
}
|
|
1914
|
+
export declare type AggregationsMetricAggregate = AggregationsValueAggregate | AggregationsBoxPlotAggregate | AggregationsGeoBoundsAggregate | AggregationsGeoCentroidAggregate | AggregationsGeoLineAggregate | AggregationsPercentilesAggregate | AggregationsScriptedMetricAggregate | AggregationsStatsAggregate | AggregationsStringStatsAggregate | AggregationsTopHitsAggregate | AggregationsTopMetricsAggregate | AggregationsExtendedStatsAggregate | AggregationsTDigestPercentilesAggregate | AggregationsHdrPercentilesAggregate;
|
|
1915
|
+
export interface AggregationsTDigestPercentilesAggregate extends AggregationsAggregateBase {
|
|
1916
|
+
values: Record<string, number>;
|
|
1917
|
+
}
|
|
1918
|
+
export interface AggregationsHdrPercentilesAggregate extends AggregationsAggregateBase {
|
|
1919
|
+
values: AggregationsHdrPercentileItem[];
|
|
1920
|
+
}
|
|
1921
|
+
export interface AggregationsHdrPercentileItem {
|
|
1922
|
+
key: number;
|
|
1923
|
+
value: number;
|
|
1924
|
+
}
|
|
1925
|
+
export interface AggregationsStandardDeviationBounds {
|
|
1926
|
+
lower?: number;
|
|
1927
|
+
upper?: number;
|
|
1928
|
+
lower_population?: number;
|
|
1929
|
+
upper_population?: number;
|
|
1930
|
+
lower_sampling?: number;
|
|
1931
|
+
upper_sampling?: number;
|
|
1932
|
+
}
|
|
1933
|
+
export interface AggregationsExtendedStatsAggregate extends AggregationsStatsAggregate {
|
|
1934
|
+
std_deviation_bounds: AggregationsStandardDeviationBounds;
|
|
1935
|
+
sum_of_squares?: number;
|
|
1936
|
+
variance?: number;
|
|
1937
|
+
variance_population?: number;
|
|
1938
|
+
variance_sampling?: number;
|
|
1939
|
+
std_deviation?: number;
|
|
1940
|
+
std_deviation_population?: number;
|
|
1941
|
+
std_deviation_sampling?: number;
|
|
1942
|
+
}
|
|
1943
|
+
export interface AggregationsTopMetricsAggregate extends AggregationsAggregateBase {
|
|
1944
|
+
top: AggregationsTopMetrics[];
|
|
1945
|
+
}
|
|
1946
|
+
export interface AggregationsTopMetrics {
|
|
1947
|
+
sort: (number | number | string)[];
|
|
1948
|
+
metrics: Record<string, number | number | string>;
|
|
1949
|
+
}
|
|
1950
|
+
export interface SearchHitsMetadata<T = unknown> {
|
|
1951
|
+
total: SearchTotalHits | number;
|
|
1952
|
+
hits: SearchResult<T>[];
|
|
1953
|
+
max_score?: number;
|
|
1954
|
+
}
|
|
1955
|
+
export declare type SearchSortResults = (number | string | null)[];
|
|
1956
|
+
export interface SearchNestedIdentity {
|
|
1957
|
+
field: string;
|
|
1958
|
+
offset: number;
|
|
1959
|
+
_nested?: SearchNestedIdentity;
|
|
1960
|
+
}
|
|
1961
|
+
export interface SearchInnerHitsMetadata {
|
|
1962
|
+
total: SearchTotalHits | number;
|
|
1963
|
+
hits: SearchResult<Record<string, any>>[];
|
|
1964
|
+
max_score?: number;
|
|
1965
|
+
}
|
|
1966
|
+
export interface SearchInnerHitsResult {
|
|
1967
|
+
hits: SearchInnerHitsMetadata;
|
|
1968
|
+
}
|
|
1969
|
+
export interface ExplainExplanation {
|
|
1970
|
+
description: string;
|
|
1971
|
+
details: ExplainExplanationDetail[];
|
|
1972
|
+
value: number;
|
|
1973
|
+
}
|
|
1974
|
+
export interface ExplainExplanationDetail {
|
|
1975
|
+
description: string;
|
|
1976
|
+
details?: ExplainExplanationDetail[];
|
|
1977
|
+
value: number;
|
|
1978
|
+
}
|
|
1979
|
+
export declare type SearchTotalHitsRelation = 'eq' | 'gte';
|
|
1980
|
+
export interface SearchTotalHits {
|
|
1981
|
+
relation: SearchTotalHitsRelation;
|
|
1982
|
+
value: number;
|
|
1983
|
+
}
|
|
1984
|
+
export interface AggregationsTopHitsAggregate extends AggregationsAggregateBase {
|
|
1985
|
+
hits: SearchHitsMetadata<Record<string, any>>;
|
|
1986
|
+
}
|
|
1987
|
+
export interface AggregationsStringStatsAggregate extends AggregationsAggregateBase {
|
|
1988
|
+
count: number;
|
|
1989
|
+
min_length: number;
|
|
1990
|
+
max_length: number;
|
|
1991
|
+
avg_length: number;
|
|
1992
|
+
entropy: number;
|
|
1993
|
+
distribution?: Record<string, number>;
|
|
1994
|
+
}
|
|
1995
|
+
export interface AggregationsScriptedMetricAggregate extends AggregationsAggregateBase {
|
|
1996
|
+
value: any;
|
|
1997
|
+
}
|
|
1998
|
+
export interface AggregationsStatsAggregate extends AggregationsAggregateBase {
|
|
1999
|
+
count: number;
|
|
2000
|
+
sum: number;
|
|
2001
|
+
avg?: number;
|
|
2002
|
+
max?: number;
|
|
2003
|
+
min?: number;
|
|
2004
|
+
}
|
|
2005
|
+
export interface AggregationsPercentilesAggregate extends AggregationsAggregateBase {
|
|
2006
|
+
items: AggregationsPercentileItem[];
|
|
2007
|
+
}
|
|
2008
|
+
export interface AggregationsPercentileItem {
|
|
2009
|
+
percentile: number;
|
|
2010
|
+
value: number;
|
|
2011
|
+
}
|
|
2012
|
+
export interface AggregationsMatrixStatsAggregate extends AggregationsAggregateBase {
|
|
2013
|
+
correlation: Record<string, number>;
|
|
2014
|
+
covariance: Record<string, number>;
|
|
2015
|
+
count: number;
|
|
2016
|
+
kurtosis: number;
|
|
2017
|
+
mean: number;
|
|
2018
|
+
skewness: number;
|
|
2019
|
+
variance: number;
|
|
2020
|
+
name: string;
|
|
2021
|
+
}
|
|
2022
|
+
export interface AggregationsCompositeBucketAggregate extends AggregationsMultiBucketAggregate<Record<string, any>> {
|
|
2023
|
+
after_key: Record<string, any>;
|
|
2024
|
+
}
|
|
2025
|
+
export interface AggregationsFiltersAggregate extends AggregationsAggregateBase {
|
|
2026
|
+
buckets: AggregationsFiltersBucketItem[] | Record<string, AggregationsFiltersBucketItem>;
|
|
2027
|
+
}
|
|
2028
|
+
export interface AggregationsBucketAggregate extends AggregationsAggregateBase {
|
|
2029
|
+
after_key: Record<string, any>;
|
|
2030
|
+
bg_count: number;
|
|
2031
|
+
doc_count: number;
|
|
2032
|
+
doc_count_error_upper_bound: number;
|
|
2033
|
+
sum_other_doc_count: number;
|
|
2034
|
+
interval: string;
|
|
2035
|
+
items: AggregationsBucket;
|
|
2036
|
+
}
|
|
2037
|
+
export interface AggregationsTermsAggregate<TKey = unknown> extends AggregationsMultiBucketAggregate<TKey> {
|
|
2038
|
+
doc_count_error_upper_bound: number;
|
|
2039
|
+
sum_other_doc_count: number;
|
|
2040
|
+
}
|
|
2041
|
+
export interface AggregationsSignificantTermsAggregate<TKey = unknown> extends AggregationsMultiBucketAggregate<TKey> {
|
|
2042
|
+
bg_count: number;
|
|
2043
|
+
doc_count: number;
|
|
2044
|
+
}
|
|
2045
|
+
export interface AggregationsFiltersBucketItemKeys {
|
|
2046
|
+
doc_count: number;
|
|
2047
|
+
}
|
|
2048
|
+
export declare type AggregationsFiltersBucketItem = AggregationsFiltersBucketItemKeys | {
|
|
2049
|
+
[property: string]: AggregationsAggregate;
|
|
2050
|
+
};
|
|
2051
|
+
export interface AggregationsMultiBucketAggregate<TBucket = unknown> extends AggregationsAggregateBase {
|
|
2052
|
+
buckets: TBucket[];
|
|
2053
|
+
}
|
|
2054
|
+
export interface AggregationsAggregateBase {
|
|
2055
|
+
meta?: Record<string, any>;
|
|
2056
|
+
}
|
|
2057
|
+
export interface AggregationsKeyedBucketKeys<TKey = unknown> {
|
|
2058
|
+
doc_count: number;
|
|
2059
|
+
key: TKey;
|
|
2060
|
+
key_as_string: string;
|
|
2061
|
+
}
|
|
2062
|
+
export interface AggregationsAutoDateHistogramAggregate extends AggregationsMultiBucketAggregate<AggregationsKeyedBucket<number>> {
|
|
2063
|
+
interval: string;
|
|
2064
|
+
}
|
|
2065
|
+
export declare type AggregationsKeyedBucket<TKey = unknown> = AggregationsKeyedBucketKeys<TKey> | {
|
|
2066
|
+
[property: string]: AggregationsAggregate;
|
|
2067
|
+
};
|
|
2068
|
+
export declare type AggregationsSingleBucketAggregate = AggregationsSingleBucketAggregateKeys | {
|
|
2069
|
+
[property: string]: AggregationsAggregate;
|
|
2070
|
+
};
|
|
2071
|
+
export interface HitsTotal {
|
|
2072
|
+
value: number;
|
|
2073
|
+
relation: 'eq' | 'gte';
|
|
2074
|
+
}
|
|
2075
|
+
export interface IndicesStatsIndicesStats {
|
|
2076
|
+
primaries: IndicesStatsIndexStats;
|
|
2077
|
+
shards?: Record<string, IndicesStatsShardStats[]>;
|
|
2078
|
+
total: IndicesStatsIndexStats;
|
|
2079
|
+
uuid?: string;
|
|
2080
|
+
}
|
|
2081
|
+
export interface IndicesStatsShardStats {
|
|
2082
|
+
commit: IndicesStatsShardCommit;
|
|
2083
|
+
completion: CompletionStats;
|
|
2084
|
+
docs: DocStats;
|
|
2085
|
+
fielddata: FielddataStats;
|
|
2086
|
+
flush: FlushStats;
|
|
2087
|
+
get: GetStats;
|
|
2088
|
+
indexing: IndexingStats;
|
|
2089
|
+
merges: MergesStats;
|
|
2090
|
+
shard_path: IndicesStatsShardPath;
|
|
2091
|
+
query_cache: IndicesStatsShardQueryCache;
|
|
2092
|
+
recovery: RecoveryStats;
|
|
2093
|
+
refresh: RefreshStats;
|
|
2094
|
+
request_cache: RequestCacheStats;
|
|
2095
|
+
retention_leases: IndicesStatsShardRetentionLeases;
|
|
2096
|
+
routing: IndicesStatsShardRouting;
|
|
2097
|
+
search: SearchStats;
|
|
2098
|
+
segments: SegmentsStats;
|
|
2099
|
+
seq_no: IndicesStatsShardSequenceNumber;
|
|
2100
|
+
store: StoreStats;
|
|
2101
|
+
translog: TranslogStats;
|
|
2102
|
+
warmer: WarmerStats;
|
|
2103
|
+
bulk?: BulkStats;
|
|
2104
|
+
}
|
|
2105
|
+
export interface IndicesStatsShardSequenceNumber {
|
|
2106
|
+
global_checkpoint: number;
|
|
2107
|
+
local_checkpoint: number;
|
|
2108
|
+
max_seq_no: number;
|
|
2109
|
+
}
|
|
2110
|
+
export interface IndicesStatsShardRouting {
|
|
2111
|
+
node: string;
|
|
2112
|
+
primary: boolean;
|
|
2113
|
+
relocating_node?: string;
|
|
2114
|
+
state: IndicesStatsShardRoutingState;
|
|
2115
|
+
}
|
|
2116
|
+
export declare type IndicesStatsShardRoutingState = 'UNASSIGNED' | 'INITIALIZING' | 'STARTED' | 'RELOCATING';
|
|
2117
|
+
export interface IndicesStatsShardRetentionLeases {
|
|
2118
|
+
primary_term: number;
|
|
2119
|
+
version: number;
|
|
2120
|
+
leases: IndicesStatsShardLease[];
|
|
2121
|
+
}
|
|
2122
|
+
export interface IndicesStatsShardLease {
|
|
2123
|
+
id: string;
|
|
2124
|
+
retaining_seq_no: number;
|
|
2125
|
+
timestamp: number;
|
|
2126
|
+
source: string;
|
|
2127
|
+
}
|
|
2128
|
+
export interface IndicesStatsShardQueryCache {
|
|
2129
|
+
cache_count: number;
|
|
2130
|
+
cache_size: number;
|
|
2131
|
+
evictions: number;
|
|
2132
|
+
hit_count: number;
|
|
2133
|
+
memory_size_in_bytes: number;
|
|
2134
|
+
miss_count: number;
|
|
2135
|
+
total_count: number;
|
|
2136
|
+
}
|
|
2137
|
+
export interface IndicesStatsShardPath {
|
|
2138
|
+
data_path: string;
|
|
2139
|
+
is_custom_data_path: boolean;
|
|
2140
|
+
state_path: string;
|
|
2141
|
+
}
|
|
2142
|
+
export interface IndicesStatsShardCommit {
|
|
2143
|
+
generation: number;
|
|
2144
|
+
id: string;
|
|
2145
|
+
num_docs: number;
|
|
2146
|
+
user_data: Record<string, string>;
|
|
2147
|
+
}
|
|
2148
|
+
//# sourceMappingURL=elasticsearch-types.d.ts.map
|