Class HealthRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.cluster.HealthRequest
- All Implemented Interfaces:
ToCopyableBuilder<HealthRequest.Builder,HealthRequest>
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class HealthRequest
extends RequestBase
implements ToCopyableBuilder<HealthRequest.Builder,HealthRequest>
Returns basic information about the health of the cluster.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Endpoint<HealthRequest, HealthResponse, ErrorResponse> Endpoint "cluster.health". -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyQueryParameters(Map<String, String> params) final StringThe name of the awareness attribute for which to return the cluster health status (for example,zone).static HealthRequest.Builderbuilder()final TimeThe amount of time to wait for a response from the cluster manager node.booleanfinal List<ExpandWildcard> Specifies the type of index that wildcard expressions can match.inthashCode()index()A comma-separated list of data streams, indexes, and aliases used to limit the request.final ClusterHealthLevellevel()Controls the amount of detail included in the cluster health response.final Booleanlocal()Whether to return information from the local node only instead of from the cluster manager node.final TimeDeprecated.static HealthRequestfinal Timetimeout()The amount of time to wait for a response from the cluster manager node.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final WaitForActiveShardsWaits until the specified number of shards is active before returning a response.final WaitForEventsWaits until all currently queued events with the given priority are processed.final WaitForNodesWaits until the specified number of nodes (N) is available.final BooleanWhether to wait until there are no initializing shards in the cluster.final BooleanWhether to wait until there are no relocating shards in the cluster.final HealthStatusWaits until the cluster health reaches the specified status or better.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_ENDPOINT
Endpoint "cluster.health".
-
-
Method Details
-
of
-
awarenessAttribute
The name of the awareness attribute for which to return the cluster health status (for example,zone). Applicable only iflevelis set toawareness_attributes.API name:
awareness_attribute -
clusterManagerTimeout
The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.API name:
cluster_manager_timeout -
expandWildcards
Specifies the type of index that wildcard expressions can match. Supports comma-separated values.API name:
expand_wildcards -
index
A comma-separated list of data streams, indexes, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indexes, omit this parameter or use*or_all.API name:
index -
level
Controls the amount of detail included in the cluster health response.API name:
level -
local
Whether to return information from the local node only instead of from the cluster manager node.API name:
local -
masterTimeout
Deprecated.A duration. Units can benanos,micros,ms(milliseconds),s(seconds),m(minutes),h(hours) andd(days). Also accepts0without a unit and-1to indicate an unspecified value.API name:
master_timeout -
timeout
The amount of time to wait for a response from the cluster manager node. For more information about supported time units, see Common parameters.API name:
timeout -
waitForActiveShards
Waits until the specified number of shards is active before returning a response. Useallfor all shards.API name:
wait_for_active_shards -
waitForEvents
Waits until all currently queued events with the given priority are processed.API name:
wait_for_events -
waitForNoInitializingShards
Whether to wait until there are no initializing shards in the cluster.API name:
wait_for_no_initializing_shards -
waitForNoRelocatingShards
Whether to wait until there are no relocating shards in the cluster.API name:
wait_for_no_relocating_shards -
waitForNodes
Waits until the specified number of nodes (N) is available. Accepts>=N,<=N,>N, and<N. You can also usege(N),le(N),gt(N), andlt(N)notation.API name:
wait_for_nodes -
waitForStatus
Waits until the cluster health reaches the specified status or better.API name:
wait_for_status -
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<HealthRequest.Builder,HealthRequest> - Returns:
- a new builder instance.
-
builder
-
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-