Skip to content

Commit 765a609

Browse files
authored
Add shards_capacity to health_report (#2146)
1 parent 4f48c27 commit 765a609

File tree

3 files changed

+157
-22
lines changed

3 files changed

+157
-22
lines changed

output/schema/schema.json

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

specification/_global/health_report/types.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export class Indicators {
3636
repository_integrity?: RepositoryIntegrityIndicator
3737
ilm?: IlmIndicator
3838
slm?: SlmIndicator
39+
shards_capacity?: ShardsCapacityIndicator
3940
}
4041

4142
export class BaseIndicator {
@@ -166,3 +167,19 @@ export class SlmIndicatorUnhealthyPolicies {
166167
count: long
167168
invocations_since_last_success?: Dictionary<string, long>
168169
}
170+
171+
/** SHARDS_CAPACITY */
172+
173+
export class ShardsCapacityIndicator extends BaseIndicator {
174+
details?: ShardsCapacityIndicatorDetails
175+
}
176+
177+
export class ShardsCapacityIndicatorDetails {
178+
data: ShardsCapacityIndicatorTierDetail
179+
frozen: ShardsCapacityIndicatorTierDetail
180+
}
181+
182+
export class ShardsCapacityIndicatorTierDetail {
183+
max_shards_in_cluster: integer
184+
current_used_shards?: integer
185+
}

0 commit comments

Comments
 (0)