Class IndexHealthStats

java.lang.Object
co.elastic.clients.elasticsearch.cluster.health.IndexHealthStats
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class IndexHealthStats extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • activePrimaryShards

      public final int activePrimaryShards()
      Required - API name: active_primary_shards
    • activeShards

      public final int activeShards()
      Required - API name: active_shards
    • initializingShards

      public final int initializingShards()
      Required - API name: initializing_shards
    • numberOfReplicas

      public final int numberOfReplicas()
      Required - API name: number_of_replicas
    • numberOfShards

      public final int numberOfShards()
      Required - API name: number_of_shards
    • relocatingShards

      public final int relocatingShards()
      Required - API name: relocating_shards
    • shards

      public final Map<String,ShardHealthStats> shards()
      API name: shards
    • status

      public final HealthStatus status()
      Required - API name: status
    • unassignedShards

      public final int unassignedShards()
      Required - API name: unassigned_shards
    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupIndexHealthStatsDeserializer

      protected static void setupIndexHealthStatsDeserializer(ObjectDeserializer<IndexHealthStats.Builder> op)