Class StatsResponse
java.lang.Object
org.opensearch.client.opensearch.nodes.NodesResponseBase
org.opensearch.client.opensearch.cluster.StatsResponse
- All Implemented Interfaces:
ToJsonp
public final class StatsResponse extends NodesResponseBase
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStatsResponse.BuilderBuilder forStatsResponse.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<StatsResponse>DESERIALIZERJson deserializer for StatsResponse -
Constructor Summary
Constructors Modifier Constructor Description protectedStatsResponse(StatsResponse.Builder builder) -
Method Summary
Modifier and Type Method Description java.lang.StringclusterName()Name of the cluster, based on the Cluster name setting setting.java.lang.StringclusterUuid()Unique identifier for the cluster.ClusterIndicesindices()Contains statistics about indices with shards assigned to selected nodes.ClusterNodesnodes()Contains statistics about nodes selected by the request's node filters.protected static voidsetupStatsResponseDeserializer(DelegatingDeserializer<StatsResponse.Builder> op)jakarta.json.JsonValuestatus()Health status of the cluster, based on the state of its primary and replica shards.java.lang.Numbertimestamp()Unix timestamp, in milliseconds, of the last time the cluster statistics were refreshed.protected voidtoJsonpInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Methods inherited from class org.opensearch.client.opensearch.nodes.NodesResponseBase
nodeStats, setupNodesResponseBaseDeserializer, toJsonp
-
Field Details
-
DESERIALIZER
Json deserializer for StatsResponse
-
-
Constructor Details
-
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
public jakarta.json.JsonValue status()Health status of the cluster, based on the state of its primary and replica shards. API name:status -
timestamp
public java.lang.Number timestamp()Unix timestamp, in milliseconds, of the last time the cluster statistics were refreshed. API name:timestamp -
toJsonpInternal
- Overrides:
toJsonpInternalin classNodesResponseBase
-
setupStatsResponseDeserializer
protected static void setupStatsResponseDeserializer(DelegatingDeserializer<StatsResponse.Builder> op)
-