Debian Codegraph @

lib/Search/Elasticsearch/Client/2_0/Direct/Tasks.pm

raw
1 package Search::Elasticsearch::Client::2_0::Direct::Tasks;
2 $Search::Elasticsearch::Client::2_0::Direct::Tasks::VERSION = '6.81';
3 use Moo;
4 with 'Search::Elasticsearch::Client::2_0::Role::API';
5 with 'Search::Elasticsearch::Role::Client::Direct';
6 __PACKAGE__->_install_api('tasks');
7
8 1;
9
10 =pod
11
12 =encoding UTF-8
13
14 =head1 NAME
15
16 Search::Elasticsearch::Client::2_0::Direct::Tasks - A client for accessing the Task Management API
17
18 =head1 VERSION
19
20 version 6.81
21
22 =head1 DESCRIPTION
23
24 This module provides methods to access the Task Management API, such as listing
25 tasks and cancelling tasks.
26
27 It does L<Search::Elasticsearch::Role::Client::Direct>.
28
29 =head1 METHODS
30
31 =head2 C<list()>
32
33 $response = $e->tasks->list(
34 task_id => $task_id # optional
35 );
36
37 The C<list()> method returns all running tasks or, if a C<task_id> is specified, info
38 about that task.
39
40 Query string parameters:
41 C<actions>,
42 C<detailed>,
43 C<node_id>,
44 C<parent_node>,
45 C<parent_task>,
46 C<wait_for_completion>
47
48 See the L<task management docs|http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html>
49 for more information.
50
51 =head2 C<cancel()>
52
53 $response = $e->tasks->cancel(
54 task_id => $task_id # option
55 );
56
57 The C<cancel()> method attempts to cancel the specified C<task_id> or multiple tasks.
58
59 Query string parameters:
60 C<actions>,
61 C<node_id>,
62 C<parent_node>,
63 C<parent_task>
64
65 See the L<task management docs|http://www.elastic.co/guide/en/elasticsearch/reference/current/tasks.html>
66 for more information.
67
68 =head1 AUTHOR
69
70 Enrico Zimuel <[email protected]>
71
72 =head1 COPYRIGHT AND LICENSE
73
74 This software is Copyright (c) 2020 by Elasticsearch BV.
75
76 This is free software, licensed under:
77
78 The Apache License, Version 2.0, January 2004
79
80 =cut
81
82 __END__
83
84 # ABSTRACT: A client for accessing the Task Management API
85