5_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::5_0::Direct::Ingest;
2 $Search::Elasticsearch::Client::5_0::Direct::Ingest::VERSION = '6.81';
3 use Moo;
4 with 'Search::Elasticsearch::Client::5_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::5_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<processor_grok>
103  
104 $response = $e->inges->processor_grok()
105  
106 Retrieves the configured patterns associated with the Grok processor.
107  
108 Query string parameters:
109 C<error_trace>,
110 C<human>
111  
112 See the L<grok processor docs|https://www.elastic.co/guide/en/elasticsearch/reference/current/grok-processor.html>
113 for more information.
114  
115 =head1 AUTHOR
116  
117 Enrico Zimuel <enrico.zimuel@elastic.co>
118  
119 =head1 COPYRIGHT AND LICENSE
120  
121 This software is Copyright (c) 2020 by Elasticsearch BV.
122  
123 This is free software, licensed under:
124  
125 The Apache License, Version 2.0, January 2004
126  
127 =cut
128  
129 __END__