Skip to content

Commit a2cc708

Browse files
committed
[X-Pack] Generate 7.x API code
1 parent 9501c4e commit a2cc708

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+122
-57
lines changed

elasticsearch-xpack/lib/elasticsearch/xpack/api/actions/machine_learning/close_job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module Actions
1717

1818
# @option arguments [Hash] :body The URL params optionally sent in the body
1919
#
20-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html
20+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html
2121
#
2222
def close_job(arguments = {})
2323
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]

elasticsearch-xpack/lib/elasticsearch/xpack/api/actions/machine_learning/delete_data_frame_analytics.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module Actions
1414
# @option arguments [Boolean] :force True if the job should be forcefully deleted
1515

1616
#
17-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/delete-dfanalytics.html
17+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-dfanalytics.html
1818
#
1919
def delete_data_frame_analytics(arguments = {})
2020
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]

elasticsearch-xpack/lib/elasticsearch/xpack/api/actions/machine_learning/delete_datafeed.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module Actions
1414
# @option arguments [Boolean] :force True if the datafeed should be forcefully deleted
1515

1616
#
17-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html
17+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html
1818
#
1919
def delete_datafeed(arguments = {})
2020
raise ArgumentError, "Required argument 'datafeed_id' missing" unless arguments[:datafeed_id]

elasticsearch-xpack/lib/elasticsearch/xpack/api/actions/machine_learning/delete_forecast.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module Actions
1616
# @option arguments [Time] :timeout Controls the time to wait until the forecast(s) are deleted. Default to 30 seconds
1717

1818
#
19-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html
19+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html
2020
#
2121
def delete_forecast(arguments = {})
2222
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]

elasticsearch-xpack/lib/elasticsearch/xpack/api/actions/machine_learning/delete_job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module Actions
1515
# @option arguments [Boolean] :wait_for_completion Should this request wait until the operation has completed before returning
1616

1717
#
18-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html
18+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html
1919
#
2020
def delete_job(arguments = {})
2121
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]

elasticsearch-xpack/lib/elasticsearch/xpack/api/actions/machine_learning/delete_model_snapshot.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module Actions
1414
# @option arguments [String] :snapshot_id The ID of the snapshot to delete
1515

1616
#
17-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html
17+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html
1818
#
1919
def delete_model_snapshot(arguments = {})
2020
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Licensed to Elasticsearch B.V under one or more agreements.
2+
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+
# See the LICENSE file in the project root for more information
4+
5+
module Elasticsearch
6+
module XPack
7+
module API
8+
module MachineLearning
9+
module Actions
10+
# TODO: Description
11+
12+
# @option arguments [Hash] :body The analysis config, plus cardinality estimates for fields it references (*Required*)
13+
#
14+
# @see [TODO]
15+
#
16+
def estimate_model_memory(arguments = {})
17+
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
18+
19+
arguments = arguments.clone
20+
21+
method = Elasticsearch::API::HTTP_POST
22+
path = "_ml/anomaly_detectors/_estimate_model_memory"
23+
params = {}
24+
25+
body = arguments[:body]
26+
perform_request(method, path, params, body).body
27+
end
28+
end
29+
end
30+
end
31+
end
32+
end

elasticsearch-xpack/lib/elasticsearch/xpack/api/actions/machine_learning/evaluate_data_frame.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module Actions
1111

1212
# @option arguments [Hash] :body The evaluation definition (*Required*)
1313
#
14-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html
14+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html
1515
#
1616
def evaluate_data_frame(arguments = {})
1717
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]

elasticsearch-xpack/lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module Actions
2929

3030
# @option arguments [Hash] :body The contents of the file to be analyzed (*Required*)
3131
#
32-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-find-file-structure.html
32+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-find-file-structure.html
3333
#
3434
def find_file_structure(arguments = {})
3535
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]

elasticsearch-xpack/lib/elasticsearch/xpack/api/actions/machine_learning/flush_job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module Actions
1919

2020
# @option arguments [Hash] :body Flush parameters
2121
#
22-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html
22+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html
2323
#
2424
def flush_job(arguments = {})
2525
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]

0 commit comments

Comments
 (0)