Skip to content

Commit 902b212

Browse files
committed
fix node info res
1 parent 07be12f commit 902b212

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

specification/nodes/info/types.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* under the License.
1818
*/
1919

20-
import { ByteSize, Name, VersionString } from '@_types/common'
20+
import { ByteSize, Name, VersionNumber, VersionString } from '@_types/common'
2121
import { Host, Ip, TransportAddress } from '@_types/Networking'
2222
import { NodeRoles } from '@_types/Node'
2323
import { integer, long } from '@_types/Numeric'
@@ -26,6 +26,7 @@ import { Duration, DurationValue, EpochTime, UnitMillis } from '@_types/Time'
2626
import { IndexRouting } from '@indices/_types/IndexRouting'
2727
import { AdditionalProperties } from '@spec_utils/behaviors'
2828
import { Dictionary } from '@spec_utils/Dictionary'
29+
import { Stringified } from '@spec_utils/Stringified'
2930
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
3031

3132
export class NodeInfo {
@@ -34,9 +35,11 @@ export class NodeInfo {
3435
/** Short hash of the last git commit in this release. */
3536
build_hash: string
3637
build_type: string
38+
component_versions: Dictionary<Name, integer>
3739
/** The node’s host name. */
3840
host: Host
3941
http?: NodeInfoHttp
42+
index_version: VersionNumber
4043
/** The node’s IP address. */
4144
ip: Ip
4245
jvm?: NodeJvmInfo
@@ -59,6 +62,8 @@ export class NodeInfo {
5962
transport?: NodeInfoTransport
6063
/** Host and port where transport HTTP connections are accepted. */
6164
transport_address: TransportAddress
65+
transport_version?: VersionNumber
66+
6267
/** Elasticsearch version running on this node. */
6368
version: VersionString
6469
modules?: PluginStats[]
@@ -133,7 +138,7 @@ export class NodeInfoSettingsCluster {
133138
name: Name
134139
routing?: IndexRouting
135140
election: NodeInfoSettingsClusterElection
136-
initial_master_nodes?: string[]
141+
initial_master_nodes?: string[] | string
137142
/**
138143
* @availability stack since=7.16.0
139144
* @availability serverless
@@ -176,7 +181,7 @@ export class NodeInfoRepositoriesUrl {
176181
export class NodeInfoDiscover
177182
implements AdditionalProperties<string, UserDefinedValue>
178183
{
179-
seed_hosts?: string[]
184+
seed_hosts?: string[] | string
180185
type?: string
181186
seed_providers?: string[]
182187
}
@@ -209,6 +214,11 @@ export class NodeInfoSettingsTransport {
209214
type: NodeInfoSettingsTransportType
210215
'type.default'?: string // TODO this clashes with NodeInfoSettingsTransportType
211216
features?: NodeInfoSettingsTransportFeatures
217+
/**
218+
* Only used in unit tests
219+
* @availability stack visibility=private
220+
* */
221+
ignore_deserialization_errors?: Stringified<boolean>
212222
}
213223

214224
/** @shortcut_property default */
@@ -371,7 +381,6 @@ export class NodeJvmInfo {
371381
vm_name: Name
372382
vm_vendor: string
373383
vm_version: VersionString
374-
/** @aliases bundled_jdk */
375384
using_bundled_jdk: boolean
376385
using_compressed_ordinary_object_pointers?: boolean | string
377386
input_arguments: string[]

0 commit comments

Comments
 (0)