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