Class IndexHealthStats
- java.lang.Object
-
- org.opensearch.client.opensearch.cluster.health.IndexHealthStats
-
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class IndexHealthStats extends java.lang.Object implements JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndexHealthStats.BuilderBuilder forIndexHealthStats.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<IndexHealthStats>_DESERIALIZERJson deserializer forIndexHealthStats
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intactivePrimaryShards()Required - API name:active_primary_shardsintactiveShards()Required - API name:active_shardsintinitializingShards()Required - API name:initializing_shardsintnumberOfReplicas()Required - API name:number_of_replicasintnumberOfShards()Required - API name:number_of_shardsstatic IndexHealthStatsof(java.util.function.Function<IndexHealthStats.Builder,ObjectBuilder<IndexHealthStats>> fn)intrelocatingShards()Required - API name:relocating_shardsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupIndexHealthStatsDeserializer(ObjectDeserializer<IndexHealthStats.Builder> op)java.util.Map<java.lang.String,ShardHealthStats>shards()API name:shardsHealthStatusstatus()Required - API name:statusintunassignedShards()Required - API name:unassigned_shards
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<IndexHealthStats> _DESERIALIZER
Json deserializer forIndexHealthStats
-
-
Method Detail
-
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
public final java.util.Map<java.lang.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:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupIndexHealthStatsDeserializer
protected static void setupIndexHealthStatsDeserializer(ObjectDeserializer<IndexHealthStats.Builder> op)
-
-