| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace Elasticsearch\Endpoints\Cluster\Nodes;
- /**
- * Class Hotthreads
- *
- * @category Elasticsearch
- * @package Elasticsearch\Endpoints\Cluster\Nodes
- * @author Zachary Tong <zach@elastic.co>
- * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
- * @link http://elastic.co
- */
- class HotThreads extends AbstractNodesEndpoint
- {
- /**
- * @return string
- */
- public function getURI()
- {
- $node_id = $this->nodeID;
- $uri = "/_cluster/nodes/hotthreads";
- if (isset($node_id) === true) {
- $uri = "/_cluster/nodes/$node_id/hotthreads";
- }
- return $uri;
- }
- /**
- * @return string[]
- */
- public function getParamWhitelist()
- {
- return array(
- 'interval',
- 'snapshots',
- 'threads',
- 'type',
- );
- }
- /**
- * @return string
- */
- public function getMethod()
- {
- return 'GET';
- }
- }
|