[[reference-nodes-hot_threads]]

////////
===========================================================================================================================
||                                                                                                                       ||
||                                                                                                                       ||
||                                                                                                                       ||
||        ██████╗ ███████╗ █████╗ ██████╗ ███╗   ███╗███████╗                                                            ||
||        ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝                                                            ||
||        ██████╔╝█████╗  ███████║██║  ██║██╔████╔██║█████╗                                                              ||
||        ██╔══██╗██╔══╝  ██╔══██║██║  ██║██║╚██╔╝██║██╔══╝                                                              ||
||        ██║  ██║███████╗██║  ██║██████╔╝██║ ╚═╝ ██║███████╗                                                            ||
||        ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═════╝ ╚═╝     ╚═╝╚══════╝                                                            ||
||                                                                                                                       ||
||                                                                                                                       ||
||    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.hotThreads]]
=== client.nodes.hotThreads

This API yields a breakdown of the hot threads on each selected node in the cluster. The output is plain text with a breakdown of each node’s top hot threads.

{ref}/cluster-nodes-hot-threads.html[{es} documentation]

[discrete]
==== Function signature

[source,ts]
----
(NodesHotThreadsRequest, options?): Promise<NodesHotThreadsResponse>
----

[discrete]
==== Request

[pass]
++++
<pre>
++++
interface NodesHotThreadsRequest extends <<RequestBase>> {
  node_id?: <<NodeIds>>
  ignore_idle_threads?: boolean
  interval?: <<Duration>>
  snapshots?: <<long>>
  master_timeout?: <<Duration>>
  threads?: <<long>>
  timeout?: <<Duration>>
  type?: <<ThreadType>>
  sort?: <<ThreadType>>
}

[pass]
++++
</pre>
++++
[discrete]
==== Response

[pass]
++++
<pre>
++++
interface NodesHotThreadsResponse {
}

[pass]
++++
</pre>
++++
