6_0/Direct/Nodes.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 9 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package Search::Elasticsearch::Client::6_0::Direct::Nodes;
2 $Search::Elasticsearch::Client::6_0::Direct::Nodes::VERSION = '6.81';
3 use Moo;
4 with 'Search::Elasticsearch::Client::6_0::Role::API';
5 with 'Search::Elasticsearch::Role::Client::Direct';
6 __PACKAGE__->_install_api('nodes');
7  
8 1;
9  
10 =pod
11  
12 =encoding UTF-8
13  
14 =head1 NAME
15  
16 Search::Elasticsearch::Client::6_0::Direct::Nodes - A client for running node-level requests
17  
18 =head1 VERSION
19  
20 version 6.81
21  
22 =head1 DESCRIPTION
23  
24 This module provides methods to make node-level requests, such as
25 retrieving node info and stats.
26  
27 It does L<Search::Elasticsearch::Role::Client::Direct>.
28  
29 =head1 METHODS
30  
31 =head2 C<info()>
32  
33 $response = $e->nodes->info(
34 node_id => $node_id | \@node_ids # optional
35 metric => $metric | \@metrics # optional
36 );
37  
38 The C<info()> method returns static information about the nodes in the
39 cluster, such as the configured maximum number of file handles, the maximum
40 configured heap size or the threadpool settings.
41  
42 Allowed metrics are:
43 C<http>,
44 C<jvm>,
45 C<network>,
46 C<os>,
47 C<plugin>,
48 C<process>,
49 C<settings>,
50 C<thread_pool>,
51 C<timeout>,
52 C<transport>
53  
54 Query string parameters:
55 C<error_trace>,
56 C<flat_settings>,
57 C<human>
58  
59 See the L<node_info docs|http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-info.html>
60 for more information.
61  
62 =head2 C<stats()>
63  
64 $response = $e->nodes->stats(
65 node_id => $node_id | \@node_ids # optional
66 metric => $metric | \@metrics # optional
67 index_metric => $ind_metric | \@ind_metrics # optional
68 );
69  
70 The C<stats()> method returns statistics about the nodes in the
71 cluster, such as the number of currently open file handles, the current
72 heap memory usage or the current number of threads in use.
73  
74 Stats can be returned for all nodes, or limited to particular nodes
75 with the C<node_id> parameter. By default all metrics are returned, but
76 these can be limited to those specified in the C<metric> parameter.
77  
78 Allowed metrics are:
79 C<_all>,
80 C<breaker>,
81 C<fs>,
82 C<http>,
83 C<include_segment_file_sizes>,
84 C<indices>,
85 C<jvm>,
86 C<network>,
87 C<os>,
88 C<process>,
89 C<thread_pool>,
90 C<timeout>,
91 C<transport>
92  
93 If the C<indices> metric (or C<_all>) is specified, then
94 L<indices_stats|Search::Elasticsearch::Client::6_0::Direct::Indices/indices_stats()>
95 information is returned on a per-node basis. Which indices stats are
96 returned can be controlled with the C<index_metric> parameter:
97  
98 $response = $e->nodes->stats(
99 node_id => 'node_1',
100 metric => ['indices','fs']
101 index_metric => ['docs','fielddata']
102 );
103  
104 Allowed index metrics are:
105 C<_all>,
106 C<completion>
107 C<docs>,
108 C<fielddata>,
109 C<filter_cache>,
110 C<flush>,
111 C<get>,
112 C<id_cache>,
113 C<indexing>,
114 C<merge>,
115 C<percolate>,
116 C<query_cache>,
117 C<refresh>,
118 C<search>,
119 C<segments>,
120 C<store>,
121 C<warmer>
122  
123 Query string parameters:
124 C<completion_fields>,
125 C<error_trace>,
126 C<fielddata_fields>,
127 C<fields>,
128 C<groups>,
129 C<human>,
130 C<level>,
131 C<types>
132  
133 See the L<stats docs|http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-stats.html>
134 for more information.
135  
136 =head2 C<hot_threads()>
137  
138 $response = $e->nodes->hot_threads(
139 node_id => $node_id | \@node_ids # optional
140 )
141  
142 The C<hot_threads()> method is a useful tool for diagnosing busy nodes. It
143 takes a snapshot of which threads are consuming the most CPU.
144  
145 Query string parameters:
146 C<error_trace>,
147 C<human>,
148 C<ignore_idle_threads>,
149 C<interval>,
150 C<snapshots>,
151 C<threads>,
152 C<timeout>,
153 C<type>
154  
155 See the L<hot_threads docs|http://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html>
156 for more information.
157  
158 =head2 C<reload_secure_settings()>
159  
160 $response = $e->nodes->reload_secure_settings(
161 node_id => $node_id | \@node_ids # optional
162 );
163  
164 The C<reload_secure_settings()> API will reload the reloadable settings stored in the keystore
165 on each node.
166  
167 Query string parameters:
168 C<error_trace>,
169 C<filter_path>,
170 C<human>,
171 C<timeout>
172  
173 See the L<reload-secure-settings docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/secure-settings.html>
174 for more information.
175  
176 =head2 C<usage()>
177  
178 $response = $e->nodes->usage(
179 node_id => $node_id | \@node_ids # optional
180 metric => $metric | \@metrics # optional
181 )
182  
183 The C<usage()> API retrieve sinformation on the usage of features for each node.
184  
185 Query string parameters:
186 C<error_trace>,
187 C<human>,
188 C<timeout>
189  
190 See the L<nodes_usage docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-usage.html>
191 for more information.
192  
193 =head1 AUTHOR
194  
195 Enrico Zimuel <enrico.zimuel@elastic.co>
196  
197 =head1 COPYRIGHT AND LICENSE
198  
199 This software is Copyright (c) 2020 by Elasticsearch BV.
200  
201 This is free software, licensed under:
202  
203 The Apache License, Version 2.0, January 2004
204  
205 =cut
206  
207 __END__