Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions specification/cluster/health/ClusterHealthRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import {
WaitForActiveShards,
WaitForEvents
} from '@_types/common'
import { integer } from '@_types/Numeric'
import { Duration } from '@_types/Time'
import { WaitForNodes } from './types'

/**
* Get the cluster health status.
Expand Down Expand Up @@ -99,7 +99,7 @@ export interface Request extends RequestBase {
/**
* The request waits until the specified number N of nodes is available. It also accepts >=N, <=N, >N and <N. Alternatively, it is possible to use ge(N), le(N), gt(N) and lt(N) notation.
*/
wait_for_nodes?: string | integer
wait_for_nodes?: WaitForNodes
/**
* A boolean value which controls whether to wait (until the timeout provided) for the cluster to have no shard initializations. Defaults to false, which means it will not wait for initializing shards.
* @server_default false
Expand Down
2 changes: 2 additions & 0 deletions specification/cluster/health/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ export class ShardHealthStats {
unassigned_shards: integer
unassigned_primary_shards: integer
}

export type WaitForNodes = string | integer