17
17
* under the License.
18
18
*/
19
19
20
- import { ByteSize , Name , VersionString } from '@_types/common'
20
+ import { ByteSize , Name , VersionNumber , VersionString } from '@_types/common'
21
21
import { Host , Ip , TransportAddress } from '@_types/Networking'
22
22
import { NodeRoles } from '@_types/Node'
23
23
import { integer , long } from '@_types/Numeric'
@@ -26,6 +26,7 @@ import { Duration, DurationValue, EpochTime, UnitMillis } from '@_types/Time'
26
26
import { IndexRouting } from '@indices/_types/IndexRouting'
27
27
import { AdditionalProperties } from '@spec_utils/behaviors'
28
28
import { Dictionary } from '@spec_utils/Dictionary'
29
+ import { Stringified } from '@spec_utils/Stringified'
29
30
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
30
31
31
32
export class NodeInfo {
@@ -34,15 +35,16 @@ export class NodeInfo {
34
35
/** Short hash of the last git commit in this release. */
35
36
build_hash : string
36
37
build_type : string
38
+ component_versions : Dictionary < Name , integer >
37
39
/** The node’s host name. */
38
40
host : Host
39
41
http ?: NodeInfoHttp
42
+ index_version : VersionNumber
40
43
/** The node’s IP address. */
41
44
ip : Ip
42
45
jvm ?: NodeJvmInfo
43
46
/** The node's name */
44
47
name : Name
45
- network ?: NodeInfoNetwork
46
48
os ?: NodeOperatingSystemInfo
47
49
plugins ?: PluginStats [ ]
48
50
process ?: NodeProcessInfo
@@ -59,11 +61,19 @@ export class NodeInfo {
59
61
transport ?: NodeInfoTransport
60
62
/** Host and port where transport HTTP connections are accepted. */
61
63
transport_address : TransportAddress
64
+ transport_version : VersionNumber
65
+
62
66
/** Elasticsearch version running on this node. */
63
67
version : VersionString
64
68
modules ?: PluginStats [ ]
65
69
ingest ?: NodeInfoIngest
66
70
aggregations ?: Dictionary < string , NodeInfoAggregation >
71
+ remote_cluster_server ?: RemoveClusterServer
72
+ }
73
+
74
+ export class RemoveClusterServer {
75
+ bound_address : TransportAddress [ ]
76
+ publish_address : TransportAddress
67
77
}
68
78
69
79
export class NodeInfoSettings {
@@ -133,7 +143,7 @@ export class NodeInfoSettingsCluster {
133
143
name : Name
134
144
routing ?: IndexRouting
135
145
election : NodeInfoSettingsClusterElection
136
- initial_master_nodes ?: string [ ]
146
+ initial_master_nodes ?: string [ ] | string
137
147
/**
138
148
* @availability stack since=7.16.0
139
149
* @availability serverless
@@ -176,7 +186,7 @@ export class NodeInfoRepositoriesUrl {
176
186
export class NodeInfoDiscover
177
187
implements AdditionalProperties < string , UserDefinedValue >
178
188
{
179
- seed_hosts ?: string [ ]
189
+ seed_hosts ?: string [ ] | string
180
190
type ?: string
181
191
seed_providers ?: string [ ]
182
192
}
@@ -209,6 +219,11 @@ export class NodeInfoSettingsTransport {
209
219
type : NodeInfoSettingsTransportType
210
220
'type.default' ?: string // TODO this clashes with NodeInfoSettingsTransportType
211
221
features ?: NodeInfoSettingsTransportFeatures
222
+ /**
223
+ * Only used in unit tests
224
+ * @availability stack visibility=private
225
+ * */
226
+ ignore_deserialization_errors ?: Stringified < boolean >
212
227
}
213
228
214
229
/** @shortcut_property default */
@@ -333,17 +348,6 @@ export class NodeInfoMemory {
333
348
total_in_bytes : long
334
349
}
335
350
336
- export class NodeInfoNetwork {
337
- primary_interface : NodeInfoNetworkInterface
338
- refresh_interval : integer
339
- }
340
-
341
- export class NodeInfoNetworkInterface {
342
- address : string
343
- mac_address : string
344
- name : Name
345
- }
346
-
347
351
export class NodeInfoOSCPU {
348
352
cache_size : string
349
353
cache_size_in_bytes : integer
@@ -371,7 +375,6 @@ export class NodeJvmInfo {
371
375
vm_name : Name
372
376
vm_vendor : string
373
377
vm_version : VersionString
374
- /** @aliases bundled_jdk */
375
378
using_bundled_jdk : boolean
376
379
using_compressed_ordinary_object_pointers ?: boolean | string
377
380
input_arguments : string [ ]
0 commit comments