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,9 +35,11 @@ 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
@@ -59,6 +62,8 @@ export class NodeInfo {
59
62
transport ?: NodeInfoTransport
60
63
/** Host and port where transport HTTP connections are accepted. */
61
64
transport_address : TransportAddress
65
+ transport_version ?: VersionNumber
66
+
62
67
/** Elasticsearch version running on this node. */
63
68
version : VersionString
64
69
modules ?: PluginStats [ ]
@@ -133,7 +138,7 @@ export class NodeInfoSettingsCluster {
133
138
name : Name
134
139
routing ?: IndexRouting
135
140
election : NodeInfoSettingsClusterElection
136
- initial_master_nodes ?: string [ ]
141
+ initial_master_nodes ?: string [ ] | string
137
142
/**
138
143
* @availability stack since=7.16.0
139
144
* @availability serverless
@@ -176,7 +181,7 @@ export class NodeInfoRepositoriesUrl {
176
181
export class NodeInfoDiscover
177
182
implements AdditionalProperties < string , UserDefinedValue >
178
183
{
179
- seed_hosts ?: string [ ]
184
+ seed_hosts ?: string [ ] | string
180
185
type ?: string
181
186
seed_providers ?: string [ ]
182
187
}
@@ -209,6 +214,11 @@ export class NodeInfoSettingsTransport {
209
214
type : NodeInfoSettingsTransportType
210
215
'type.default' ?: string // TODO this clashes with NodeInfoSettingsTransportType
211
216
features ?: NodeInfoSettingsTransportFeatures
217
+ /**
218
+ * Only used in unit tests
219
+ * @availability stack visibility=private
220
+ * */
221
+ ignore_deserialization_errors ?: Stringified < boolean >
212
222
}
213
223
214
224
/** @shortcut_property default */
@@ -371,7 +381,6 @@ export class NodeJvmInfo {
371
381
vm_name : Name
372
382
vm_vendor : string
373
383
vm_version : VersionString
374
- /** @aliases bundled_jdk */
375
384
using_bundled_jdk : boolean
376
385
using_compressed_ordinary_object_pointers ?: boolean | string
377
386
input_arguments : string [ ]
0 commit comments