elasticsearch-xpack 7.6.0 → 7.7.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elasticsearch/xpack.rb +12 -0
- data/lib/elasticsearch/xpack/api/actions/async_search/delete.rb +37 -0
- data/lib/elasticsearch/xpack/api/actions/async_search/get.rb +49 -0
- data/lib/elasticsearch/xpack/api/actions/async_search/params_registry.rb +49 -0
- data/lib/elasticsearch/xpack/api/actions/async_search/submit.rb +136 -0
- data/lib/elasticsearch/xpack/api/actions/cat/ml_data_frame_analytics.rb +65 -0
- data/lib/elasticsearch/xpack/api/actions/cat/ml_datafeeds.rb +61 -0
- data/lib/elasticsearch/xpack/api/actions/cat/ml_jobs.rb +65 -0
- data/lib/elasticsearch/xpack/api/actions/cat/ml_trained_models.rb +69 -0
- data/lib/elasticsearch/xpack/api/actions/cat/params_registry.rb +49 -0
- data/lib/elasticsearch/xpack/api/actions/cat/transform.rb +64 -0
- data/lib/elasticsearch/xpack/api/actions/cat/transforms.rb +65 -0
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/delete_transform.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/get_transform.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/get_transform_stats.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/preview_transform.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/put_transform.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/start_transform.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/stop_transform.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/update_transform.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/graph/explore.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/delete_lifecycle.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/explain_lifecycle.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/get_lifecycle.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/get_status.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/move_to_step.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/put_lifecycle.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/remove_policy.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/retry.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/start.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/stop.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/info.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/license/delete.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/license/get.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/license/get_basic_status.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/license/get_trial_status.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/license/post.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/license/post_start_basic.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/license/post_start_trial.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/close_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar_event.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_data_frame_analytics.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_datafeed.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_expired_data.rb +7 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_filter.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_forecast.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_model_snapshot.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_trained_model.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/estimate_model_memory.rb +35 -0
- data/lib/elasticsearch/xpack/api/actions/machine_learning/evaluate_data_frame.rb +7 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/explain_data_frame_analytics.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/flush_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/forecast.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_buckets.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_calendar_events.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_calendars.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_categories.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_data_frame_analytics.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_data_frame_analytics_stats.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeed_stats.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeeds.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_filters.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_influencers.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_job_stats.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_jobs.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_model_snapshots.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_overall_buckets.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_records.rb +8 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_trained_models.rb +9 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_trained_models_stats.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/info.rb +7 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/open_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/post_calendar_events.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/post_data.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/preview_datafeed.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_calendar.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_calendar_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_data_frame_analytics.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_datafeed.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_filter.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_trained_model.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/revert_model_snapshot.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/set_upgrade_mode.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/start_data_frame_analytics.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/start_datafeed.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/stop_data_frame_analytics.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/stop_datafeed.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_datafeed.rb +22 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_filter.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_model_snapshot.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/validate.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/validate_detector.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/migration/deprecations.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/monitoring/bulk.rb +6 -4
- data/lib/elasticsearch/xpack/api/actions/rollup/delete_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/rollup/get_jobs.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/rollup/get_rollup_caps.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/rollup/get_rollup_index_caps.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/rollup/put_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/rollup/rollup_search.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/rollup/start_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/rollup/stop_job.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/security/authenticate.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/security/change_password.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/clear_cached_realms.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/security/create_api_key.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/delete_privileges.rb +6 -4
- data/lib/elasticsearch/xpack/api/actions/security/delete_role.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/delete_role_mapping.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/delete_user.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/disable_user.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/enable_user.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/get_api_key.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/security/get_builtin_privileges.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/security/get_privileges.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/security/get_role.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/security/get_role_mapping.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/security/get_token.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/security/get_user.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/security/get_user_privileges.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/security/has_privileges.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/security/invalidate_api_key.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/security/invalidate_token.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/security/put_privileges.rb +6 -4
- data/lib/elasticsearch/xpack/api/actions/security/put_role.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/put_role_mapping.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/security/put_user.rb +5 -3
- data/lib/elasticsearch/xpack/api/actions/sql/clear_cursor.rb +7 -4
- data/lib/elasticsearch/xpack/api/actions/sql/query.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/sql/translate.rb +7 -4
- data/lib/elasticsearch/xpack/api/actions/ssl/certificates.rb +6 -3
- data/lib/elasticsearch/xpack/api/actions/transform/delete_transform.rb +45 -0
- data/lib/elasticsearch/xpack/api/actions/transform/get_transform.rb +51 -0
- data/lib/elasticsearch/xpack/api/actions/transform/get_transform_stats.rb +49 -0
- data/lib/elasticsearch/xpack/api/actions/transform/params_registry.rb +49 -0
- data/lib/elasticsearch/xpack/api/actions/transform/preview_transform.rb +35 -0
- data/lib/elasticsearch/xpack/api/actions/transform/put_transform.rb +47 -0
- data/lib/elasticsearch/xpack/api/actions/transform/start_transform.rb +45 -0
- data/lib/elasticsearch/xpack/api/actions/transform/stop_transform.rb +53 -0
- data/lib/elasticsearch/xpack/api/actions/transform/update_transform.rb +47 -0
- data/lib/elasticsearch/xpack/api/actions/usage.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/watcher/ack_watch.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/watcher/activate_watch.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/watcher/deactivate_watch.rb +5 -4
- data/lib/elasticsearch/xpack/api/actions/watcher/delete_watch.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/watcher/execute_watch.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/watcher/get_watch.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/watcher/put_watch.rb +6 -5
- data/lib/elasticsearch/xpack/api/actions/watcher/start.rb +7 -4
- data/lib/elasticsearch/xpack/api/actions/watcher/stats.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/watcher/stop.rb +7 -4
- data/lib/elasticsearch/xpack/api/namespace/async_search.rb +22 -0
- data/lib/elasticsearch/xpack/api/namespace/cat.rb +21 -0
- data/lib/elasticsearch/xpack/api/namespace/transform.rb +22 -0
- data/lib/elasticsearch/xpack/version.rb +1 -1
- metadata +28 -4
@@ -7,19 +7,20 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Deletes an existing anomaly detection job.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :job_id The ID of the job to delete
|
14
13
|
# @option arguments [Boolean] :force True if the job should be forcefully deleted
|
15
14
|
# @option arguments [Boolean] :wait_for_completion Should this request wait until the operation has completed before returning
|
16
|
-
|
15
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
17
16
|
#
|
18
|
-
# @see
|
17
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html
|
19
18
|
#
|
20
19
|
def delete_job(arguments = {})
|
21
20
|
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
|
22
21
|
|
22
|
+
headers = arguments.delete(:headers) || {}
|
23
|
+
|
23
24
|
arguments = arguments.clone
|
24
25
|
|
25
26
|
_job_id = arguments.delete(:job_id)
|
@@ -29,7 +30,7 @@ module Elasticsearch
|
|
29
30
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
30
31
|
|
31
32
|
body = nil
|
32
|
-
perform_request(method, path, params, body).body
|
33
|
+
perform_request(method, path, params, body, headers).body
|
33
34
|
end
|
34
35
|
|
35
36
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,19 +7,20 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Deletes an existing model snapshot.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :job_id The ID of the job to fetch
|
14
13
|
# @option arguments [String] :snapshot_id The ID of the snapshot to delete
|
15
|
-
|
14
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
16
15
|
#
|
17
|
-
# @see
|
16
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html
|
18
17
|
#
|
19
18
|
def delete_model_snapshot(arguments = {})
|
20
19
|
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
|
21
20
|
raise ArgumentError, "Required argument 'snapshot_id' missing" unless arguments[:snapshot_id]
|
22
21
|
|
22
|
+
headers = arguments.delete(:headers) || {}
|
23
|
+
|
23
24
|
arguments = arguments.clone
|
24
25
|
|
25
26
|
_job_id = arguments.delete(:job_id)
|
@@ -31,7 +32,7 @@ module Elasticsearch
|
|
31
32
|
params = {}
|
32
33
|
|
33
34
|
body = nil
|
34
|
-
perform_request(method, path, params, body).body
|
35
|
+
perform_request(method, path, params, body, headers).body
|
35
36
|
end
|
36
37
|
end
|
37
38
|
end
|
@@ -7,17 +7,18 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Deletes an existing trained inference model that is currently not referenced by an ingest pipeline.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :model_id The ID of the trained model to delete
|
14
|
-
|
13
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
15
14
|
#
|
16
15
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference.html
|
17
16
|
#
|
18
17
|
def delete_trained_model(arguments = {})
|
19
18
|
raise ArgumentError, "Required argument 'model_id' missing" unless arguments[:model_id]
|
20
19
|
|
20
|
+
headers = arguments.delete(:headers) || {}
|
21
|
+
|
21
22
|
arguments = arguments.clone
|
22
23
|
|
23
24
|
_model_id = arguments.delete(:model_id)
|
@@ -27,7 +28,7 @@ module Elasticsearch
|
|
27
28
|
params = {}
|
28
29
|
|
29
30
|
body = nil
|
30
|
-
perform_request(method, path, params, body).body
|
31
|
+
perform_request(method, path, params, body, headers).body
|
31
32
|
end
|
32
33
|
end
|
33
34
|
end
|
@@ -0,0 +1,35 @@
|
|
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
|
+
# Estimates the model memory
|
11
|
+
#
|
12
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
13
|
+
# @option arguments [Hash] :body The analysis config, plus cardinality estimates for fields it references (*Required*)
|
14
|
+
#
|
15
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-apis.html
|
16
|
+
#
|
17
|
+
def estimate_model_memory(arguments = {})
|
18
|
+
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
19
|
+
|
20
|
+
headers = arguments.delete(:headers) || {}
|
21
|
+
|
22
|
+
arguments = arguments.clone
|
23
|
+
|
24
|
+
method = Elasticsearch::API::HTTP_POST
|
25
|
+
path = "_ml/anomaly_detectors/_estimate_model_memory"
|
26
|
+
params = {}
|
27
|
+
|
28
|
+
body = arguments[:body]
|
29
|
+
perform_request(method, path, params, body, headers).body
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -7,15 +7,18 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Evaluates the data frame analytics for an annotated index.
|
11
|
+
#
|
12
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
12
13
|
# @option arguments [Hash] :body The evaluation definition (*Required*)
|
13
14
|
#
|
14
|
-
# @see
|
15
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html
|
15
16
|
#
|
16
17
|
def evaluate_data_frame(arguments = {})
|
17
18
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
18
19
|
|
20
|
+
headers = arguments.delete(:headers) || {}
|
21
|
+
|
19
22
|
arguments = arguments.clone
|
20
23
|
|
21
24
|
method = Elasticsearch::API::HTTP_POST
|
@@ -23,7 +26,7 @@ module Elasticsearch
|
|
23
26
|
params = {}
|
24
27
|
|
25
28
|
body = arguments[:body]
|
26
|
-
perform_request(method, path, params, body).body
|
29
|
+
perform_request(method, path, params, body, headers).body
|
27
30
|
end
|
28
31
|
end
|
29
32
|
end
|
@@ -7,16 +7,17 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Explains a data frame analytics config.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :id The ID of the data frame analytics to explain
|
14
|
-
|
13
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
15
14
|
# @option arguments [Hash] :body The data frame analytics config to explain
|
16
15
|
#
|
17
16
|
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html
|
18
17
|
#
|
19
18
|
def explain_data_frame_analytics(arguments = {})
|
19
|
+
headers = arguments.delete(:headers) || {}
|
20
|
+
|
20
21
|
arguments = arguments.clone
|
21
22
|
|
22
23
|
_id = arguments.delete(:id)
|
@@ -26,11 +27,11 @@ module Elasticsearch
|
|
26
27
|
"_ml/data_frame/analytics/#{Elasticsearch::API::Utils.__listify(_id)}/_explain"
|
27
28
|
else
|
28
29
|
"_ml/data_frame/analytics/_explain"
|
29
|
-
|
30
|
+
end
|
30
31
|
params = {}
|
31
32
|
|
32
33
|
body = arguments[:body]
|
33
|
-
perform_request(method, path, params, body).body
|
34
|
+
perform_request(method, path, params, body, headers).body
|
34
35
|
end
|
35
36
|
end
|
36
37
|
end
|
@@ -7,8 +7,7 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Finds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch.
|
12
11
|
#
|
13
12
|
# @option arguments [Int] :lines_to_sample How many lines of the file should be included in the analysis
|
14
13
|
# @option arguments [Int] :line_merge_size_limit Maximum number of characters permitted in a single message when lines are merged to create messages.
|
@@ -26,14 +25,16 @@ module Elasticsearch
|
|
26
25
|
# @option arguments [String] :timestamp_field Optional parameter to specify the timestamp field in the file
|
27
26
|
# @option arguments [String] :timestamp_format Optional parameter to specify the timestamp format in the file - may be either a Joda or Java time format
|
28
27
|
# @option arguments [Boolean] :explain Whether to include a commentary on how the structure was derived
|
29
|
-
|
28
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
30
29
|
# @option arguments [Hash] :body The contents of the file to be analyzed (*Required*)
|
31
30
|
#
|
32
|
-
# @see
|
31
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-find-file-structure.html
|
33
32
|
#
|
34
33
|
def find_file_structure(arguments = {})
|
35
34
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
36
35
|
|
36
|
+
headers = arguments.delete(:headers) || {}
|
37
|
+
|
37
38
|
arguments = arguments.clone
|
38
39
|
|
39
40
|
method = Elasticsearch::API::HTTP_POST
|
@@ -41,7 +42,7 @@ module Elasticsearch
|
|
41
42
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
42
43
|
|
43
44
|
body = Elasticsearch::API::Utils.__bulkify(arguments.delete(:body))
|
44
|
-
perform_request(method, path, params, body).body
|
45
|
+
perform_request(method, path, params, body, headers).body
|
45
46
|
end
|
46
47
|
|
47
48
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,8 +7,7 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Forces any buffered data to be processed by the job.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :job_id The name of the job to flush
|
14
13
|
# @option arguments [Boolean] :calc_interim Calculates interim results for the most recent bucket or all buckets within the latency period
|
@@ -16,14 +15,16 @@ module Elasticsearch
|
|
16
15
|
# @option arguments [String] :end When used in conjunction with calc_interim, specifies the range of buckets on which to calculate interim results
|
17
16
|
# @option arguments [String] :advance_time Advances time to the given value generating results and updating the model for the advanced interval
|
18
17
|
# @option arguments [String] :skip_time Skips time to the given value without generating results or updating the model for the skipped interval
|
19
|
-
|
18
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
20
19
|
# @option arguments [Hash] :body Flush parameters
|
21
20
|
#
|
22
|
-
# @see
|
21
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html
|
23
22
|
#
|
24
23
|
def flush_job(arguments = {})
|
25
24
|
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
|
26
25
|
|
26
|
+
headers = arguments.delete(:headers) || {}
|
27
|
+
|
27
28
|
arguments = arguments.clone
|
28
29
|
|
29
30
|
_job_id = arguments.delete(:job_id)
|
@@ -33,7 +34,7 @@ module Elasticsearch
|
|
33
34
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
34
35
|
|
35
36
|
body = arguments[:body]
|
36
|
-
perform_request(method, path, params, body).body
|
37
|
+
perform_request(method, path, params, body, headers).body
|
37
38
|
end
|
38
39
|
|
39
40
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,19 +7,20 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Predicts the future behavior of a time series by using its historical behavior.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :job_id The ID of the job to forecast for
|
14
13
|
# @option arguments [Time] :duration The duration of the forecast
|
15
14
|
# @option arguments [Time] :expires_in The time interval after which the forecast expires. Expired forecasts will be deleted at the first opportunity.
|
16
|
-
|
15
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
17
16
|
#
|
18
|
-
# @see
|
17
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-forecast.html
|
19
18
|
#
|
20
19
|
def forecast(arguments = {})
|
21
20
|
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
|
22
21
|
|
22
|
+
headers = arguments.delete(:headers) || {}
|
23
|
+
|
23
24
|
arguments = arguments.clone
|
24
25
|
|
25
26
|
_job_id = arguments.delete(:job_id)
|
@@ -29,7 +30,7 @@ module Elasticsearch
|
|
29
30
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
30
31
|
|
31
32
|
body = nil
|
32
|
-
perform_request(method, path, params, body).body
|
33
|
+
perform_request(method, path, params, body, headers).body
|
33
34
|
end
|
34
35
|
|
35
36
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,8 +7,7 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Retrieves anomaly detection job results for one or more buckets.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :job_id ID of the job to get bucket results from
|
14
13
|
# @option arguments [String] :timestamp The timestamp of the desired single bucket result
|
@@ -21,14 +20,16 @@ module Elasticsearch
|
|
21
20
|
# @option arguments [Double] :anomaly_score Filter for the most anomalous buckets
|
22
21
|
# @option arguments [String] :sort Sort buckets by a particular field
|
23
22
|
# @option arguments [Boolean] :desc Set the sort direction
|
24
|
-
|
23
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
25
24
|
# @option arguments [Hash] :body Bucket selection details if not provided in URI
|
26
25
|
#
|
27
|
-
# @see
|
26
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html
|
28
27
|
#
|
29
28
|
def get_buckets(arguments = {})
|
30
29
|
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
|
31
30
|
|
31
|
+
headers = arguments.delete(:headers) || {}
|
32
|
+
|
32
33
|
arguments = arguments.clone
|
33
34
|
|
34
35
|
_job_id = arguments.delete(:job_id)
|
@@ -44,7 +45,7 @@ module Elasticsearch
|
|
44
45
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
45
46
|
|
46
47
|
body = arguments[:body]
|
47
|
-
perform_request(method, path, params, body).body
|
48
|
+
perform_request(method, path, params, body, headers).body
|
48
49
|
end
|
49
50
|
|
50
51
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,8 +7,7 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Retrieves information about the scheduled events in calendars.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :calendar_id The ID of the calendar containing the events
|
14
13
|
# @option arguments [String] :job_id Get events for the job. When this option is used calendar_id must be '_all'
|
@@ -16,13 +15,15 @@ module Elasticsearch
|
|
16
15
|
# @option arguments [Date] :end Get events before this time
|
17
16
|
# @option arguments [Int] :from Skips a number of events
|
18
17
|
# @option arguments [Int] :size Specifies a max number of events to get
|
19
|
-
|
18
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
20
19
|
#
|
21
|
-
# @see
|
20
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar-event.html
|
22
21
|
#
|
23
22
|
def get_calendar_events(arguments = {})
|
24
23
|
raise ArgumentError, "Required argument 'calendar_id' missing" unless arguments[:calendar_id]
|
25
24
|
|
25
|
+
headers = arguments.delete(:headers) || {}
|
26
|
+
|
26
27
|
arguments = arguments.clone
|
27
28
|
|
28
29
|
_calendar_id = arguments.delete(:calendar_id)
|
@@ -32,7 +33,7 @@ module Elasticsearch
|
|
32
33
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
33
34
|
|
34
35
|
body = nil
|
35
|
-
perform_request(method, path, params, body).body
|
36
|
+
perform_request(method, path, params, body, headers).body
|
36
37
|
end
|
37
38
|
|
38
39
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,18 +7,19 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Retrieves configuration information for calendars.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :calendar_id The ID of the calendar to fetch
|
14
13
|
# @option arguments [Int] :from skips a number of calendars
|
15
14
|
# @option arguments [Int] :size specifies a max number of calendars to get
|
16
|
-
|
15
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
17
16
|
# @option arguments [Hash] :body The from and size parameters optionally sent in the body
|
18
17
|
#
|
19
|
-
# @see
|
18
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar.html
|
20
19
|
#
|
21
20
|
def get_calendars(arguments = {})
|
21
|
+
headers = arguments.delete(:headers) || {}
|
22
|
+
|
22
23
|
arguments = arguments.clone
|
23
24
|
|
24
25
|
_calendar_id = arguments.delete(:calendar_id)
|
@@ -28,11 +29,11 @@ module Elasticsearch
|
|
28
29
|
"_ml/calendars/#{Elasticsearch::API::Utils.__listify(_calendar_id)}"
|
29
30
|
else
|
30
31
|
"_ml/calendars"
|
31
|
-
|
32
|
+
end
|
32
33
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
33
34
|
|
34
35
|
body = arguments[:body]
|
35
|
-
perform_request(method, path, params, body).body
|
36
|
+
perform_request(method, path, params, body, headers).body
|
36
37
|
end
|
37
38
|
|
38
39
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,21 +7,22 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Retrieves anomaly detection job results for one or more categories.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :job_id The name of the job
|
14
13
|
# @option arguments [Long] :category_id The identifier of the category definition of interest
|
15
14
|
# @option arguments [Int] :from skips a number of categories
|
16
15
|
# @option arguments [Int] :size specifies a max number of categories to get
|
17
|
-
|
16
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
18
17
|
# @option arguments [Hash] :body Category selection details if not provided in URI
|
19
18
|
#
|
20
|
-
# @see
|
19
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html
|
21
20
|
#
|
22
21
|
def get_categories(arguments = {})
|
23
22
|
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
|
24
23
|
|
24
|
+
headers = arguments.delete(:headers) || {}
|
25
|
+
|
25
26
|
arguments = arguments.clone
|
26
27
|
|
27
28
|
_job_id = arguments.delete(:job_id)
|
@@ -37,7 +38,7 @@ module Elasticsearch
|
|
37
38
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
38
39
|
|
39
40
|
body = arguments[:body]
|
40
|
-
perform_request(method, path, params, body).body
|
41
|
+
perform_request(method, path, params, body, headers).body
|
41
42
|
end
|
42
43
|
|
43
44
|
# Register this action with its valid params when the module is loaded.
|