Class StatsResponseBase
java.lang.Object
co.elastic.clients.elasticsearch.nodes.NodesResponseBase
co.elastic.clients.elasticsearch.cluster.stats.StatsResponseBase
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
ClusterStatsResponse
public abstract class StatsResponseBase extends NodesResponseBase
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
StatsResponseBase.AbstractBuilder<BuilderT extends StatsResponseBase.AbstractBuilder<BuilderT>>
-
Constructor Summary
Constructors Modifier Constructor Description protected
StatsResponseBase(StatsResponseBase.AbstractBuilder<?> builder)
-
Method Summary
Modifier and Type Method Description java.lang.String
clusterName()
Required - Name of the cluster, based on the Cluster name setting setting.java.lang.String
clusterUuid()
Required - Unique identifier for the cluster.ClusterIndices
indices()
Required - Contains statistics about indices with shards assigned to selected nodes.ClusterNodes
nodes()
Required - Contains statistics about nodes selected by the request’s node filters.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static <BuilderT extends StatsResponseBase.AbstractBuilder<BuilderT>>
voidsetupStatsResponseBaseDeserializer(ObjectDeserializer<BuilderT> op)
HealthStatus
status()
Required - Health status of the cluster, based on the state of its primary and replica shards.long
timestamp()
Required - 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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
StatsResponseBase
-
-
Method Details
-
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
Required - Contains statistics about indices with shards assigned to selected nodes.API name:
indices
-
nodes
Required - Contains statistics about nodes selected by the request’s node filters.API name:
nodes
-
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
- Overrides:
serializeInternal
in classNodesResponseBase
-
setupStatsResponseBaseDeserializer
protected static <BuilderT extends StatsResponseBase.AbstractBuilder<BuilderT>> void setupStatsResponseBaseDeserializer(ObjectDeserializer<BuilderT> op)
-