| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace Elasticsearch\Endpoints\Tasks;
- use Elasticsearch\Common\Exceptions;
- use Elasticsearch\Endpoints\AbstractEndpoint;
- /**
- * Class TasksLists
- *
- * @category Elasticsearch
- * @package Elasticsearch\Endpoints\Tasks
- * @author Zachary Tong <zach@elastic.co>
- * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
- * @link http://elastic.co
- */
- class TasksList extends AbstractEndpoint
- {
- /**
- * @throws \Elasticsearch\Common\Exceptions\RuntimeException
- * @return string
- */
- public function getURI()
- {
- return "/_tasks";
- }
- /**
- * @return string[]
- */
- public function getParamWhitelist()
- {
- return array(
- 'node_id',
- 'actions',
- 'detailed',
- 'parent_node',
- 'parent_task',
- 'wait_for_completion',
- 'group_by',
- 'task_id'
- );
- }
- /**
- * @return string
- */
- public function getMethod()
- {
- return 'GET';
- }
- }
|