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

73 lines
4.2 KiB
Plaintext

[[reference-nodes-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.nodes.stats
Returns cluster nodes statistics.
{ref}/cluster-nodes-stats.html[{es} documentation]
[discrete]
==== Function signature
[source,ts]
----
(NodesStatsRequest, options?): Promise<NodesStatsResponse>
----
[discrete]
===== `NodesStatsRequest`
[source,ts]
----
interface NodesStatsRequest extends <<shared-type-request-base, RequestBase>> {
node_id?: <<shared-type-node-ids, NodeIds>>
metric?: <<shared-type-metrics, Metrics>>
index_metric?: <<shared-type-metrics, Metrics>>
completion_fields?: <<shared-type-fields, Fields>>
fielddata_fields?: <<shared-type-fields, Fields>>
fields?: <<shared-type-fields, Fields>>
groups?: boolean
include_segment_file_sizes?: boolean
level?: <<shared-type-level, Level>>
master_timeout?: <<shared-type-duration, Duration>>
timeout?: <<shared-type-duration, Duration>>
types?: string[]
include_unloaded_segments?: boolean
}
----
[discrete]
===== `NodesStatsResponse`
[source,ts]
----
type NodesStatsResponse = NodesStatsResponseBase
----