elasticsearch-xpack 7.4.0 → 7.5.0.pre.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/elasticsearch/xpack/api/actions/{data_frame/delete_data_frame_transform.rb → data_frame_transform_deprecated/delete_transform.rb} +24 -16
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/get_transform.rb +55 -0
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/get_transform_stats.rb +53 -0
- data/lib/elasticsearch/xpack/api/actions/{data_frame → data_frame_transform_deprecated}/params_registry.rb +1 -2
- data/lib/elasticsearch/xpack/api/actions/{data_frame/preview_data_frame_transform.rb → data_frame_transform_deprecated/preview_transform.rb} +15 -9
- data/lib/elasticsearch/xpack/api/actions/{data_frame/put_data_frame_transform.rb → data_frame_transform_deprecated/put_transform.rb} +23 -16
- data/lib/elasticsearch/xpack/api/actions/{data_frame/start_data_frame_transform.rb → data_frame_transform_deprecated/start_transform.rb} +22 -13
- data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/stop_transform.rb +53 -0
- data/lib/elasticsearch/xpack/api/actions/{data_frame/update_data_frame_transform.rb → data_frame_transform_deprecated/update_transform.rb} +23 -17
- data/lib/elasticsearch/xpack/api/actions/graph/explore.rb +30 -16
- data/lib/elasticsearch/xpack/api/actions/graph/params_registry.rb +0 -1
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/delete_lifecycle.rb +36 -0
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/delete_policy.rb +4 -5
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/explain.rb +4 -5
- data/lib/elasticsearch/xpack/api/actions/{migration/upgrade.rb → index_lifecycle_management/explain_lifecycle.rb} +22 -12
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/get_lifecycle.rb +38 -0
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/get_policy.rb +3 -5
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/get_status.rb +7 -14
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/move_to_step.rb +14 -18
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/params_registry.rb +0 -1
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/put_lifecycle.rb +37 -0
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/put_policy.rb +4 -4
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/remove_policy.rb +13 -15
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/retry.rb +36 -0
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/retry_policy.rb +5 -5
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/start.rb +7 -14
- data/lib/elasticsearch/xpack/api/actions/index_lifecycle_management/stop.rb +7 -14
- data/lib/elasticsearch/xpack/api/actions/info.rb +14 -13
- data/lib/elasticsearch/xpack/api/actions/license/delete.rb +8 -6
- data/lib/elasticsearch/xpack/api/actions/license/get.rb +14 -9
- data/lib/elasticsearch/xpack/api/actions/license/get_basic_status.rb +8 -7
- data/lib/elasticsearch/xpack/api/actions/license/get_trial_status.rb +8 -7
- data/lib/elasticsearch/xpack/api/actions/license/params_registry.rb +0 -1
- data/lib/elasticsearch/xpack/api/actions/license/post.rb +15 -11
- data/lib/elasticsearch/xpack/api/actions/license/post_start_basic.rb +13 -8
- data/lib/elasticsearch/xpack/api/actions/license/post_start_trial.rb +14 -9
- data/lib/elasticsearch/xpack/api/actions/machine_learning/close_job.rb +19 -10
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar.rb +12 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar_event.rb +15 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar_job.rb +15 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_data_frame_analytics.rb +36 -0
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_datafeed.rb +16 -8
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_expired_data.rb +10 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_filter.rb +15 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_forecast.rb +32 -14
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_job.rb +18 -8
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_model_snapshot.rb +15 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/estimate_memory_usage.rb +7 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/evaluate_data_frame.rb +32 -0
- data/lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb +52 -8
- data/lib/elasticsearch/xpack/api/actions/machine_learning/flush_job.rb +22 -15
- data/lib/elasticsearch/xpack/api/actions/machine_learning/forecast.rb +18 -10
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_buckets.rb +29 -19
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_calendar_events.rb +18 -14
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_calendars.rb +18 -10
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_categories.rb +24 -10
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_data_frame_analytics.rb +50 -0
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_data_frame_analytics_stats.rb +50 -0
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeed_stats.rb +18 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeeds.rb +19 -8
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_filters.rb +22 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_influencers.rb +24 -16
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_job_stats.rb +19 -8
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_jobs.rb +18 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_model_snapshots.rb +30 -16
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_overall_buckets.rb +23 -15
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_records.rb +24 -16
- data/lib/elasticsearch/xpack/api/actions/machine_learning/info.rb +7 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/open_job.rb +12 -8
- data/lib/elasticsearch/xpack/api/actions/machine_learning/params_registry.rb +0 -1
- data/lib/elasticsearch/xpack/api/actions/machine_learning/post_calendar_events.rb +13 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/post_data.rb +19 -11
- data/lib/elasticsearch/xpack/api/actions/machine_learning/preview_datafeed.rb +12 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_calendar.rb +12 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_calendar_job.rb +15 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_data_frame_analytics.rb +38 -0
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_datafeed.rb +13 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_filter.rb +16 -6
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_job.rb +13 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/revert_model_snapshot.rb +20 -9
- data/lib/elasticsearch/xpack/api/actions/machine_learning/set_upgrade_mode.rb +16 -13
- data/lib/elasticsearch/xpack/api/actions/machine_learning/start_data_frame_analytics.rb +45 -0
- data/lib/elasticsearch/xpack/api/actions/machine_learning/start_datafeed.rb +19 -11
- data/lib/elasticsearch/xpack/api/actions/machine_learning/stop_data_frame_analytics.rb +49 -0
- data/lib/elasticsearch/xpack/api/actions/machine_learning/stop_datafeed.rb +18 -10
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_datafeed.rb +12 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_filter.rb +15 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_job.rb +13 -7
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_model_snapshot.rb +15 -8
- data/lib/elasticsearch/xpack/api/actions/machine_learning/validate.rb +9 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/validate_detector.rb +10 -4
- data/lib/elasticsearch/xpack/api/actions/migration/deprecations.rb +16 -8
- data/lib/elasticsearch/xpack/api/actions/migration/params_registry.rb +0 -1
- data/lib/elasticsearch/xpack/api/actions/params_registry.rb +0 -1
- data/lib/elasticsearch/xpack/api/actions/rollup/delete_job.rb +12 -6
- data/lib/elasticsearch/xpack/api/actions/rollup/get_jobs.rb +14 -5
- data/lib/elasticsearch/xpack/api/actions/rollup/get_rollup_caps.rb +16 -5
- data/lib/elasticsearch/xpack/api/actions/rollup/get_rollup_index_caps.rb +12 -6
- data/lib/elasticsearch/xpack/api/actions/rollup/params_registry.rb +0 -1
- data/lib/elasticsearch/xpack/api/actions/rollup/put_job.rb +13 -7
- data/lib/elasticsearch/xpack/api/actions/rollup/rollup_search.rb +31 -11
- data/lib/elasticsearch/xpack/api/actions/rollup/start_job.rb +12 -6
- data/lib/elasticsearch/xpack/api/actions/rollup/stop_job.rb +23 -7
- data/lib/elasticsearch/xpack/api/actions/security/authenticate.rb +8 -6
- data/lib/elasticsearch/xpack/api/actions/security/change_password.rb +20 -10
- data/lib/elasticsearch/xpack/api/actions/security/clear_cached_realms.rb +16 -11
- data/lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb +13 -8
- data/lib/elasticsearch/xpack/api/actions/security/create_api_key.rb +16 -11
- data/lib/elasticsearch/xpack/api/actions/security/delete_privileges.rb +24 -9
- data/lib/elasticsearch/xpack/api/actions/security/delete_role.rb +20 -15
- data/lib/elasticsearch/xpack/api/actions/security/delete_role_mapping.rb +17 -12
- data/lib/elasticsearch/xpack/api/actions/security/delete_user.rb +19 -17
- data/lib/elasticsearch/xpack/api/actions/security/disable_user.rb +17 -13
- data/lib/elasticsearch/xpack/api/actions/security/enable_user.rb +17 -13
- data/lib/elasticsearch/xpack/api/actions/security/get_api_key.rb +21 -16
- data/lib/elasticsearch/xpack/api/actions/security/get_builtin_privileges.rb +6 -4
- data/lib/elasticsearch/xpack/api/actions/security/get_privileges.rb +21 -9
- data/lib/elasticsearch/xpack/api/actions/security/get_role.rb +15 -6
- data/lib/elasticsearch/xpack/api/actions/security/get_role_mapping.rb +15 -6
- data/lib/elasticsearch/xpack/api/actions/security/get_token.rb +9 -7
- data/lib/elasticsearch/xpack/api/actions/security/get_user.rb +15 -6
- data/lib/elasticsearch/xpack/api/actions/security/get_user_privileges.rb +10 -5
- data/lib/elasticsearch/xpack/api/actions/security/has_privileges.rb +17 -7
- data/lib/elasticsearch/xpack/api/actions/security/invalidate_api_key.rb +8 -6
- data/lib/elasticsearch/xpack/api/actions/security/invalidate_token.rb +9 -7
- data/lib/elasticsearch/xpack/api/actions/security/params_registry.rb +0 -1
- data/lib/elasticsearch/xpack/api/actions/security/put_privileges.rb +17 -9
- data/lib/elasticsearch/xpack/api/actions/security/put_role.rb +20 -11
- data/lib/elasticsearch/xpack/api/actions/security/put_role_mapping.rb +19 -16
- data/lib/elasticsearch/xpack/api/actions/security/put_user.rb +18 -12
- data/lib/elasticsearch/xpack/api/actions/sql/clear_cursor.rb +8 -6
- data/lib/elasticsearch/xpack/api/actions/sql/params_registry.rb +0 -1
- data/lib/elasticsearch/xpack/api/actions/sql/query.rb +14 -8
- data/lib/elasticsearch/xpack/api/actions/sql/translate.rb +8 -6
- data/lib/elasticsearch/xpack/api/actions/ssl/certificates.rb +10 -4
- data/lib/elasticsearch/xpack/api/actions/ssl/params_registry.rb +0 -1
- data/lib/elasticsearch/xpack/api/actions/usage.rb +14 -9
- data/lib/elasticsearch/xpack/api/actions/watcher/ack_watch.rb +18 -19
- data/lib/elasticsearch/xpack/api/actions/watcher/activate_watch.rb +12 -15
- data/lib/elasticsearch/xpack/api/actions/watcher/deactivate_watch.rb +12 -15
- data/lib/elasticsearch/xpack/api/actions/watcher/delete_watch.rb +14 -16
- data/lib/elasticsearch/xpack/api/actions/watcher/execute_watch.rb +19 -10
- data/lib/elasticsearch/xpack/api/actions/watcher/get_watch.rb +12 -7
- data/lib/elasticsearch/xpack/api/actions/watcher/params_registry.rb +0 -1
- data/lib/elasticsearch/xpack/api/actions/watcher/put_watch.rb +24 -16
- data/lib/elasticsearch/xpack/api/actions/watcher/start.rb +8 -7
- data/lib/elasticsearch/xpack/api/actions/watcher/stats.rb +27 -11
- data/lib/elasticsearch/xpack/api/actions/watcher/stop.rb +8 -7
- data/lib/elasticsearch/xpack/api/namespace/data_frame.rb +1 -1
- data/lib/elasticsearch/xpack/version.rb +1 -1
- metadata +25 -16
- data/lib/elasticsearch/xpack/api/actions/data_frame/get_data_frame_transform.rb +0 -43
- data/lib/elasticsearch/xpack/api/actions/data_frame/get_data_frame_transform_stats.rb +0 -42
- data/lib/elasticsearch/xpack/api/actions/data_frame/stop_data_frame_transform.rb +0 -46
- data/lib/elasticsearch/xpack/api/actions/migration/get_assistance.rb +0 -39
- data/lib/elasticsearch/xpack/api/actions/watcher/restart.rb +0 -27
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 91a0184d49c7a454d3ee071e35266936cb5d502191da37c720713a10c3d4243f
|
|
4
|
+
data.tar.gz: c45db719a9eb9df0f90f69aa0fa0ec613e442df072d8ce255b36d86f43ed95c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b28c0aab9d81fd11e79eaa29398b95ab369264df1e90c780c3f04fbe0ff2306ec4c1c6d81ad7cc6842f6b35cc6b454e4bdfb2c5f47a11c895f29319a7c400e85
|
|
7
|
+
data.tar.gz: a6fcb2cda776b525e1adb0e78088d6ce96b6feeb21e990119a77ec483fc7edae3373192ed23e2569e3b6ae4730f8aa32e2fd4a6fcf9d83975362b012b7cb9e66
|
|
@@ -5,37 +5,45 @@
|
|
|
5
5
|
module Elasticsearch
|
|
6
6
|
module XPack
|
|
7
7
|
module API
|
|
8
|
-
module
|
|
8
|
+
module DataFrameTransformDeprecated
|
|
9
9
|
module Actions
|
|
10
|
+
# TODO: Description
|
|
10
11
|
|
|
11
|
-
# Deletes an existing data frame transform.
|
|
12
12
|
#
|
|
13
|
-
# @option arguments [String] :transform_id The id of the transform to delete
|
|
14
|
-
# @option arguments [Boolean] :force When `true`, the transform is deleted regardless of its current state.
|
|
15
|
-
|
|
13
|
+
# @option arguments [String] :transform_id The id of the transform to delete
|
|
14
|
+
# @option arguments [Boolean] :force When `true`, the transform is deleted regardless of its current state. The default value is `false`, meaning that the transform must be `stopped` before it can be deleted.
|
|
15
|
+
|
|
16
|
+
#
|
|
17
|
+
# *Deprecation notice*:
|
|
18
|
+
# [_data_frame/transforms/] is deprecated, use [_transform/] in the future.
|
|
19
|
+
# Deprecated since version 7.5.0
|
|
20
|
+
#
|
|
16
21
|
#
|
|
17
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-
|
|
22
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html
|
|
18
23
|
#
|
|
19
|
-
|
|
20
|
-
def delete_data_frame_transform(arguments={})
|
|
24
|
+
def delete_transform(arguments = {})
|
|
21
25
|
raise ArgumentError, "Required argument 'transform_id' missing" unless arguments[:transform_id]
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
|
|
27
|
+
arguments = arguments.clone
|
|
28
|
+
|
|
29
|
+
_transform_id = arguments.delete(:transform_id)
|
|
24
30
|
|
|
25
31
|
method = Elasticsearch::API::HTTP_DELETE
|
|
26
|
-
path = "_data_frame/transforms/#{
|
|
27
|
-
params = Elasticsearch::API::Utils.__validate_and_extract_params
|
|
28
|
-
body = nil
|
|
32
|
+
path = "_data_frame/transforms/#{Elasticsearch::API::Utils.__listify(_transform_id)}"
|
|
33
|
+
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
|
29
34
|
|
|
35
|
+
body = nil
|
|
30
36
|
perform_request(method, path, params, body).body
|
|
31
37
|
end
|
|
32
38
|
|
|
33
39
|
# Register this action with its valid params when the module is loaded.
|
|
34
40
|
#
|
|
35
|
-
# @since
|
|
36
|
-
ParamsRegistry.register(:
|
|
37
|
-
|
|
41
|
+
# @since 6.2.0
|
|
42
|
+
ParamsRegistry.register(:delete_transform, [
|
|
43
|
+
:force
|
|
44
|
+
].freeze)
|
|
38
45
|
end
|
|
39
46
|
end
|
|
47
|
+
end
|
|
40
48
|
end
|
|
41
49
|
end
|
|
@@ -0,0 +1,55 @@
|
|
|
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 DataFrameTransformDeprecated
|
|
9
|
+
module Actions
|
|
10
|
+
# TODO: Description
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
# @option arguments [String] :transform_id The id or comma delimited list of id expressions of the transforms to get, '_all' or '*' implies get all transforms
|
|
14
|
+
# @option arguments [Int] :from skips a number of transform configs, defaults to 0
|
|
15
|
+
# @option arguments [Int] :size specifies a max number of transforms to get, defaults to 100
|
|
16
|
+
# @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified)
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
# *Deprecation notice*:
|
|
20
|
+
# [_data_frame/transforms/] is deprecated, use [_transform/] in the future.
|
|
21
|
+
# Deprecated since version 7.5.0
|
|
22
|
+
#
|
|
23
|
+
#
|
|
24
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html
|
|
25
|
+
#
|
|
26
|
+
def get_transform(arguments = {})
|
|
27
|
+
arguments = arguments.clone
|
|
28
|
+
|
|
29
|
+
_transform_id = arguments.delete(:transform_id)
|
|
30
|
+
|
|
31
|
+
method = Elasticsearch::API::HTTP_GET
|
|
32
|
+
path = if _transform_id
|
|
33
|
+
"_data_frame/transforms/#{Elasticsearch::API::Utils.__listify(_transform_id)}"
|
|
34
|
+
else
|
|
35
|
+
"_data_frame/transforms"
|
|
36
|
+
end
|
|
37
|
+
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
|
38
|
+
|
|
39
|
+
body = nil
|
|
40
|
+
perform_request(method, path, params, body).body
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Register this action with its valid params when the module is loaded.
|
|
44
|
+
#
|
|
45
|
+
# @since 6.2.0
|
|
46
|
+
ParamsRegistry.register(:get_transform, [
|
|
47
|
+
:from,
|
|
48
|
+
:size,
|
|
49
|
+
:allow_no_match
|
|
50
|
+
].freeze)
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
data/lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/get_transform_stats.rb
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
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 DataFrameTransformDeprecated
|
|
9
|
+
module Actions
|
|
10
|
+
# TODO: Description
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
# @option arguments [String] :transform_id The id of the transform for which to get stats. '_all' or '*' implies all transforms
|
|
14
|
+
# @option arguments [Number] :from skips a number of transform stats, defaults to 0
|
|
15
|
+
# @option arguments [Number] :size specifies a max number of transform stats to get, defaults to 100
|
|
16
|
+
# @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified)
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
# *Deprecation notice*:
|
|
20
|
+
# [_data_frame/transforms/] is deprecated, use [_transform/] in the future.
|
|
21
|
+
# Deprecated since version 7.5.0
|
|
22
|
+
#
|
|
23
|
+
#
|
|
24
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html
|
|
25
|
+
#
|
|
26
|
+
def get_transform_stats(arguments = {})
|
|
27
|
+
raise ArgumentError, "Required argument 'transform_id' missing" unless arguments[:transform_id]
|
|
28
|
+
|
|
29
|
+
arguments = arguments.clone
|
|
30
|
+
|
|
31
|
+
_transform_id = arguments.delete(:transform_id)
|
|
32
|
+
|
|
33
|
+
method = Elasticsearch::API::HTTP_GET
|
|
34
|
+
path = "_data_frame/transforms/#{Elasticsearch::API::Utils.__listify(_transform_id)}/_stats"
|
|
35
|
+
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
|
36
|
+
|
|
37
|
+
body = nil
|
|
38
|
+
perform_request(method, path, params, body).body
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Register this action with its valid params when the module is loaded.
|
|
42
|
+
#
|
|
43
|
+
# @since 6.2.0
|
|
44
|
+
ParamsRegistry.register(:get_transform_stats, [
|
|
45
|
+
:from,
|
|
46
|
+
:size,
|
|
47
|
+
:allow_no_match
|
|
48
|
+
].freeze)
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -5,27 +5,33 @@
|
|
|
5
5
|
module Elasticsearch
|
|
6
6
|
module XPack
|
|
7
7
|
module API
|
|
8
|
-
module
|
|
8
|
+
module DataFrameTransformDeprecated
|
|
9
9
|
module Actions
|
|
10
|
+
# TODO: Description
|
|
10
11
|
|
|
11
|
-
#
|
|
12
|
+
# @option arguments [Hash] :body The definition for the transform to preview (*Required*)
|
|
12
13
|
#
|
|
13
|
-
#
|
|
14
|
+
# *Deprecation notice*:
|
|
15
|
+
# [_data_frame/transforms/] is deprecated, use [_transform/] in the future.
|
|
16
|
+
# Deprecated since version 7.5.0
|
|
14
17
|
#
|
|
15
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-data-frame-transform.html
|
|
16
18
|
#
|
|
17
|
-
# @
|
|
18
|
-
|
|
19
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html
|
|
20
|
+
#
|
|
21
|
+
def preview_transform(arguments = {})
|
|
19
22
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
|
23
|
+
|
|
24
|
+
arguments = arguments.clone
|
|
25
|
+
|
|
20
26
|
method = Elasticsearch::API::HTTP_POST
|
|
21
|
-
path =
|
|
27
|
+
path = "_data_frame/transforms/_preview"
|
|
22
28
|
params = {}
|
|
23
|
-
body = arguments[:body]
|
|
24
29
|
|
|
30
|
+
body = arguments[:body]
|
|
25
31
|
perform_request(method, path, params, body).body
|
|
26
32
|
end
|
|
27
|
-
end
|
|
28
33
|
end
|
|
29
34
|
end
|
|
35
|
+
end
|
|
30
36
|
end
|
|
31
37
|
end
|
|
@@ -5,40 +5,47 @@
|
|
|
5
5
|
module Elasticsearch
|
|
6
6
|
module XPack
|
|
7
7
|
module API
|
|
8
|
-
module
|
|
8
|
+
module DataFrameTransformDeprecated
|
|
9
9
|
module Actions
|
|
10
|
+
# TODO: Description
|
|
10
11
|
|
|
11
|
-
# Instantiates a data frame transform.
|
|
12
12
|
#
|
|
13
|
-
# @option arguments [
|
|
14
|
-
# @option arguments [
|
|
15
|
-
|
|
16
|
-
#
|
|
13
|
+
# @option arguments [String] :transform_id The id of the new transform.
|
|
14
|
+
# @option arguments [Boolean] :defer_validation If validations should be deferred until transform starts, defaults to false.
|
|
15
|
+
|
|
16
|
+
# @option arguments [Hash] :body The transform definition (*Required*)
|
|
17
|
+
#
|
|
18
|
+
# *Deprecation notice*:
|
|
19
|
+
# [_data_frame/transforms/] is deprecated, use [_transform/] in the future.
|
|
20
|
+
# Deprecated since version 7.5.0
|
|
17
21
|
#
|
|
18
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-data-frame-transform.html
|
|
19
22
|
#
|
|
20
|
-
# @
|
|
21
|
-
|
|
23
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-transform.html
|
|
24
|
+
#
|
|
25
|
+
def put_transform(arguments = {})
|
|
22
26
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
|
23
27
|
raise ArgumentError, "Required argument 'transform_id' missing" unless arguments[:transform_id]
|
|
24
28
|
|
|
25
29
|
arguments = arguments.clone
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
|
|
31
|
+
_transform_id = arguments.delete(:transform_id)
|
|
28
32
|
|
|
29
33
|
method = Elasticsearch::API::HTTP_PUT
|
|
30
|
-
path = "_data_frame/transforms/#{
|
|
31
|
-
params = Elasticsearch::API::Utils.__validate_and_extract_params
|
|
34
|
+
path = "_data_frame/transforms/#{Elasticsearch::API::Utils.__listify(_transform_id)}"
|
|
35
|
+
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
|
32
36
|
|
|
37
|
+
body = arguments[:body]
|
|
33
38
|
perform_request(method, path, params, body).body
|
|
34
39
|
end
|
|
35
40
|
|
|
36
41
|
# Register this action with its valid params when the module is loaded.
|
|
37
42
|
#
|
|
38
|
-
# @since
|
|
39
|
-
ParamsRegistry.register(:
|
|
40
|
-
|
|
43
|
+
# @since 6.2.0
|
|
44
|
+
ParamsRegistry.register(:put_transform, [
|
|
45
|
+
:defer_validation
|
|
46
|
+
].freeze)
|
|
41
47
|
end
|
|
42
48
|
end
|
|
49
|
+
end
|
|
43
50
|
end
|
|
44
51
|
end
|
|
@@ -5,36 +5,45 @@
|
|
|
5
5
|
module Elasticsearch
|
|
6
6
|
module XPack
|
|
7
7
|
module API
|
|
8
|
-
module
|
|
8
|
+
module DataFrameTransformDeprecated
|
|
9
9
|
module Actions
|
|
10
|
+
# TODO: Description
|
|
10
11
|
|
|
11
|
-
# Start a data frame analytics job.
|
|
12
12
|
#
|
|
13
|
-
# @option arguments [String] :transform_id The id of the transform to start
|
|
14
|
-
# @option arguments [
|
|
13
|
+
# @option arguments [String] :transform_id The id of the transform to start
|
|
14
|
+
# @option arguments [Time] :timeout Controls the time to wait for the transform to start
|
|
15
|
+
|
|
16
|
+
#
|
|
17
|
+
# *Deprecation notice*:
|
|
18
|
+
# [_data_frame/transforms/] is deprecated, use [_transform/] in the future.
|
|
19
|
+
# Deprecated since version 7.5.0
|
|
20
|
+
#
|
|
15
21
|
#
|
|
16
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/start-
|
|
22
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/start-transform.html
|
|
17
23
|
#
|
|
18
|
-
|
|
19
|
-
def start_data_frame_transform(arguments={})
|
|
24
|
+
def start_transform(arguments = {})
|
|
20
25
|
raise ArgumentError, "Required argument 'transform_id' missing" unless arguments[:transform_id]
|
|
26
|
+
|
|
21
27
|
arguments = arguments.clone
|
|
22
|
-
|
|
28
|
+
|
|
29
|
+
_transform_id = arguments.delete(:transform_id)
|
|
23
30
|
|
|
24
31
|
method = Elasticsearch::API::HTTP_POST
|
|
25
|
-
path = "_data_frame/transforms/#{
|
|
32
|
+
path = "_data_frame/transforms/#{Elasticsearch::API::Utils.__listify(_transform_id)}/_start"
|
|
26
33
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
|
27
|
-
body = nil
|
|
28
34
|
|
|
35
|
+
body = nil
|
|
29
36
|
perform_request(method, path, params, body).body
|
|
30
37
|
end
|
|
31
38
|
|
|
32
39
|
# Register this action with its valid params when the module is loaded.
|
|
33
40
|
#
|
|
34
|
-
# @since
|
|
35
|
-
ParamsRegistry.register(:
|
|
36
|
-
|
|
41
|
+
# @since 6.2.0
|
|
42
|
+
ParamsRegistry.register(:start_transform, [
|
|
43
|
+
:timeout
|
|
44
|
+
].freeze)
|
|
37
45
|
end
|
|
38
46
|
end
|
|
47
|
+
end
|
|
39
48
|
end
|
|
40
49
|
end
|
|
@@ -0,0 +1,53 @@
|
|
|
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 DataFrameTransformDeprecated
|
|
9
|
+
module Actions
|
|
10
|
+
# TODO: Description
|
|
11
|
+
|
|
12
|
+
#
|
|
13
|
+
# @option arguments [String] :transform_id The id of the transform to stop
|
|
14
|
+
# @option arguments [Boolean] :wait_for_completion Whether to wait for the transform to fully stop before returning or not. Default to false
|
|
15
|
+
# @option arguments [Time] :timeout Controls the time to wait until the transform has stopped. Default to 30 seconds
|
|
16
|
+
# @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified)
|
|
17
|
+
|
|
18
|
+
#
|
|
19
|
+
# *Deprecation notice*:
|
|
20
|
+
# [_data_frame/transforms/] is deprecated, use [_transform/] in the future.
|
|
21
|
+
# Deprecated since version 7.5.0
|
|
22
|
+
#
|
|
23
|
+
#
|
|
24
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-transform.html
|
|
25
|
+
#
|
|
26
|
+
def stop_transform(arguments = {})
|
|
27
|
+
raise ArgumentError, "Required argument 'transform_id' missing" unless arguments[:transform_id]
|
|
28
|
+
|
|
29
|
+
arguments = arguments.clone
|
|
30
|
+
|
|
31
|
+
_transform_id = arguments.delete(:transform_id)
|
|
32
|
+
|
|
33
|
+
method = Elasticsearch::API::HTTP_POST
|
|
34
|
+
path = "_data_frame/transforms/#{Elasticsearch::API::Utils.__listify(_transform_id)}/_stop"
|
|
35
|
+
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
|
36
|
+
|
|
37
|
+
body = nil
|
|
38
|
+
perform_request(method, path, params, body).body
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Register this action with its valid params when the module is loaded.
|
|
42
|
+
#
|
|
43
|
+
# @since 6.2.0
|
|
44
|
+
ParamsRegistry.register(:stop_transform, [
|
|
45
|
+
:wait_for_completion,
|
|
46
|
+
:timeout,
|
|
47
|
+
:allow_no_match
|
|
48
|
+
].freeze)
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -5,41 +5,47 @@
|
|
|
5
5
|
module Elasticsearch
|
|
6
6
|
module XPack
|
|
7
7
|
module API
|
|
8
|
-
module
|
|
8
|
+
module DataFrameTransformDeprecated
|
|
9
9
|
module Actions
|
|
10
|
+
# TODO: Description
|
|
10
11
|
|
|
11
|
-
# Updates an existing data frame transform.
|
|
12
12
|
#
|
|
13
|
-
# @option arguments [
|
|
14
|
-
# @option arguments [
|
|
15
|
-
|
|
16
|
-
#
|
|
13
|
+
# @option arguments [String] :transform_id The id of the transform. (*Required*)
|
|
14
|
+
# @option arguments [Boolean] :defer_validation If validations should be deferred until transform starts, defaults to false.
|
|
15
|
+
|
|
16
|
+
# @option arguments [Hash] :body The update transform definition (*Required*)
|
|
17
|
+
#
|
|
18
|
+
# *Deprecation notice*:
|
|
19
|
+
# [_data_frame/transforms/] is deprecated, use [_transform/] in the future.
|
|
20
|
+
# Deprecated since version 7.5.0
|
|
21
|
+
#
|
|
17
22
|
#
|
|
18
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-
|
|
23
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/update-transform.html
|
|
19
24
|
#
|
|
20
|
-
|
|
21
|
-
def update_data_frame_transform(arguments={})
|
|
25
|
+
def update_transform(arguments = {})
|
|
22
26
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
|
23
27
|
raise ArgumentError, "Required argument 'transform_id' missing" unless arguments[:transform_id]
|
|
28
|
+
|
|
24
29
|
arguments = arguments.clone
|
|
25
30
|
|
|
26
|
-
|
|
27
|
-
body = arguments.delete(:body)
|
|
31
|
+
_transform_id = arguments.delete(:transform_id)
|
|
28
32
|
|
|
29
33
|
method = Elasticsearch::API::HTTP_POST
|
|
30
|
-
path = "_data_frame/transforms/#{
|
|
31
|
-
params = Elasticsearch::API::Utils.__validate_and_extract_params
|
|
34
|
+
path = "_data_frame/transforms/#{Elasticsearch::API::Utils.__listify(_transform_id)}/_update"
|
|
35
|
+
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
|
32
36
|
|
|
37
|
+
body = arguments[:body]
|
|
33
38
|
perform_request(method, path, params, body).body
|
|
34
39
|
end
|
|
35
40
|
|
|
36
|
-
|
|
37
41
|
# Register this action with its valid params when the module is loaded.
|
|
38
42
|
#
|
|
39
|
-
# @since
|
|
40
|
-
ParamsRegistry.register(:
|
|
41
|
-
|
|
43
|
+
# @since 6.2.0
|
|
44
|
+
ParamsRegistry.register(:update_transform, [
|
|
45
|
+
:defer_validation
|
|
46
|
+
].freeze)
|
|
42
47
|
end
|
|
43
48
|
end
|
|
49
|
+
end
|
|
44
50
|
end
|
|
45
51
|
end
|