Skip to content

Commit 3dc9de9

Browse files
authored
Add roles to cluster.allocation_explain response (#2874)
* Add roles to cluster.allocation_explain response * Switch to NodeRoles
1 parent cb2c9a0 commit 3dc9de9

File tree

5 files changed

+98
-41
lines changed

5 files changed

+98
-41
lines changed

Diff for: output/openapi/elasticsearch-openapi.json

+34-26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: output/schema/schema-serverless.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: output/schema/schema.json

+48-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: output/typescript/types.ts

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: specification/cluster/allocation_explain/types.ts

+11
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import { Dictionary } from '@spec_utils/Dictionary'
2121
import { Id, Name } from '@_types/common'
2222
import { TransportAddress } from '@_types/Networking'
23+
import { NodeRoles } from '@_types/Node'
2324
import { double, integer, long } from '@_types/Numeric'
2425
import { DateTime } from '@_types/Time'
2526

@@ -78,6 +79,11 @@ export class ReservedSize {
7879
export class CurrentNode {
7980
id: Id
8081
name: Name
82+
/**
83+
* @availability stack since=8.11.0 stability=stable
84+
* @availability serverless
85+
*/
86+
roles: NodeRoles
8187
attributes: Dictionary<string, string>
8288
transport_address: TransportAddress
8389
weight_ranking: integer
@@ -100,6 +106,11 @@ export class NodeAllocationExplanation {
100106
node_decision: Decision
101107
node_id: Id
102108
node_name: Name
109+
/**
110+
* @availability stack since=8.11.0 stability=stable
111+
* @availability serverless
112+
*/
113+
roles: NodeRoles
103114
store?: AllocationStore
104115
transport_address: TransportAddress
105116
weight_ranking: integer

0 commit comments

Comments
 (0)