Class HealthRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.cat.CatRequestBase
co.elastic.clients.elasticsearch.cat.HealthRequest
Returns the health status of a cluster, similar to the cluster health API.
IMPORTANT: cat APIs are only intended for human consumption using the command
line or Kibana console. They are not intended for use by applications. For
application consumption, use the cluster health API. This API is often used
to check malfunctioning clusters. To help you track cluster health alongside
log files and alerting systems, the API returns timestamps in two formats:
HH:MM:SS
, which is human-readable but includes no date
information; Unix epoch time
, which is machine-sortable and
includes date information. The latter format is useful for cluster recoveries
that take multiple days. You can use the cat health API to verify cluster
health across multiple nodes. You also can use the API to track the recovery
of a large cluster over a longer period of time.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch.cat.CatRequestBase
CatRequestBase.AbstractBuilder<BuilderT extends CatRequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Endpoint<HealthRequest,
HealthResponse, ErrorResponse> Endpoint "cat.health
". -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthRequest
final TimeUnit
time()
The unit used to display time values.final Boolean
ts()
If true, returnsHH:MM:SS
and Unix epoch timestamps.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
Endpoint "cat.health
".
-
-
Method Details
-
of
-
time
The unit used to display time values.API name:
time
-
ts
If true, returnsHH:MM:SS
and Unix epoch timestamps.API name:
ts
-