Class ClusterShardMetrics
java.lang.Object
org.opensearch.client.opensearch.cluster.stats.ClusterShardMetrics
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ClusterShardMetrics.Builder,ClusterShardMetrics>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ClusterShardMetrics
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<ClusterShardMetrics.Builder,ClusterShardMetrics>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ClusterShardMetrics> Json deserializer forClusterShardMetrics -
Method Summary
Modifier and TypeMethodDescriptionfinal doubleavg()Required - Mean number of shards in an index, counting only shards assigned to selected nodes.static ClusterShardMetrics.Builderbuilder()booleaninthashCode()final doublemax()Required - Maximum number of shards in an index, counting only shards assigned to selected nodes.final doublemin()Required - Minimum number of shards in an index, counting only shards assigned to selected nodes.static ClusterShardMetricsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forClusterShardMetrics
-
-
Method Details
-
of
public static ClusterShardMetrics of(Function<ClusterShardMetrics.Builder, ObjectBuilder<ClusterShardMetrics>> fn) -
avg
public final double avg()Required - Mean number of shards in an index, counting only shards assigned to selected nodes.API name:
avg -
max
public final double max()Required - Maximum number of shards in an index, counting only shards assigned to selected nodes.API name:
max -
min
public final double min()Required - Minimum number of shards in an index, counting only shards assigned to selected nodes.API name:
min -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ClusterShardMetrics.Builder,ClusterShardMetrics> - Returns:
- a new builder instance.
-
builder
-
setupClusterShardMetricsDeserializer
protected static void setupClusterShardMetricsDeserializer(ObjectDeserializer<ClusterShardMetrics.Builder> op) -
hashCode
public int hashCode() -
equals
-