1<?php
2
3declare(strict_types = 1);
4
5namespace Elasticsearch\Endpoints\Cat;
6
7use Elasticsearch\Endpoints\AbstractEndpoint;
8
9/**
10 * Class Tasks
11 *
12 * @category Elasticsearch
13 * @package  Elasticsearch\Endpoints\Cat
14 * @author   Zachary Tong <zach@elastic.co>
15 * @license  http://www.apache.org/licenses/LICENSE-2.0 Apache2
16 * @link     http://elastic.co
17 */
18class Tasks extends AbstractEndpoint
19{
20    public function getURI(): string
21    {
22        return "/_cat/tasks";
23    }
24
25    public function getParamWhitelist(): array
26    {
27        return [
28            'format',
29            'node_id',
30            'actions',
31            'detailed',
32            'parent_task',
33            'h',
34            'help',
35            's',
36            'v'
37        ];
38    }
39
40    public function getMethod(): string
41    {
42        return 'GET';
43    }
44}
45