5_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::5_0::Direct::Nodes;
6 $Search::Elasticsearch::Client::5_0::Direct::Nodes::VERSION = '7.30_1'; # TRIAL
7  
8 $Search::Elasticsearch::Client::5_0::Direct::Nodes::VERSION = '7.301';
9 use Moo;
10 with 'Search::Elasticsearch::Client::5_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::5_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::5_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->cluster->node_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<node_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 =head1 AUTHOR
165  
166 Enrico Zimuel <enrico.zimuel@elastic.co>
167  
168 =head1 COPYRIGHT AND LICENSE
169  
170 This software is Copyright (c) 2020 by Elasticsearch BV.
171  
172 This is free software, licensed under:
173  
174 The Apache License, Version 2.0, January 2004
175  
176 =cut
177  
178 __END__