[[reference-shared-types-health_report]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// == Shared HealthReport types [discrete] [[HealthReportBaseIndicator]] === HealthReportBaseIndicator [pass] ++++
++++
interface HealthReportBaseIndicator {
  status: <>
  symptom: string
  impacts?: <>[]
  diagnosis?: <>[]
}
[pass]
++++
++++ [discrete] [[HealthReportDataStreamLifecycleDetails]] === HealthReportDataStreamLifecycleDetails [pass] ++++
++++
interface HealthReportDataStreamLifecycleDetails {
  stagnating_backing_indices_count: <>
  total_backing_indices_in_error: <>
  stagnating_backing_indices?: <>[]
}
[pass]
++++
++++ [discrete] [[HealthReportDataStreamLifecycleIndicator]] === HealthReportDataStreamLifecycleIndicator [pass] ++++
++++
interface HealthReportDataStreamLifecycleIndicator extends <> {
  details?: <>
}
[pass]
++++
++++ [discrete] [[HealthReportDiagnosis]] === HealthReportDiagnosis [pass] ++++
++++
interface HealthReportDiagnosis {
  id: string
  action: string
  affected_resources: <>
  cause: string
  help_url: string
}
[pass]
++++
++++ [discrete] [[HealthReportDiagnosisAffectedResources]] === HealthReportDiagnosisAffectedResources [pass] ++++
++++
interface HealthReportDiagnosisAffectedResources {
  indices?: <>
  nodes?: <>[]
  slm_policies?: string[]
  feature_states?: string[]
  snapshot_repositories?: string[]
}
[pass]
++++
++++ [discrete] [[HealthReportDiskIndicator]] === HealthReportDiskIndicator [pass] ++++
++++
interface HealthReportDiskIndicator extends <> {
  details?: <>
}
[pass]
++++
++++ [discrete] [[HealthReportDiskIndicatorDetails]] === HealthReportDiskIndicatorDetails [pass] ++++
++++
interface HealthReportDiskIndicatorDetails {
  indices_with_readonly_block: <>
  nodes_with_enough_disk_space: <>
  nodes_over_high_watermark: <>
  nodes_over_flood_stage_watermark: <>
  nodes_with_unknown_disk_status: <>
}
[pass]
++++
++++ [discrete] [[HealthReportIlmIndicator]] === HealthReportIlmIndicator [pass] ++++
++++
interface HealthReportIlmIndicator extends <> {
  details?: <>
}
[pass]
++++
++++ [discrete] [[HealthReportIlmIndicatorDetails]] === HealthReportIlmIndicatorDetails [pass] ++++
++++
interface HealthReportIlmIndicatorDetails {
  ilm_status: <>
  policies: <>
  stagnating_indices: <>
}
[pass]
++++
++++ [discrete] [[HealthReportImpact]] === HealthReportImpact [pass] ++++
++++
interface HealthReportImpact {
  description: string
  id: string
  impact_areas: <>[]
  severity: <>
}
[pass]
++++
++++ [discrete] [[HealthReportImpactArea]] === HealthReportImpactArea [pass] ++++
++++
type HealthReportImpactArea = 'search' | 'ingest' | 'backup' | 'deployment_management'
[pass]
++++
++++ [discrete] [[HealthReportIndicatorHealthStatus]] === HealthReportIndicatorHealthStatus [pass] ++++
++++
type HealthReportIndicatorHealthStatus = 'green' | 'yellow' | 'red' | 'unknown'
[pass]
++++
++++ [discrete] [[HealthReportIndicatorNode]] === HealthReportIndicatorNode [pass] ++++
++++
interface HealthReportIndicatorNode {
  name: string | null
  node_id: string | null
}
[pass]
++++
++++ [discrete] [[HealthReportIndicators]] === HealthReportIndicators [pass] ++++
++++
interface HealthReportIndicators {
  master_is_stable?: <>
  shards_availability?: <>
  disk?: <>
  repository_integrity?: <>
  data_stream_lifecycle?: <>
  ilm?: <>
  slm?: <>
  shards_capacity?: <>
}
[pass]
++++
++++ [discrete] [[HealthReportMasterIsStableIndicator]] === HealthReportMasterIsStableIndicator [pass] ++++
++++
interface HealthReportMasterIsStableIndicator extends <> {
  details?: <>
}
[pass]
++++
++++ [discrete] [[HealthReportMasterIsStableIndicatorClusterFormationNode]] === HealthReportMasterIsStableIndicatorClusterFormationNode [pass] ++++
++++
interface HealthReportMasterIsStableIndicatorClusterFormationNode {
  name?: string
  node_id: string
  cluster_formation_message: string
}
[pass]
++++
++++ [discrete] [[HealthReportMasterIsStableIndicatorDetails]] === HealthReportMasterIsStableIndicatorDetails [pass] ++++
++++
interface HealthReportMasterIsStableIndicatorDetails {
  current_master: <>
  recent_masters: <>[]
  exception_fetching_history?: <>
  cluster_formation?: <>[]
}
[pass]
++++
++++ [discrete] [[HealthReportMasterIsStableIndicatorExceptionFetchingHistory]] === HealthReportMasterIsStableIndicatorExceptionFetchingHistory [pass] ++++
++++
interface HealthReportMasterIsStableIndicatorExceptionFetchingHistory {
  message: string
  stack_trace: string
}
[pass]
++++
++++ [discrete] [[HealthReportRepositoryIntegrityIndicator]] === HealthReportRepositoryIntegrityIndicator [pass] ++++
++++
interface HealthReportRepositoryIntegrityIndicator extends <> {
  details?: <>
}
[pass]
++++
++++ [discrete] [[HealthReportRepositoryIntegrityIndicatorDetails]] === HealthReportRepositoryIntegrityIndicatorDetails [pass] ++++
++++
interface HealthReportRepositoryIntegrityIndicatorDetails {
  total_repositories?: <>
  corrupted_repositories?: <>
  corrupted?: string[]
}
[pass]
++++
++++ [discrete] [[HealthReportRequest]] === HealthReportRequest [pass] ++++
++++
interface HealthReportRequest extends <> {
  feature?: string | string[]
  timeout?: <>
  verbose?: boolean
  size?: <>
}
[pass]
++++
++++ [discrete] [[HealthReportResponse]] === HealthReportResponse [pass] ++++
++++
interface HealthReportResponse {
  cluster_name: string
  indicators: <>
  status?: <>
}
[pass]
++++
++++ [discrete] [[HealthReportShardsAvailabilityIndicator]] === HealthReportShardsAvailabilityIndicator [pass] ++++
++++
interface HealthReportShardsAvailabilityIndicator extends <> {
  details?: <>
}
[pass]
++++
++++ [discrete] [[HealthReportShardsAvailabilityIndicatorDetails]] === HealthReportShardsAvailabilityIndicatorDetails [pass] ++++
++++
interface HealthReportShardsAvailabilityIndicatorDetails {
  creating_primaries: <>
  creating_replicas: <>
  initializing_primaries: <>
  initializing_replicas: <>
  restarting_primaries: <>
  restarting_replicas: <>
  started_primaries: <>
  started_replicas: <>
  unassigned_primaries: <>
  unassigned_replicas: <>
}
[pass]
++++
++++ [discrete] [[HealthReportShardsCapacityIndicator]] === HealthReportShardsCapacityIndicator [pass] ++++
++++
interface HealthReportShardsCapacityIndicator extends <> {
  details?: <>
}
[pass]
++++
++++ [discrete] [[HealthReportShardsCapacityIndicatorDetails]] === HealthReportShardsCapacityIndicatorDetails [pass] ++++
++++
interface HealthReportShardsCapacityIndicatorDetails {
  data: <>
  frozen: <>
}
[pass]
++++
++++ [discrete] [[HealthReportShardsCapacityIndicatorTierDetail]] === HealthReportShardsCapacityIndicatorTierDetail [pass] ++++
++++
interface HealthReportShardsCapacityIndicatorTierDetail {
  max_shards_in_cluster: <>
  current_used_shards?: <>
}
[pass]
++++
++++ [discrete] [[HealthReportSlmIndicator]] === HealthReportSlmIndicator [pass] ++++
++++
interface HealthReportSlmIndicator extends <> {
  details?: <>
}
[pass]
++++
++++ [discrete] [[HealthReportSlmIndicatorDetails]] === HealthReportSlmIndicatorDetails [pass] ++++
++++
interface HealthReportSlmIndicatorDetails {
  slm_status: <>
  policies: <>
  unhealthy_policies?: <>
}
[pass]
++++
++++ [discrete] [[HealthReportSlmIndicatorUnhealthyPolicies]] === HealthReportSlmIndicatorUnhealthyPolicies [pass] ++++
++++
interface HealthReportSlmIndicatorUnhealthyPolicies {
  count: <>
  invocations_since_last_success?: Record>>
}
[pass]
++++
++++ [discrete] [[HealthReportStagnatingBackingIndices]] === HealthReportStagnatingBackingIndices [pass] ++++
++++
interface HealthReportStagnatingBackingIndices {
  index_name: <>
  first_occurrence_timestamp: <>
  retry_count: <>
}
[pass]
++++
++++