Skip to content

Commit 474e637

Browse files
authored
Add unassigned primary shards to health reports (#2851)
1 parent c2d75d9 commit 474e637

File tree

6 files changed

+90
-6
lines changed

6 files changed

+90
-6
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 19 additions & 2 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: 55 additions & 4 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: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/cat/health/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ export class HealthRecord {
7171
* @aliases i,shards.initializing,shardsInitializing
7272
*/
7373
'init'?: string
74+
/**
75+
* number of unassigned primary shards
76+
* @aliases up,shards.unassigned.primary,shardsUnassignedPrimary
77+
*/
78+
'unassign.pri'?: string
7479
/**
7580
* number of unassigned shards
7681
* @aliases u,shards.unassigned,shardsUnassigned

specification/cluster/health/ClusterHealthResponse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ export class HealthResponseBody {
6767
task_max_waiting_in_queue_millis: DurationValue<UnitMillis>
6868
/** If false the response returned within the period of time that is specified by the timeout parameter (30s by default) */
6969
timed_out: boolean
70+
/** The number of primary shards that are not allocated. */
71+
unassigned_primary_shards: integer
7072
/** The number of shards that are not allocated. */
7173
unassigned_shards: integer
7274
}

specification/cluster/health/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export class IndexHealthStats {
3131
shards?: Dictionary<string, ShardHealthStats>
3232
status: HealthStatus
3333
unassigned_shards: integer
34+
unassigned_primary_shards: integer
3435
}
3536

3637
export class ShardHealthStats {
@@ -40,4 +41,5 @@ export class ShardHealthStats {
4041
relocating_shards: integer
4142
status: HealthStatus
4243
unassigned_shards: integer
44+
unassigned_primary_shards: integer
4345
}

0 commit comments

Comments
 (0)