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

output/openapi/elasticsearch-openapi.json

Lines changed: 34 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema-serverless.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 48 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/cluster/allocation_explain/types.ts

Lines changed: 11 additions & 0 deletions
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)