lib/elasticsearch/api/actions/ingest/processor_grok.rb in elasticsearch-api-7.4.0 vs lib/elasticsearch/api/actions/ingest/processor_grok.rb in elasticsearch-api-7.5.0.pre.pre

- old
+ new

@@ -1,29 +1,28 @@ +# Licensed to Elasticsearch B.V under one or more agreements. +# Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +# See the LICENSE file in the project root for more information + module Elasticsearch module API module Ingest module Actions + # Returns a list of the built-in patterns. + # - # Extracts structured fields out of a single text field within a document. You choose which field to extract - # matched fields from, as well as the grok pattern you expect will match. # + # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.5/grok-processor.html#grok-processor-rest-get # - # @see https://www.elastic.co/guide/en/elasticsearch/plugins/current/ingest.html - # - def processor_grok(arguments={}) + def processor_grok(arguments = {}) + arguments = arguments.clone + method = Elasticsearch::API::HTTP_GET path = "_ingest/processor/grok" params = {} - body = nil + body = nil perform_request(method, path, params, body).body end - - # Register this action with its valid params when the module is loaded. - # - # @since 6.2.0 - ParamsRegistry.register(:processor_grok, [ - ].freeze) +end end - end end end