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,18 +7,19 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Retrieves configuration information for data frame analytics jobs.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :id The ID of the data frame analytics to fetch
|
14
13
|
# @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no data frame analytics. (This includes `_all` string or when no data frame analytics have been specified)
|
15
14
|
# @option arguments [Int] :from skips a number of analytics
|
16
15
|
# @option arguments [Int] :size specifies a max number of analytics to get
|
17
|
-
|
16
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
18
17
|
#
|
19
|
-
# @see
|
18
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics.html
|
20
19
|
#
|
21
20
|
def get_data_frame_analytics(arguments = {})
|
21
|
+
headers = arguments.delete(:headers) || {}
|
22
|
+
|
22
23
|
arguments = arguments.clone
|
23
24
|
|
24
25
|
_id = arguments.delete(:id)
|
@@ -28,11 +29,11 @@ module Elasticsearch
|
|
28
29
|
"_ml/data_frame/analytics/#{Elasticsearch::API::Utils.__listify(_id)}"
|
29
30
|
else
|
30
31
|
"_ml/data_frame/analytics"
|
31
|
-
|
32
|
+
end
|
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 usage information for data frame analytics jobs.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :id The ID of the data frame analytics stats to fetch
|
14
13
|
# @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no data frame analytics. (This includes `_all` string or when no data frame analytics have been specified)
|
15
14
|
# @option arguments [Int] :from skips a number of analytics
|
16
15
|
# @option arguments [Int] :size specifies a max number of analytics to get
|
17
|
-
|
16
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
18
17
|
#
|
19
|
-
# @see
|
18
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html
|
20
19
|
#
|
21
20
|
def get_data_frame_analytics_stats(arguments = {})
|
21
|
+
headers = arguments.delete(:headers) || {}
|
22
|
+
|
22
23
|
arguments = arguments.clone
|
23
24
|
|
24
25
|
_id = arguments.delete(:id)
|
@@ -28,11 +29,11 @@ module Elasticsearch
|
|
28
29
|
"_ml/data_frame/analytics/#{Elasticsearch::API::Utils.__listify(_id)}/_stats"
|
29
30
|
else
|
30
31
|
"_ml/data_frame/analytics/_stats"
|
31
|
-
|
32
|
+
end
|
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,16 +7,17 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Retrieves usage information for datafeeds.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :datafeed_id The ID of the datafeeds stats to fetch
|
14
13
|
# @option arguments [Boolean] :allow_no_datafeeds Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)
|
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-get-datafeed-stats.html
|
18
17
|
#
|
19
18
|
def get_datafeed_stats(arguments = {})
|
19
|
+
headers = arguments.delete(:headers) || {}
|
20
|
+
|
20
21
|
arguments = arguments.clone
|
21
22
|
|
22
23
|
_datafeed_id = arguments.delete(:datafeed_id)
|
@@ -26,11 +27,11 @@ module Elasticsearch
|
|
26
27
|
"_ml/datafeeds/#{Elasticsearch::API::Utils.__listify(_datafeed_id)}/_stats"
|
27
28
|
else
|
28
29
|
"_ml/datafeeds/_stats"
|
29
|
-
|
30
|
+
end
|
30
31
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
31
32
|
|
32
33
|
body = nil
|
33
|
-
perform_request(method, path, params, body).body
|
34
|
+
perform_request(method, path, params, body, headers).body
|
34
35
|
end
|
35
36
|
|
36
37
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,16 +7,17 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Retrieves configuration information for datafeeds.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :datafeed_id The ID of the datafeeds to fetch
|
14
13
|
# @option arguments [Boolean] :allow_no_datafeeds Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)
|
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-get-datafeed.html
|
18
17
|
#
|
19
18
|
def get_datafeeds(arguments = {})
|
19
|
+
headers = arguments.delete(:headers) || {}
|
20
|
+
|
20
21
|
arguments = arguments.clone
|
21
22
|
|
22
23
|
_datafeed_id = arguments.delete(:datafeed_id)
|
@@ -26,11 +27,11 @@ module Elasticsearch
|
|
26
27
|
"_ml/datafeeds/#{Elasticsearch::API::Utils.__listify(_datafeed_id)}"
|
27
28
|
else
|
28
29
|
"_ml/datafeeds"
|
29
|
-
|
30
|
+
end
|
30
31
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
31
32
|
|
32
33
|
body = nil
|
33
|
-
perform_request(method, path, params, body).body
|
34
|
+
perform_request(method, path, params, body, headers).body
|
34
35
|
end
|
35
36
|
|
36
37
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,17 +7,18 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Retrieves filters.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :filter_id The ID of the filter to fetch
|
14
13
|
# @option arguments [Int] :from skips a number of filters
|
15
14
|
# @option arguments [Int] :size specifies a max number of filters to get
|
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-get-filter.html
|
19
18
|
#
|
20
19
|
def get_filters(arguments = {})
|
20
|
+
headers = arguments.delete(:headers) || {}
|
21
|
+
|
21
22
|
arguments = arguments.clone
|
22
23
|
|
23
24
|
_filter_id = arguments.delete(:filter_id)
|
@@ -27,11 +28,11 @@ module Elasticsearch
|
|
27
28
|
"_ml/filters/#{Elasticsearch::API::Utils.__listify(_filter_id)}"
|
28
29
|
else
|
29
30
|
"_ml/filters"
|
30
|
-
|
31
|
+
end
|
31
32
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
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
|
|
37
38
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,10 +7,9 @@ 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 influencers.
|
12
11
|
#
|
13
|
-
# @option arguments [String] :job_id
|
12
|
+
# @option arguments [String] :job_id Identifier for the anomaly detection job
|
14
13
|
# @option arguments [Boolean] :exclude_interim Exclude interim results
|
15
14
|
# @option arguments [Int] :from skips a number of influencers
|
16
15
|
# @option arguments [Int] :size specifies a max number of influencers to get
|
@@ -19,14 +18,16 @@ module Elasticsearch
|
|
19
18
|
# @option arguments [Double] :influencer_score influencer score threshold for the requested influencers
|
20
19
|
# @option arguments [String] :sort sort field for the requested influencers
|
21
20
|
# @option arguments [Boolean] :desc whether the results should be sorted in decending order
|
22
|
-
|
21
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
23
22
|
# @option arguments [Hash] :body Influencer selection criteria
|
24
23
|
#
|
25
|
-
# @see
|
24
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html
|
26
25
|
#
|
27
26
|
def get_influencers(arguments = {})
|
28
27
|
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
|
29
28
|
|
29
|
+
headers = arguments.delete(:headers) || {}
|
30
|
+
|
30
31
|
arguments = arguments.clone
|
31
32
|
|
32
33
|
_job_id = arguments.delete(:job_id)
|
@@ -36,7 +37,7 @@ module Elasticsearch
|
|
36
37
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
37
38
|
|
38
39
|
body = arguments[:body]
|
39
|
-
perform_request(method, path, params, body).body
|
40
|
+
perform_request(method, path, params, body, headers).body
|
40
41
|
end
|
41
42
|
|
42
43
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,16 +7,17 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Retrieves usage information for anomaly detection jobs.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :job_id The ID of the jobs stats to fetch
|
14
13
|
# @option arguments [Boolean] :allow_no_jobs Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)
|
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-get-job-stats.html
|
18
17
|
#
|
19
18
|
def get_job_stats(arguments = {})
|
19
|
+
headers = arguments.delete(:headers) || {}
|
20
|
+
|
20
21
|
arguments = arguments.clone
|
21
22
|
|
22
23
|
_job_id = arguments.delete(:job_id)
|
@@ -26,11 +27,11 @@ module Elasticsearch
|
|
26
27
|
"_ml/anomaly_detectors/#{Elasticsearch::API::Utils.__listify(_job_id)}/_stats"
|
27
28
|
else
|
28
29
|
"_ml/anomaly_detectors/_stats"
|
29
|
-
|
30
|
+
end
|
30
31
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
31
32
|
|
32
33
|
body = nil
|
33
|
-
perform_request(method, path, params, body).body
|
34
|
+
perform_request(method, path, params, body, headers).body
|
34
35
|
end
|
35
36
|
|
36
37
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,16 +7,17 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Retrieves configuration information for anomaly detection jobs.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :job_id The ID of the jobs to fetch
|
14
13
|
# @option arguments [Boolean] :allow_no_jobs Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)
|
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-get-job.html
|
18
17
|
#
|
19
18
|
def get_jobs(arguments = {})
|
19
|
+
headers = arguments.delete(:headers) || {}
|
20
|
+
|
20
21
|
arguments = arguments.clone
|
21
22
|
|
22
23
|
_job_id = arguments.delete(:job_id)
|
@@ -26,11 +27,11 @@ module Elasticsearch
|
|
26
27
|
"_ml/anomaly_detectors/#{Elasticsearch::API::Utils.__listify(_job_id)}"
|
27
28
|
else
|
28
29
|
"_ml/anomaly_detectors"
|
29
|
-
|
30
|
+
end
|
30
31
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
31
32
|
|
32
33
|
body = nil
|
33
|
-
perform_request(method, path, params, body).body
|
34
|
+
perform_request(method, path, params, body, headers).body
|
34
35
|
end
|
35
36
|
|
36
37
|
# 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 model snapshots.
|
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 fetch
|
@@ -18,14 +17,16 @@ module Elasticsearch
|
|
18
17
|
# @option arguments [Date] :end The filter 'end' query parameter
|
19
18
|
# @option arguments [String] :sort Name of the field to sort on
|
20
19
|
# @option arguments [Boolean] :desc True if the results should be sorted in descending order
|
21
|
-
|
20
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
22
21
|
# @option arguments [Hash] :body Model snapshot selection criteria
|
23
22
|
#
|
24
|
-
# @see
|
23
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html
|
25
24
|
#
|
26
25
|
def get_model_snapshots(arguments = {})
|
27
26
|
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
|
28
27
|
|
28
|
+
headers = arguments.delete(:headers) || {}
|
29
|
+
|
29
30
|
arguments = arguments.clone
|
30
31
|
|
31
32
|
_job_id = arguments.delete(:job_id)
|
@@ -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 = arguments[: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
|
+
# Retrieves overall bucket results that summarize the bucket results of multiple anomaly detection jobs.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :job_id The job IDs for which to calculate overall bucket results
|
14
13
|
# @option arguments [Int] :top_n The number of top job bucket scores to be used in the overall_score calculation
|
@@ -18,14 +17,16 @@ module Elasticsearch
|
|
18
17
|
# @option arguments [String] :start Returns overall buckets with timestamps after this time
|
19
18
|
# @option arguments [String] :end Returns overall buckets with timestamps earlier than this time
|
20
19
|
# @option arguments [Boolean] :allow_no_jobs Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)
|
21
|
-
|
20
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
22
21
|
# @option arguments [Hash] :body Overall bucket selection details if not provided in URI
|
23
22
|
#
|
24
|
-
# @see
|
23
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html
|
25
24
|
#
|
26
25
|
def get_overall_buckets(arguments = {})
|
27
26
|
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
|
28
27
|
|
28
|
+
headers = arguments.delete(:headers) || {}
|
29
|
+
|
29
30
|
arguments = arguments.clone
|
30
31
|
|
31
32
|
_job_id = arguments.delete(:job_id)
|
@@ -35,7 +36,7 @@ module Elasticsearch
|
|
35
36
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
36
37
|
|
37
38
|
body = arguments[:body]
|
38
|
-
perform_request(method, path, params, body).body
|
39
|
+
perform_request(method, path, params, body, headers).body
|
39
40
|
end
|
40
41
|
|
41
42
|
# Register this action with its valid params when the module is loaded.
|
@@ -7,26 +7,27 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module MachineLearning
|
9
9
|
module Actions
|
10
|
-
#
|
11
|
-
|
10
|
+
# Retrieves anomaly records for an anomaly detection job.
|
12
11
|
#
|
13
|
-
# @option arguments [String] :job_id
|
12
|
+
# @option arguments [String] :job_id The ID of the job
|
14
13
|
# @option arguments [Boolean] :exclude_interim Exclude interim results
|
15
14
|
# @option arguments [Int] :from skips a number of records
|
16
15
|
# @option arguments [Int] :size specifies a max number of records to get
|
17
16
|
# @option arguments [String] :start Start time filter for records
|
18
17
|
# @option arguments [String] :end End time filter for records
|
19
|
-
# @option arguments [Double] :record_score
|
18
|
+
# @option arguments [Double] :record_score Returns records with anomaly scores greater or equal than this value
|
20
19
|
# @option arguments [String] :sort Sort records by a particular field
|
21
20
|
# @option arguments [Boolean] :desc Set the sort direction
|
22
|
-
|
21
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
23
22
|
# @option arguments [Hash] :body Record selection criteria
|
24
23
|
#
|
25
|
-
# @see
|
24
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html
|
26
25
|
#
|
27
26
|
def get_records(arguments = {})
|
28
27
|
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
|
29
28
|
|
29
|
+
headers = arguments.delete(:headers) || {}
|
30
|
+
|
30
31
|
arguments = arguments.clone
|
31
32
|
|
32
33
|
_job_id = arguments.delete(:job_id)
|
@@ -36,7 +37,7 @@ module Elasticsearch
|
|
36
37
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
37
38
|
|
38
39
|
body = arguments[:body]
|
39
|
-
perform_request(method, path, params, body).body
|
40
|
+
perform_request(method, path, params, body, headers).body
|
40
41
|
end
|
41
42
|
|
42
43
|
# 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 configuration information for a trained inference model.
|
12
11
|
#
|
13
12
|
# @option arguments [String] :model_id The ID of the trained models to fetch
|
14
13
|
# @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no trained models. (This includes `_all` string or when no trained models have been specified)
|
@@ -16,11 +15,14 @@ module Elasticsearch
|
|
16
15
|
# @option arguments [Boolean] :decompress_definition Should the model definition be decompressed into valid JSON or returned in a custom compressed format. Defaults to true.
|
17
16
|
# @option arguments [Int] :from skips a number of trained models
|
18
17
|
# @option arguments [Int] :size specifies a max number of trained models to get
|
19
|
-
|
18
|
+
# @option arguments [List] :tags A comma-separated list of tags that the model must have.
|
19
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
20
20
|
#
|
21
21
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference.html
|
22
22
|
#
|
23
23
|
def get_trained_models(arguments = {})
|
24
|
+
headers = arguments.delete(:headers) || {}
|
25
|
+
|
24
26
|
arguments = arguments.clone
|
25
27
|
|
26
28
|
_model_id = arguments.delete(:model_id)
|
@@ -30,11 +32,11 @@ module Elasticsearch
|
|
30
32
|
"_ml/inference/#{Elasticsearch::API::Utils.__listify(_model_id)}"
|
31
33
|
else
|
32
34
|
"_ml/inference"
|
33
|
-
|
35
|
+
end
|
34
36
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
35
37
|
|
36
38
|
body = nil
|
37
|
-
perform_request(method, path, params, body).body
|
39
|
+
perform_request(method, path, params, body, headers).body
|
38
40
|
end
|
39
41
|
|
40
42
|
# Register this action with its valid params when the module is loaded.
|
@@ -45,7 +47,8 @@ module Elasticsearch
|
|
45
47
|
:include_model_definition,
|
46
48
|
:decompress_definition,
|
47
49
|
:from,
|
48
|
-
:size
|
50
|
+
:size,
|
51
|
+
:tags
|
49
52
|
].freeze)
|
50
53
|
end
|
51
54
|
end
|