From 0dabaccf35b1504dd69194acc66e03b1b16d7b08 Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Mon, 7 Apr 2025 13:53:38 +0200 Subject: [PATCH] missing field and wrong value (#4193) (cherry picked from commit 33f1884b1b0b8a1325f04f53f456648906dcf34f) --- specification/cluster/health/ClusterHealthResponse.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/specification/cluster/health/ClusterHealthResponse.ts b/specification/cluster/health/ClusterHealthResponse.ts index 053c56856a..70763b6c34 100644 --- a/specification/cluster/health/ClusterHealthResponse.ts +++ b/specification/cluster/health/ClusterHealthResponse.ts @@ -19,7 +19,7 @@ import { Dictionary } from '@spec_utils/Dictionary' import { HealthStatus, IndexName, Name } from '@_types/common' -import { integer, Percentage } from '@_types/Numeric' +import { double, integer } from '@_types/Numeric' import { Duration, DurationValue, UnitMillis } from '@_types/Time' import { IndexHealthStats } from './types' @@ -42,8 +42,10 @@ export class HealthResponseBody { active_primary_shards: integer /** The total number of active primary and replica shards. */ active_shards: integer + /** The ratio of active shards in the cluster expressed as a string formatted percentage. */ + active_shards_percent?: string /** The ratio of active shards in the cluster expressed as a percentage. */ - active_shards_percent_as_number: Percentage + active_shards_percent_as_number: double /** The name of the cluster. */ cluster_name: Name /** The number of shards whose allocation has been delayed by the timeout settings. */