Files
elasticsearch-js/docs/reference-cluster-stats.asciidoc
2024-12-05 14:46:51 -06:00

73 lines
4.0 KiB
Plaintext

[[reference-cluster-stats]]
////////
===========================================================================================================================
|| ||
|| ||
|| ||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|| ||
|| ||
|| This file is autogenerated, DO NOT send pull requests that changes this file directly. ||
|| You should update the script that does the generation, which can be found in: ||
|| https://github.com/elastic/elastic-client-generator-js ||
|| ||
|| You can run the script with the following command: ||
|| npm run elasticsearch -- --version <version> ||
|| ||
|| ||
|| ||
===========================================================================================================================
////////
[discrete]
=== client.cluster.stats
Returns cluster statistics. It returns basic index metrics (shard numbers, store size, memory usage) and information about the current nodes that form the cluster (number, roles, os, jvm versions, memory usage, cpu and installed plugins).
{ref}/cluster-stats.html[{es} documentation]
[discrete]
==== Function signature
[source,ts]
----
(ClusterStatsRequest, options?): Promise<ClusterStatsResponse>
----
[discrete]
==== ClusterStatsRequest
[pass]
++++
<pre>
++++
interface ClusterStatsRequest extends <<RequestBase>> {
node_id?: <<NodeIds>>
include_remotes?: boolean
timeout?: <<Duration>>
}
[pass]
++++
</pre>
++++
[discrete]
==== ClusterStatsResponse
[pass]
++++
<pre>
++++
type ClusterStatsResponse = ClusterStatsStatsResponseBase
[pass]
++++
</pre>
++++