Class IndexHealthStats
java.lang.Object
co.elastic.clients.elasticsearch.cluster.health.IndexHealthStats
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class IndexHealthStats extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IndexHealthStats.Builder
Builder forIndexHealthStats
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<IndexHealthStats>
_DESERIALIZER
Json deserializer forIndexHealthStats
-
Method Summary
Modifier and Type Method Description int
activePrimaryShards()
Required - API name:active_primary_shards
int
activeShards()
Required - API name:active_shards
int
initializingShards()
Required - API name:initializing_shards
int
numberOfReplicas()
Required - API name:number_of_replicas
int
numberOfShards()
Required - API name:number_of_shards
static IndexHealthStats
of(java.util.function.Function<IndexHealthStats.Builder,ObjectBuilder<IndexHealthStats>> fn)
int
relocatingShards()
Required - API name:relocating_shards
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupIndexHealthStatsDeserializer(ObjectDeserializer<IndexHealthStats.Builder> op)
java.util.Map<java.lang.String,ShardHealthStats>
shards()
API name:shards
HealthStatus
status()
Required - API name:status
int
unassignedShards()
Required - API name:unassigned_shards
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forIndexHealthStats
-
-
Method Details
-
of
public static IndexHealthStats of(java.util.function.Function<IndexHealthStats.Builder,ObjectBuilder<IndexHealthStats>> fn) -
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
API name:shards
-
status
Required - API name:status
-
unassignedShards
public final int unassignedShards()Required - API name:unassigned_shards
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupIndexHealthStatsDeserializer
protected static void setupIndexHealthStatsDeserializer(ObjectDeserializer<IndexHealthStats.Builder> op)
-