« Elasticsearch/Client/7_0/Direct/Snapshot.pm
↑ Summary
Elasticsearch/Client/7_0/Direct/Watcher.pm »
| 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::Tasks; | ||
| 6 | $Search::Elasticsearch::Client::7_0::Direct::Tasks::VERSION = '7.30_1'; # TRIAL | ||
| 7 | |||
| 8 | $Search::Elasticsearch::Client::7_0::Direct::Tasks::VERSION = '7.301'; | ||
| 9 | use Moo; | ||
| 10 | with 'Search::Elasticsearch::Client::7_0::Role::API'; | ||
| 11 | with 'Search::Elasticsearch::Role::Client::Direct'; | ||
| 12 | __PACKAGE__->_install_api('tasks'); | ||
| 13 | |||
| 14 | 1; | ||
| 15 | |||
| 16 | =pod | ||
| 17 | |||
| 18 | =encoding UTF-8 | ||
| 19 | |||
| 20 | =head1 NAME | ||
| 21 | |||
| 22 | Search::Elasticsearch::Client::7_0::Direct::Tasks - A client for accessing the Task Management API | ||
| 23 | |||
| 24 | =head1 VERSION | ||
| 25 | |||
| 26 | version 7.30_1 | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | This module provides methods to access the Task Management API, such as listing | ||
| 31 | tasks and cancelling tasks. | ||
| 32 | |||
| 33 | It does L<Search::Elasticsearch::Role::Client::Direct>. | ||
| 34 | |||
| 35 | =head1 METHODS | ||
| 36 | |||
| 37 | =head2 C<list()> | ||
| 38 | |||
| 39 | $response = $e->tasks->list( | ||
| 40 | task_id => $task_id # optional | ||
| 41 | ); | ||
| 42 | |||
| 43 | The C<list()> method returns all running tasks or, if a C<task_id> is specified, info | ||
| 44 | about that task. | ||
| 45 | |||
| 46 | Query string parameters: | ||
| 47 | C<actions>, | ||
| 48 | C<detailed>, | ||
| 49 | C<error_trace>, | ||
| 50 | C<group_by>, | ||
| 51 | C<human>, | ||
| 52 | C<nodes>, | ||
| 53 | C<parent_task_id>, | ||
| 54 | C<timeout>, | ||
| 55 | C<wait_for_completion> | ||
| 56 | |||
| 57 | See the L<task management docs|http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html> | ||
| 58 | for more information. | ||
| 59 | |||
| 60 | =head2 C<get()> | ||
| 61 | |||
| 62 | $response = $e->tasks->get( | ||
| 63 | task_id => $task_id # required | ||
| 64 | ); | ||
| 65 | |||
| 66 | The C<get()> method returns the task with the specified ID. | ||
| 67 | |||
| 68 | Query string parameters: | ||
| 69 | C<error_trace>, | ||
| 70 | C<human>, | ||
| 71 | C<wait_for_completion> | ||
| 72 | |||
| 73 | See the L<task management docs|http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html> | ||
| 74 | for more information. | ||
| 75 | |||
| 76 | =head2 C<cancel()> | ||
| 77 | |||
| 78 | $response = $e->tasks->cancel( | ||
| 79 | task_id => $task_id # required | ||
| 80 | ); | ||
| 81 | |||
| 82 | The C<cancel()> method attempts to cancel the specified C<task_id> or multiple tasks. | ||
| 83 | |||
| 84 | Query string parameters: | ||
| 85 | C<actions>, | ||
| 86 | C<error_trace>, | ||
| 87 | C<human>, | ||
| 88 | C<nodes>, | ||
| 89 | C<parent_task_id>, | ||
| 90 | C<timeout> | ||
| 91 | |||
| 92 | See the L<task management docs|http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html> | ||
| 93 | for more information. | ||
| 94 | |||
| 95 | =head1 AUTHOR | ||
| 96 | |||
| 97 | Enrico Zimuel <enrico.zimuel@elastic.co> | ||
| 98 | |||
| 99 | =head1 COPYRIGHT AND LICENSE | ||
| 100 | |||
| 101 | This software is Copyright (c) 2020 by Elasticsearch BV. | ||
| 102 | |||
| 103 | This is free software, licensed under: | ||
| 104 | |||
| 105 | The Apache License, Version 2.0, January 2004 | ||
| 106 | |||
| 107 | =cut | ||
| 108 | |||
| 109 | __END__ |