ProcessorGrok.php 839 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace Elasticsearch\Endpoints\Ingest\Pipeline;
  3. use Elasticsearch\Common\Exceptions;
  4. use Elasticsearch\Endpoints\AbstractEndpoint;
  5. /**
  6. * Class ProcessorGrok
  7. *
  8. * @category Elasticsearch
  9. * @package Elasticsearch\Endpoints\Ingest
  10. * @author Zachary Tong <zach@elastic.co>
  11. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
  12. * @link http://elastic.co
  13. */
  14. class ProcessorGrok extends AbstractEndpoint
  15. {
  16. /**
  17. * @throws \Elasticsearch\Common\Exceptions\RuntimeException
  18. * @return string
  19. */
  20. public function getURI()
  21. {
  22. return "/_ingest/processor/grok";
  23. }
  24. /**
  25. * @return string[]
  26. */
  27. public function getParamWhitelist()
  28. {
  29. return [];
  30. }
  31. /**
  32. * @return string
  33. */
  34. public function getMethod()
  35. {
  36. return 'GET';
  37. }
  38. }