6_0/Direct/Ingest.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 9 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package Search::Elasticsearch::Client::6_0::Direct::Ingest;
2 $Search::Elasticsearch::Client::6_0::Direct::Ingest::VERSION = '6.81';
3 use Moo;
4 with 'Search::Elasticsearch::Client::6_0::Role::API';
5 with 'Search::Elasticsearch::Role::Client::Direct';
6 __PACKAGE__->_install_api('ingest');
7  
8 1;
9  
10 =pod
11  
12 =encoding UTF-8
13  
14 =head1 NAME
15  
16 Search::Elasticsearch::Client::6_0::Direct::Ingest - A client for accessing the Ingest API
17  
18 =head1 VERSION
19  
20 version 6.81
21  
22 =head1 DESCRIPTION
23  
24 This module provides methods to access the Ingest API, such as creating,
25 getting, deleting and simulating ingest pipelines.
26  
27 It does L<Search::Elasticsearch::Role::Client::Direct>.
28  
29 =head1 METHODS
30  
31 =head2 C<put_pipeline()>
32  
33 $response = $e->ingest->put_pipeline(
34 id => $id, # required
35 body => { pipeline defn } # required
36 );
37  
38 The C<put_pipeline()> method creates or updates a pipeline with the specified ID.
39  
40 Query string parameters:
41 C<error_trace>,
42 C<human>,
43 C<master_timeout>,
44 C<timeout>
45  
46 See the L<put pipeline docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/put-pipeline-api.html>
47 for more information.
48  
49 =head2 C<get_pipeline()>
50  
51 $response = $e->ingest->get_pipeline(
52 id => \@id, # optional
53 );
54  
55 The C<get_pipeline()> method returns pipelines with the specified IDs (or all pipelines).
56  
57 Query string parameters:
58 C<error_trace>,
59 C<human>,
60 C<master_timeout>,
61 C<timeout>
62  
63 See the L<get pipeline docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/get-pipeline-api.html>
64 for more information.
65  
66 =head2 C<delete_pipeline()>
67  
68 $response = $e->ingest->delete_pipeline(
69 id => $id, # required
70 );
71  
72 The C<delete_pipeline()> method deletes the pipeline with the specified ID.
73  
74 Query string parameters:
75 C<error_trace>,
76 C<human>,
77 C<master_timeout>,
78 C<timeout>
79  
80 See the L<delete pipeline docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-pipeline-api.html>
81 for more information.
82  
83 =head2 C<simulate()>
84  
85 $response = $e->ingest->put_pipeline(
86 id => $id, # optional
87 body => { simulate args } # required
88 );
89  
90 The C<simulate()> method executes the pipeline specified by ID or inline in the body
91 against the docs provided in the body and provides debugging output of the execution
92 process.
93  
94 Query string parameters:
95 C<error_trace>,
96 C<human>,
97 C<verbose>
98  
99 See the L<simulate pipeline docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/simulate-pipeline-api.html>
100 for more information.
101  
102 =head2 C<simulate()>
103  
104 $response = $e->ingest->put_pipeline(
105 id => $id, # optional
106 body => { simulate args } # required
107 );
108  
109 The C<simulate()> method executes the pipeline specified by ID or inline in the body
110 against the docs provided in the body and provides debugging output of the execution
111 process.
112  
113 Query string parameters:
114 C<error_trace>,
115 C<human>,
116 C<verbose>
117  
118 See the L<simulate pipeline docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/simulate-pipeline-api.html>
119 for more information.
120  
121 =head2 C<processor_grok>
122  
123 $response = $e->inges->processor_grok()
124  
125 Retrieves the configured patterns associated with the Grok processor.
126  
127 Query string parameters:
128 C<error_trace>,
129 C<human>
130  
131 See the L<grok processor docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/grok-processor.html>
132 for more information.
133  
134 =head1 AUTHOR
135  
136 Enrico Zimuel <enrico.zimuel@elastic.co>
137  
138 =head1 COPYRIGHT AND LICENSE
139  
140 This software is Copyright (c) 2020 by Elasticsearch BV.
141  
142 This is free software, licensed under:
143  
144 The Apache License, Version 2.0, January 2004
145  
146 =cut
147  
148 __END__