From b4ee38a10f17293903dedb8d934972cd82284528 Mon Sep 17 00:00:00 2001 From: Patrick Doyle <810052+prdoyle@users.noreply.github.com> Date: Fri, 22 Nov 2024 13:06:17 -0500 Subject: [PATCH] File settings health indicator (#3173) --- output/schema/schema.json | 127 +++++++++++++++---- output/typescript/types.ts | 10 ++ specification/_global/health_report/types.ts | 12 ++ 3 files changed, 121 insertions(+), 28 deletions(-) diff --git a/output/schema/schema.json b/output/schema/schema.json index 1ab096a06f..bda36d8ceb 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -25219,7 +25219,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L43-L48" + "specLocation": "_global/health_report/types.ts#L44-L49" }, { "kind": "interface", @@ -25265,7 +25265,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L152-L156" + "specLocation": "_global/health_report/types.ts#L153-L157" }, { "kind": "interface", @@ -25293,7 +25293,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L147-L151" + "specLocation": "_global/health_report/types.ts#L148-L152" }, { "kind": "interface", @@ -25358,7 +25358,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L50-L56" + "specLocation": "_global/health_report/types.ts#L51-L57" }, { "kind": "interface", @@ -25435,7 +25435,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L58-L64" + "specLocation": "_global/health_report/types.ts#L59-L65" }, { "kind": "interface", @@ -25463,7 +25463,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L123-L127" + "specLocation": "_global/health_report/types.ts#L124-L128" }, { "kind": "interface", @@ -25528,7 +25528,67 @@ } } ], - "specLocation": "_global/health_report/types.ts#L128-L134" + "specLocation": "_global/health_report/types.ts#L129-L135" + }, + { + "kind": "interface", + "description": "FILE_SETTINGS", + "inherits": { + "type": { + "name": "BaseIndicator", + "namespace": "_global.health_report" + } + }, + "name": { + "name": "FileSettingsIndicator", + "namespace": "_global.health_report" + }, + "properties": [ + { + "name": "details", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "FileSettingsIndicatorDetails", + "namespace": "_global.health_report" + } + } + } + ], + "specLocation": "_global/health_report/types.ts#L207-L211" + }, + { + "kind": "interface", + "name": { + "name": "FileSettingsIndicatorDetails", + "namespace": "_global.health_report" + }, + "properties": [ + { + "name": "failure_streak", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "long", + "namespace": "_types" + } + } + }, + { + "name": "most_recent_failure", + "required": true, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } + } + ], + "specLocation": "_global/health_report/types.ts#L213-L216" }, { "kind": "interface", @@ -25556,7 +25616,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L163-L167" + "specLocation": "_global/health_report/types.ts#L164-L168" }, { "kind": "interface", @@ -25599,7 +25659,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L168-L172" + "specLocation": "_global/health_report/types.ts#L169-L173" }, { "kind": "interface", @@ -25656,7 +25716,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L66-L71" + "specLocation": "_global/health_report/types.ts#L67-L72" }, { "kind": "enum", @@ -25678,7 +25738,7 @@ "name": "ImpactArea", "namespace": "_global.health_report" }, - "specLocation": "_global/health_report/types.ts#L73-L78" + "specLocation": "_global/health_report/types.ts#L74-L79" }, { "kind": "enum", @@ -25756,7 +25816,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L91-L94" + "specLocation": "_global/health_report/types.ts#L92-L95" }, { "kind": "interface", @@ -25852,9 +25912,20 @@ "namespace": "_global.health_report" } } + }, + { + "name": "file_settings", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "FileSettingsIndicator", + "namespace": "_global.health_report" + } + } } ], - "specLocation": "_global/health_report/types.ts#L32-L41" + "specLocation": "_global/health_report/types.ts#L32-L42" }, { "kind": "interface", @@ -25882,7 +25953,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L80-L84" + "specLocation": "_global/health_report/types.ts#L81-L85" }, { "kind": "interface", @@ -25925,7 +25996,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L99-L103" + "specLocation": "_global/health_report/types.ts#L100-L104" }, { "kind": "interface", @@ -25985,7 +26056,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L85-L90" + "specLocation": "_global/health_report/types.ts#L86-L91" }, { "kind": "interface", @@ -26017,7 +26088,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L95-L98" + "specLocation": "_global/health_report/types.ts#L96-L99" }, { "kind": "interface", @@ -26045,7 +26116,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L136-L140" + "specLocation": "_global/health_report/types.ts#L137-L141" }, { "kind": "interface", @@ -26091,7 +26162,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L141-L145" + "specLocation": "_global/health_report/types.ts#L142-L146" }, { "kind": "request", @@ -26255,7 +26326,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L105-L109" + "specLocation": "_global/health_report/types.ts#L106-L110" }, { "kind": "interface", @@ -26375,7 +26446,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L110-L121" + "specLocation": "_global/health_report/types.ts#L111-L122" }, { "kind": "interface", @@ -26403,7 +26474,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L190-L194" + "specLocation": "_global/health_report/types.ts#L191-L195" }, { "kind": "interface", @@ -26435,7 +26506,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L196-L199" + "specLocation": "_global/health_report/types.ts#L197-L200" }, { "kind": "interface", @@ -26467,7 +26538,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L201-L204" + "specLocation": "_global/health_report/types.ts#L202-L205" }, { "kind": "interface", @@ -26495,7 +26566,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L174-L178" + "specLocation": "_global/health_report/types.ts#L175-L179" }, { "kind": "interface", @@ -26538,7 +26609,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L179-L183" + "specLocation": "_global/health_report/types.ts#L180-L184" }, { "kind": "interface", @@ -26581,7 +26652,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L185-L188" + "specLocation": "_global/health_report/types.ts#L186-L189" }, { "kind": "interface", @@ -26624,7 +26695,7 @@ } } ], - "specLocation": "_global/health_report/types.ts#L157-L161" + "specLocation": "_global/health_report/types.ts#L158-L162" }, { "kind": "request", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index e5e83423c7..8c4547d376 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -502,6 +502,15 @@ export interface HealthReportDiskIndicatorDetails { nodes_with_unknown_disk_status: long } +export interface HealthReportFileSettingsIndicator extends HealthReportBaseIndicator { + details?: HealthReportFileSettingsIndicatorDetails +} + +export interface HealthReportFileSettingsIndicatorDetails { + failure_streak: long + most_recent_failure: string +} + export interface HealthReportIlmIndicator extends HealthReportBaseIndicator { details?: HealthReportIlmIndicatorDetails } @@ -537,6 +546,7 @@ export interface HealthReportIndicators { ilm?: HealthReportIlmIndicator slm?: HealthReportSlmIndicator shards_capacity?: HealthReportShardsCapacityIndicator + file_settings?: HealthReportFileSettingsIndicator } export interface HealthReportMasterIsStableIndicator extends HealthReportBaseIndicator { diff --git a/specification/_global/health_report/types.ts b/specification/_global/health_report/types.ts index dd1de29637..f35d802357 100644 --- a/specification/_global/health_report/types.ts +++ b/specification/_global/health_report/types.ts @@ -38,6 +38,7 @@ export class Indicators { ilm?: IlmIndicator slm?: SlmIndicator shards_capacity?: ShardsCapacityIndicator + file_settings?: FileSettingsIndicator } export class BaseIndicator { @@ -202,3 +203,14 @@ export class ShardsCapacityIndicatorTierDetail { max_shards_in_cluster: integer current_used_shards?: integer } + +/** FILE_SETTINGS **/ + +export class FileSettingsIndicator extends BaseIndicator { + details?: FileSettingsIndicatorDetails +} + +export class FileSettingsIndicatorDetails { + failure_streak: long + most_recent_failure: string +}