Elasticsearch/Client/7_0/Direct/Nodes.pm untested

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