Skip to content

Commit 8d5f297

Browse files
committed
Add roles to cluster.allocation_explain response
1 parent 34639ba commit 8d5f297

File tree

5 files changed

+105
-34
lines changed

5 files changed

+105
-34
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 35 additions & 19 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: 54 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 { NodeRole } 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: NodeRole[]
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: NodeRole[]
103114
store?: AllocationStore
104115
transport_address: TransportAddress
105116
weight_ranking: integer

0 commit comments

Comments
 (0)