Class ClusterStatsResponse
- java.lang.Object
-
- org.opensearch.client.opensearch.nodes.NodesResponseBase
-
- org.opensearch.client.opensearch.cluster.ClusterStatsResponse
-
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ClusterStatsResponse extends NodesResponseBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClusterStatsResponse.BuilderBuilder forClusterStatsResponse.-
Nested classes/interfaces inherited from class org.opensearch.client.opensearch.nodes.NodesResponseBase
NodesResponseBase.AbstractBuilder<BuilderT extends NodesResponseBase.AbstractBuilder<BuilderT>>
-
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ClusterStatsResponse>_DESERIALIZERJson deserializer forClusterStatsResponse
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringclusterName()Required - Name of the cluster, based on the Cluster name setting setting.java.lang.StringclusterUuid()Required - Unique identifier for the cluster.ClusterIndicesindices()Required - Contains statistics about indices with shards assigned to selected nodes.ClusterNodesnodes()Required - Contains statistics about nodes selected by the request's node filters.static ClusterStatsResponseof(java.util.function.Function<ClusterStatsResponse.Builder,ObjectBuilder<ClusterStatsResponse>> fn)protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupClusterStatsResponseDeserializer(ObjectDeserializer<ClusterStatsResponse.Builder> op)HealthStatusstatus()Required - Health status of the cluster, based on the state of its primary and replica shards.longtimestamp()Required - Unix timestamp, in milliseconds, of the last time the cluster statistics were refreshed.-
Methods inherited from class org.opensearch.client.opensearch.nodes.NodesResponseBase
nodeStats, serialize, setupNodesResponseBaseDeserializer
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<ClusterStatsResponse> _DESERIALIZER
Json deserializer forClusterStatsResponse
-
-
Method Detail
-
of
public static ClusterStatsResponse of(java.util.function.Function<ClusterStatsResponse.Builder,ObjectBuilder<ClusterStatsResponse>> fn)
-
clusterName
public final java.lang.String clusterName()
Required - Name of the cluster, based on the Cluster name setting setting.API name:
cluster_name
-
clusterUuid
public final java.lang.String clusterUuid()
Required - Unique identifier for the cluster.API name:
cluster_uuid
-
indices
public final ClusterIndices indices()
Required - Contains statistics about indices with shards assigned to selected nodes.API name:
indices
-
nodes
public final ClusterNodes nodes()
Required - Contains statistics about nodes selected by the request's node filters.API name:
nodes
-
status
public final HealthStatus status()
Required - Health status of the cluster, based on the state of its primary and replica shards.API name:
status
-
timestamp
public final long timestamp()
Required - Unix timestamp, in milliseconds, of the last time the cluster statistics were refreshed.API name:
timestamp
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Overrides:
serializeInternalin classNodesResponseBase
-
setupClusterStatsResponseDeserializer
protected static void setupClusterStatsResponseDeserializer(ObjectDeserializer<ClusterStatsResponse.Builder> op)
-
-