

[[Elasticsearch_Namespaces_NodesNamespace]]
=== Elasticsearch\Namespaces\NodesNamespace



Class NodesNamespace
Generated running $ php util/GenerateEndpoints.php 7.9


*Methods*

The class defines the following methods:

* <<Elasticsearch_Namespaces_NodesNamespacehotThreads_hotThreads,`hotThreads()`>>
* <<Elasticsearch_Namespaces_NodesNamespaceinfo_info,`info()`>>
* <<Elasticsearch_Namespaces_NodesNamespacereloadSecureSettings_reloadSecureSettings,`reloadSecureSettings()`>>
* <<Elasticsearch_Namespaces_NodesNamespacestats_stats,`stats()`>>
* <<Elasticsearch_Namespaces_NodesNamespaceusage_usage,`usage()`>>



[[Elasticsearch_Namespaces_NodesNamespacehotThreads_hotThreads]]
.`hotThreads()`
****
[source,php]
----
/*
$params['node_id']             = (list) A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
$params['interval']            = (time) The interval for the second sampling of threads
$params['snapshots']           = (number) Number of samples of thread stacktrace (default: 10)
$params['threads']             = (number) Specify the number of threads to provide information for (default: 3)
$params['ignore_idle_threads'] = (boolean) Don't show threads that are in known-idle places, such as waiting on a socket select or pulling from an empty task queue (default: true)
$params['type']                = (enum) The type to sample (default: cpu) (Options = cpu,wait,block)
$params['timeout']             = (time) Explicit operation timeout
*/

$params = [
    // ...
];

$client = ClientBuilder::create()->build();
$response = $client->nodes()->hotThreads($params);
----
****



[[Elasticsearch_Namespaces_NodesNamespaceinfo_info]]
.`info()`
****
[source,php]
----
/*
$params['node_id']       = (list) A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
$params['metric']        = (list) A comma-separated list of metrics you wish returned. Leave empty to return all.
*/

$params = [
    // ...
];

$client = ClientBuilder::create()->build();
$response = $client->nodes()->info($params);
----
****



[[Elasticsearch_Namespaces_NodesNamespacereloadSecureSettings_reloadSecureSettings]]
.`reloadSecureSettings()`
****
[source,php]
----
/*
$params['node_id'] = (list) A comma-separated list of node IDs to span the reload/reinit call. Should stay empty because reloading usually involves all cluster nodes.
*/

$params = [
    // ...
];

$client = ClientBuilder::create()->build();
$response = $client->nodes()->reloadSecureSettings($params);
----
****



[[Elasticsearch_Namespaces_NodesNamespacestats_stats]]
.`stats()`
****
[source,php]
----
/*
$params['node_id']                    = (list) A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
$params['metric']                     = (list) Limit the information returned to the specified metrics
$params['index_metric']               = (list) Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified.
*/

$params = [
    // ...
];

$client = ClientBuilder::create()->build();
$response = $client->nodes()->stats($params);
----
****



[[Elasticsearch_Namespaces_NodesNamespaceusage_usage]]
.`usage()`
****
[source,php]
----
/*
$params['node_id'] = (list) A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
$params['metric']  = (list) Limit the information returned to the specified metrics
$params['timeout'] = (time) Explicit operation timeout
*/

$params = [
    // ...
];

$client = ClientBuilder::create()->build();
$response = $client->nodes()->usage($params);
----
****


