lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb in elasticsearch-api-8.0.0 vs lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb in elasticsearch-api-8.0.1
- old
+ new
@@ -26,14 +26,13 @@
# @option arguments [Hash] :body The datafeed config and job config with which to execute the preview
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html
#
def preview_datafeed(arguments = {})
+ arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = arguments.delete(:body)
-
- arguments = arguments.clone
_datafeed_id = arguments.delete(:datafeed_id)
method = if body
Elasticsearch::API::HTTP_POST