6_0/Direct/ILM.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Search::Elasticsearch::Client::6_0::Direct::ILM;
2 $Search::Elasticsearch::Client::6_0::Direct::ILM::VERSION = '6.81';
3 use Moo;
4 with 'Search::Elasticsearch::Client::6_0::Role::API';
5 with 'Search::Elasticsearch::Role::Client::Direct';
6 use Search::Elasticsearch::Util qw(parse_params);
7 use namespace::clean;
8 __PACKAGE__->_install_api('ilm');
9  
10 1;
11  
12 =pod
13  
14 =encoding UTF-8
15  
16 =head1 NAME
17  
18 Search::Elasticsearch::Client::6_0::Direct::ILM - Plugin providing index lifecycle management APIs for Search::Elasticsearch 6.x
19  
20 =head1 VERSION
21  
22 version 6.81
23  
24 =head2 DESCRIPTION
25  
26 This module provides methods to use the index lifecycle management feature.
27  
28 The full documentation for ILM is available here:
29 L<https://www.elastic.co/guide/en/elasticsearch/reference/current/index-lifecycle-management.html>
30  
31 =head1 POLICY METHODS
32  
33 =head2 C<put_lifecycle()>
34  
35 $response = $es->ilm->put_lifecycle(
36 policy => $policy # required
37 body => {...} # required
38 )
39  
40 The C<put_lifecycle()> method creates or updates a lifecycle policy.
41  
42 Query string parameters:
43 C<error_trace>,
44 C<filter_path>,
45 C<human>
46  
47 See the L<ILM put_lifecycle docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-put-lifecycle.html>
48 for more information.
49  
50 =head2 C<put_lifecycle()>
51  
52 $response = $es->ilm->put_lifecycle(
53 policy => $policy # required
54 body => {...} # required
55 )
56  
57 The C<put_lifecycle()> method creates or updates a lifecycle policy.
58  
59 Query string parameters:
60 C<error_trace>,
61 C<filter_path>,
62 C<human>
63  
64 See the L<ILM put_lifecycle docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-put-lifecycle.html>
65 for more information.
66  
67 =head2 C<get_lifecycle()>
68  
69 $response = $es->ilm->get_lifecycle(
70 policy => $policy # required
71 )
72  
73 The C<get_lifecycle()> method retrieves the specified policy
74  
75 Query string parameters:
76 C<error_trace>,
77 C<filter_path>,
78 C<human>
79  
80 See the L<ILM get_lifecycle docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-lifecycle.html>
81 for more information.
82  
83 =head2 C<delete_lifecycle()>
84  
85 $response = $es->ilm->delete_lifecycle(
86 policy => $policy # required
87 )
88  
89 The C<delete_lifecycle()> method deletes the specified policy
90  
91 Query string parameters:
92 C<error_trace>,
93 C<filter_path>,
94 C<human>
95  
96 See the L<ILM delete_lifecycle docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-lifecycle.html>
97 for more information.
98  
99 =head1 INDEX MANAGEMENT METHODS
100  
101 =head2 C<move_to_step()>
102  
103 $response = $es->ilm->move_to_step(
104 index => $index, # required
105 body => {...} # required
106 )
107  
108 The C<move_to_step()> method triggers execution of a specific step in the lifecycle policy.
109  
110 Query string parameters:
111 C<error_trace>,
112 C<filter_path>,
113 C<human>
114  
115 See the L<ILM move_to_step docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-move-to-step.html>
116 for more information.
117  
118 =head2 C<retry()>
119  
120 $response = $es->ilm->retry(
121 index => $index, # required
122 )
123  
124 The C<retry()> method retries executing the policy for an index that is in the ERROR step.
125  
126 Query string parameters:
127 C<error_trace>,
128 C<filter_path>,
129 C<human>
130  
131 See the L<ILM retry docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-retry.html>
132 for more information.
133  
134 =head2 C<remove_lifecycle()>
135  
136 $response = $es->ilm->remove_lifecycle(
137 index => $index # required
138 )
139  
140 The C<remove_lifecycle()> method removes a lifecycle from the specified index.
141  
142 Query string parameters:
143 C<error_trace>,
144 C<filter_path>,
145 C<human>
146  
147 See the L<ILM remove_lifecycle docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-lifecycle.html>
148 for more information.
149  
150 =head2 C<explain_lifecycle()>
151  
152 $response = $es->ilm->explain_lifecycle(
153 index => $index # required
154 )
155  
156 The C<explain_lifecycle()> method returns information about the index’s current lifecycle state.
157  
158 Query string parameters:
159 C<error_trace>,
160 C<filter_path>,
161 C<human>
162  
163 See the L<ILM explain_lifecycle docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html>
164 for more information.
165  
166 =head1 OPERATION MANAGEMENT APIS
167  
168 =head2 C<status()>
169  
170 $response = $es->ilm->status;
171  
172 The C<status()> method returns the current operating mode for ILM.
173  
174 Query string parameters:
175 C<error_trace>,
176 C<filter_path>,
177 C<human>
178  
179 See the L<ILM status docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-status.html>
180 for more information.
181  
182 =head2 C<start()>
183  
184 $response = $es->ilm->start;
185  
186 The C<start()> method starts the index lifecycle management process.
187  
188 Query string parameters:
189 C<error_trace>,
190 C<filter_path>,
191 C<human>
192  
193 See the L<ILM start docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-start.html>
194 for more information.
195  
196 =head2 C<stop()>
197  
198 $response = $es->ilm->stop;
199  
200 The C<stop()> method stops the index lifecycle management process.
201  
202 Query string parameters:
203 C<error_trace>,
204 C<filter_path>,
205 C<human>
206  
207 See the L<ILM stop docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-stop.html>
208 for more information.
209  
210 =head1 AUTHOR
211  
212 Enrico Zimuel <enrico.zimuel@elastic.co>
213  
214 =head1 COPYRIGHT AND LICENSE
215  
216 This software is Copyright (c) 2020 by Elasticsearch BV.
217  
218 This is free software, licensed under:
219  
220 The Apache License, Version 2.0, January 2004
221  
222 =cut
223  
224 __END__