Skip to content

Commit

Permalink
Add roles to cluster.allocation_explain response (#2874)
Browse files Browse the repository at this point in the history
* Add roles to cluster.allocation_explain response

* Switch to NodeRoles
  • Loading branch information
pquentin authored Sep 9, 2024
1 parent cb2c9a0 commit 3dc9de9
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 41 deletions.
60 changes: 34 additions & 26 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions output/schema/schema-serverless.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 48 additions & 12 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions specification/cluster/allocation_explain/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import { Dictionary } from '@spec_utils/Dictionary'
import { Id, Name } from '@_types/common'
import { TransportAddress } from '@_types/Networking'
import { NodeRoles } from '@_types/Node'
import { double, integer, long } from '@_types/Numeric'
import { DateTime } from '@_types/Time'

Expand Down Expand Up @@ -78,6 +79,11 @@ export class ReservedSize {
export class CurrentNode {
id: Id
name: Name
/**
* @availability stack since=8.11.0 stability=stable
* @availability serverless
*/
roles: NodeRoles
attributes: Dictionary<string, string>
transport_address: TransportAddress
weight_ranking: integer
Expand All @@ -100,6 +106,11 @@ export class NodeAllocationExplanation {
node_decision: Decision
node_id: Id
node_name: Name
/**
* @availability stack since=8.11.0 stability=stable
* @availability serverless
*/
roles: NodeRoles
store?: AllocationStore
transport_address: TransportAddress
weight_ranking: integer
Expand Down

0 comments on commit 3dc9de9

Please sign in to comment.