Skip to content

Commit a0ae9a2

Browse files
Introduce WaitForNodes alias type (#4205) (#4208)
(cherry picked from commit 8f14e66) Co-authored-by: Florian Bernd <[email protected]>
1 parent eb1a4c4 commit a0ae9a2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

specification/cluster/health/ClusterHealthRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import {
2626
WaitForActiveShards,
2727
WaitForEvents
2828
} from '@_types/common'
29-
import { integer } from '@_types/Numeric'
3029
import { Duration } from '@_types/Time'
30+
import { WaitForNodes } from './types'
3131

3232
/**
3333
* Get the cluster health status.
@@ -99,7 +99,7 @@ export interface Request extends RequestBase {
9999
/**
100100
* 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.
101101
*/
102-
wait_for_nodes?: string | integer
102+
wait_for_nodes?: WaitForNodes
103103
/**
104104
* 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.
105105
* @server_default false

specification/cluster/health/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,5 @@ export class ShardHealthStats {
4343
unassigned_shards: integer
4444
unassigned_primary_shards: integer
4545
}
46+
47+
export type WaitForNodes = string | integer

0 commit comments

Comments
 (0)