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