NodeAttrs.php 888 B

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