1: | <?php |
2: | |
3: | declare(strict_types=1); |
4: | |
5: | |
6: | |
7: | |
8: | |
9: | |
10: | |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | |
18: | |
19: | |
20: | |
21: | |
22: | namespace OpenSearch\Endpoints\Cat; |
23: | |
24: | use OpenSearch\Endpoints\AbstractEndpoint; |
25: | |
26: | |
27: | |
28: | |
29: | class PendingTasks extends AbstractEndpoint |
30: | { |
31: | public function getURI(): string |
32: | { |
33: | return "/_cat/pending_tasks"; |
34: | } |
35: | |
36: | public function getParamWhitelist(): array |
37: | { |
38: | return [ |
39: | 'cluster_manager_timeout', |
40: | 'format', |
41: | 'h', |
42: | 'help', |
43: | 'local', |
44: | 'master_timeout', |
45: | 's', |
46: | 'time', |
47: | 'v', |
48: | 'pretty', |
49: | 'human', |
50: | 'error_trace', |
51: | 'source', |
52: | 'filter_path' |
53: | ]; |
54: | } |
55: | |
56: | public function getMethod(): string |
57: | { |
58: | return 'GET'; |
59: | } |
60: | |
61: | protected function getParamDeprecation(): array |
62: | { |
63: | return ['master_timeout' => 'cluster_manager_timeout']; |
64: | } |
65: | } |
66: | |