Class HealthRequest
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 ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch.cat.CatRequestBase
CatRequestBase.AbstractBuilder<BuilderT extends CatRequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Endpoint<HealthRequest,
HealthResponse, ErrorResponse> Endpoint "cat.health
". -
Method Summary
Modifier and TypeMethodDescriptionh()
List of columns to appear in the response.static HealthRequest
s()
List of columns that determine how the table should be sorted.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
-
h
List of columns to appear in the response. Supports simple wildcards.API name:
h
-
s
List of columns that determine how the table should be sorted. Sorting defaults to ascending and can be changed by setting:asc
or:desc
as a suffix to the column name.API name:
s
-
time
The unit used to display time values.API name:
time
-
ts
If true, returnsHH:MM:SS
and Unix epoch timestamps.API name:
ts
-