Skip to content

[Backport 8.x] Missing field and wrong value in ClusterHealthResponse #4209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions specification/cluster/health/ClusterHealthResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -41,8 +41,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. */
Expand Down