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

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.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::Rollup;
6 $Search::Elasticsearch::Client::7_0::Direct::Rollup::VERSION = '7.30_1'; # TRIAL
7  
8 $Search::Elasticsearch::Client::7_0::Direct::Rollup::VERSION = '7.301';
9 use Moo;
10 with 'Search::Elasticsearch::Client::7_0::Role::API';
11 with 'Search::Elasticsearch::Role::Client::Direct';
12 use namespace::clean;
13  
14 __PACKAGE__->_install_api('rollup');
15  
16 1;
17  
18 =pod
19  
20 =encoding UTF-8
21  
22 =head1 NAME
23  
24 Search::Elasticsearch::Client::7_0::Direct::Rollup - Plugin providing Rollups for Search::Elasticsearch 7.x
25  
26 =head1 VERSION
27  
28 version 7.30_1
29  
30 =head1 SYNOPSIS
31  
32 my $response = $es->rollup->search( body => {...} )
33  
34 =head2 DESCRIPTION
35  
36 This class extends the L<Search::Elasticsearch> client with a C<rollup>
37 namespace, to support the
38 L<Rollup APIs|https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-apis.html>.
39  
40 The full documentation for the Rollups feature is available here:
41 L<https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-rollup.html>
42  
43 =head1 GENERAL METHODS
44  
45 =head2 C<search()>
46  
47 $response = $es->rollup->search(
48 index => $index | \@indices, # optional
49 body => {...} # optional
50 )
51  
52 The C<search()> method executes a normal search but can join the results from ordinary indices with
53 those from rolled up indices.
54  
55 Query string parameters:
56 C<error_trace>,
57 C<filter_path>,
58 C<human>,
59 C<typed_keys>
60  
61 See the L<rollup search docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-search.html>
62 for more information.
63  
64 =head1 JOB METHODS
65  
66 =head2 C<put_job()>
67  
68 $response = $es->rollup->put_job(
69 id => $id, # required
70 body => {...} # optional
71 )
72  
73 The C<put_job()> method creates a rollup job which will rollup matching indices to a rolled up index
74 in the background.
75  
76 Query string parameters:
77 C<error_trace>,
78 C<filter_path>,
79 C<human>
80  
81 See the L<rollup create job docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-put-job.html>
82 for more information.
83  
84 =head2 C<delete_job()>
85  
86 $response = $es->rollup->delete_job(
87 id => $id, # required
88 )
89  
90 The C<delete_job()> method deletes a rollup job by ID.
91  
92 Query string parameters:
93 C<error_trace>,
94 C<filter_path>,
95 C<human>
96  
97 See the L<rollup delete job docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-delete-job.html>
98 for more information.
99  
100 =head2 C<get_jobs()>
101  
102 $response = $es->rollup->get_jobs(
103 id => $id, # optional
104 )
105  
106 The C<get_job()> method retrieves a rollup job by ID, or all jobs if not specified.
107  
108 Query string parameters:
109 C<error_trace>,
110 C<filter_path>,
111 C<human>
112  
113 See the L<rollup get jobs docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-get-job.html>
114 for more information.
115  
116 =head2 C<start_job()>
117  
118 $response = $es->rollup->start_job(
119 id => $id, # required
120 )
121  
122 The C<start_job()> method starts the specified rollup job.
123  
124 Query string parameters:
125 C<error_trace>,
126 C<filter_path>,
127 C<human>
128  
129 See the L<rollup start job docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-start-job.html>
130 for more information.
131  
132 =head2 C<stop_job()>
133  
134 $response = $es->rollup->stop_job(
135 id => $id, # required
136 )
137  
138 The C<stop_job()> method stops the specified rollup job.
139  
140 Query string parameters:
141 C<error_trace>,
142 C<filter_path>,
143 C<human>
144  
145 See the L<rollup stop job docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-stop-job.html>
146 for more information.
147  
148 =head1 DATA METHODS
149  
150 =head2 C<get_rollup_caps()>
151  
152 $response = $es->rollup->get_rollup_caps(
153 id => $index # optional
154 )
155  
156 The C<get_rollup_caps()> method returns the capabilities of any rollup jobs that have been configured for a specific index or index pattern.
157  
158 Query string parameters:
159 C<error_trace>,
160 C<filter_path>,
161 C<human>
162  
163 See the L<get rollup caps docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-get-rollup-caps.html>
164 for more information.
165  
166 =head2 C<get_rollup_index_caps()>
167  
168 $response = $es->rollup->get_rollup_index_caps(
169 id => $index # optional
170 )
171  
172 The C<get_rollup_index_caps()> method returns the rollup capabilities of all jobs inside of a rollup index.
173  
174 Query string parameters:
175 C<error_trace>,
176 C<filter_path>,
177 C<human>
178  
179 See the L<get rollup index caps docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-get-rollup-index-caps.html>
180 for more information.
181  
182 =head1 AUTHOR
183  
184 Enrico Zimuel <enrico.zimuel@elastic.co>
185  
186 =head1 COPYRIGHT AND LICENSE
187  
188 This software is Copyright (c) 2020 by Elasticsearch BV.
189  
190 This is free software, licensed under:
191  
192 The Apache License, Version 2.0, January 2004
193  
194 =cut
195  
196 __END__