Class StatsResponse
java.lang.Object
co.elastic.clients.elasticsearch.nodes.NodesResponseBase
co.elastic.clients.elasticsearch.cluster.StatsResponse
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class StatsResponse extends NodesResponseBase
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StatsResponse.Builder
Builder forStatsResponse
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch.nodes.NodesResponseBase
NodesResponseBase.AbstractBuilder<BuilderT extends NodesResponseBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<StatsResponse>
_DESERIALIZER
Json deserializer forStatsResponse
-
Constructor Summary
Constructors Constructor Description StatsResponse(StatsResponse.Builder builder)
StatsResponse(java.util.function.Function<StatsResponse.Builder,StatsResponse.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.lang.String
clusterName()
Name of the cluster, based on the Cluster name setting setting.java.lang.String
clusterUuid()
Unique identifier for the cluster.ClusterIndices
indices()
Contains statistics about indices with shards assigned to selected nodes.ClusterNodes
nodes()
Contains statistics about nodes selected by the request’s node filters.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupStatsResponseDeserializer(DelegatingDeserializer<StatsResponse.Builder> op)
ClusterStatus
status()
Health status of the cluster, based on the state of its primary and replica shards.long
timestamp()
Unix timestamp, in milliseconds, of the last time the cluster statistics were refreshed.Methods inherited from class co.elastic.clients.elasticsearch.nodes.NodesResponseBase
nodeStats, serialize, setupNodesResponseBaseDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forStatsResponse
-
-
Constructor Details
-
StatsResponse
-
StatsResponse
-
-
Method Details
-
clusterName
public java.lang.String clusterName()Name of the cluster, based on the Cluster name setting setting.API name:
cluster_name
-
clusterUuid
public java.lang.String clusterUuid()Unique identifier for the cluster.API name:
cluster_uuid
-
indices
Contains statistics about indices with shards assigned to selected nodes.API name:
indices
-
nodes
Contains statistics about nodes selected by the request’s node filters.API name:
nodes
-
status
Health status of the cluster, based on the state of its primary and replica shards.API name:
status
-
timestamp
public long timestamp()Unix timestamp, in milliseconds, of the last time the cluster statistics were refreshed.API name:
timestamp
-
serializeInternal
- Overrides:
serializeInternal
in classNodesResponseBase
-
setupStatsResponseDeserializer
protected static void setupStatsResponseDeserializer(DelegatingDeserializer<StatsResponse.Builder> op)
-