Class HealthRecord

java.lang.Object
org.opensearch.client.opensearch.cat.health.HealthRecord
All Implemented Interfaces:
JsonpSerializable, PlainJsonSerializable, ToCopyableBuilder<HealthRecord.Builder,HealthRecord>

@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class HealthRecord extends Object implements PlainJsonSerializable, ToCopyableBuilder<HealthRecord.Builder,HealthRecord>
  • Field Details

  • Method Details

    • of

    • activeShardsPercent

      @Nullable public final String activeShardsPercent()
      active number of shards in percent

      API name: active_shards_percent

    • cluster

      @Nullable public final String cluster()
      cluster name

      API name: cluster

    • discoveredClusterManager

      @Nullable public final String discoveredClusterManager()
      cluster manager is discovered or not

      API name: discovered_cluster_manager

    • epoch

      @Nullable public final Long epoch()
      API name: epoch
    • init

      @Nullable public final String init()
      number of initializing nodes

      API name: init

    • maxTaskWaitTime

      @Nullable public final String maxTaskWaitTime()
      wait time of longest task pending

      API name: max_task_wait_time

    • nodeData

      @Nullable public final String nodeData()
      number of nodes that can store data

      API name: node.data

    • nodeTotal

      @Nullable public final String nodeTotal()
      total number of nodes

      API name: node.total

    • pendingTasks

      @Nullable public final String pendingTasks()
      number of pending tasks

      API name: pending_tasks

    • pri

      @Nullable public final String pri()
      number of primary shards

      API name: pri

    • relo

      @Nullable public final String relo()
      number of relocating nodes

      API name: relo

    • shards

      @Nullable public final String shards()
      total number of shards

      API name: shards

    • status

      @Nullable public final String status()
      health status

      API name: status

    • timestamp

      @Nullable public final String timestamp()
      API name: timestamp
    • unassign

      @Nullable public final String unassign()
      number of unassigned shards

      API name: unassign

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toBuilder

      @Nonnull public HealthRecord.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Create a new builder ToCopyableBuilder that is initialised with the current state of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<HealthRecord.Builder,HealthRecord>
      Returns:
      a new builder instance.
    • builder

      @Nonnull public static HealthRecord.Builder builder()
    • setupHealthRecordDeserializer

      protected static void setupHealthRecordDeserializer(ObjectDeserializer<HealthRecord.Builder> op)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object