Skip to content

Commit e9f74dc

Browse files
committed
[API] Updates APIs
New parameters: * ml.preview_datafeed * `:start` - The start time from where the datafeed preview should begin * `:end` - The end time when the datafeed preview should stop * search_mvt - `:with_labels` If true, the hits and aggs layers will contain additional point features with suggested label positions for the original features.
1 parent a037d76 commit e9f74dc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/preview_datafeed.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ module Actions
2222
# Previews a datafeed.
2323
#
2424
# @option arguments [String] :datafeed_id The ID of the datafeed to preview
25+
# @option arguments [String] :start The start time from where the datafeed preview should begin
26+
# @option arguments [String] :end The end time when the datafeed preview should stop
2527
# @option arguments [Hash] :headers Custom HTTP headers
2628
# @option arguments [Hash] :body The datafeed config and job config with which to execute the preview
2729
#
@@ -46,7 +48,7 @@ def preview_datafeed(arguments = {})
4648
else
4749
"_ml/datafeeds/_preview"
4850
end
49-
params = {}
51+
params = Utils.process_params(arguments)
5052

5153
Elasticsearch::API::Response.new(
5254
perform_request(method, path, params, body, headers)

elasticsearch-api/lib/elasticsearch/api/actions/search_mvt.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ module Actions
3535
# @option arguments [String] :grid_type Determines the geometry type for features in the aggs layer. (options: grid, point, centroid)
3636
# @option arguments [Integer] :size Maximum number of features to return in the hits layer. Accepts 0-10000.
3737
# @option arguments [Boolean|long] :track_total_hits Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number.
38+
# @option arguments [Boolean] :with_labels If true, the hits and aggs layers will contain additional point features with suggested label positions for the original features.
3839
# @option arguments [Hash] :headers Custom HTTP headers
3940
# @option arguments [Hash] :body Search request body.
4041
#

0 commit comments

Comments
 (0)