| 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::DataFrame; | ||
| 6 | $Search::Elasticsearch::Client::7_0::Direct::DataFrame::VERSION = '7.30_1'; # TRIAL | ||
| 7 | |||
| 8 | $Search::Elasticsearch::Client::7_0::Direct::DataFrame::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('data_frame'); | ||
| 15 | |||
| 16 | 1; | ||
| 17 | |||
| 18 | =pod | ||
| 19 | |||
| 20 | =encoding UTF-8 | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | Search::Elasticsearch::Client::7_0::Direct::DataFrame - Plugin providing Transform API for Search::Elasticsearch 7.x | ||
| 25 | |||
| 26 | =head1 VERSION | ||
| 27 | |||
| 28 | version 7.30_1 | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $response = $es->data_frame->explore(...); | ||
| 33 | |||
| 34 | =head2 DESCRIPTION | ||
| 35 | |||
| 36 | This class extends the L<Search::Elasticsearch> client with a C<data_frame> | ||
| 37 | namespace, to support the API for the | ||
| 38 | L<Transform|https://www.elastic.co/guide/en/elasticsearch/reference/7.3/transform-apis.html> plugin for Elasticsearch. | ||
| 39 | |||
| 40 | =head1 METHODS | ||
| 41 | |||
| 42 | The full documentation for the Transform plugin is available here: | ||
| 43 | L<https://www.elastic.co/guide/en/elasticsearch/reference/7.3/transform-apis.html> | ||
| 44 | |||
| 45 | =head2 C<explore()> | ||
| 46 | |||
| 47 | $response = $es->data_frame->put_data_frame_transform( | ||
| 48 | transform_id => $transform_id, | ||
| 49 | body => {...} | ||
| 50 | ); | ||
| 51 | |||
| 52 | The C<put_data_frame_transform()> instantiates a transform. | ||
| 53 | |||
| 54 | =head1 AUTHOR | ||
| 55 | |||
| 56 | Enrico Zimuel <enrico.zimuel@elastic.co> | ||
| 57 | |||
| 58 | =head1 COPYRIGHT AND LICENSE | ||
| 59 | |||
| 60 | This software is Copyright (c) 2020 by Elasticsearch BV. | ||
| 61 | |||
| 62 | This is free software, licensed under: | ||
| 63 | |||
| 64 | The Apache License, Version 2.0, January 2004 | ||
| 65 | |||
| 66 | =cut | ||
| 67 | |||
| 68 | __END__ |