elasticsearch-xpack 7.4.0 → 7.5.0.pre.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/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
@@ -7,32 +7,41 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module Watcher
|
9
9
|
module Actions
|
10
|
+
# TODO: Description
|
10
11
|
|
11
|
-
# Force the execution of a stored watch
|
12
12
|
#
|
13
13
|
# @option arguments [String] :id Watch ID
|
14
|
-
# @option arguments [Hash] :body Execution control
|
15
14
|
# @option arguments [Boolean] :debug indicates whether the watch should execute in debug mode
|
15
|
+
|
16
|
+
# @option arguments [Hash] :body Execution control
|
16
17
|
#
|
17
|
-
# @see http://www.elastic.co/guide/en/
|
18
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html
|
18
19
|
#
|
19
|
-
def execute_watch(arguments={})
|
20
|
-
|
20
|
+
def execute_watch(arguments = {})
|
21
|
+
arguments = arguments.clone
|
21
22
|
|
22
|
-
|
23
|
+
_id = arguments.delete(:id)
|
23
24
|
|
25
|
+
method = Elasticsearch::API::HTTP_PUT
|
26
|
+
path = if _id
|
27
|
+
"_watcher/watch/#{Elasticsearch::API::Utils.__listify(_id)}/_execute"
|
28
|
+
else
|
29
|
+
"_watcher/watch/_execute"
|
30
|
+
end
|
24
31
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
25
|
-
body = arguments[:body]
|
26
32
|
|
33
|
+
body = arguments[:body]
|
27
34
|
perform_request(method, path, params, body).body
|
28
35
|
end
|
29
36
|
|
30
37
|
# Register this action with its valid params when the module is loaded.
|
31
38
|
#
|
32
|
-
# @since
|
33
|
-
ParamsRegistry.register(:execute_watch, [
|
34
|
-
|
39
|
+
# @since 6.2.0
|
40
|
+
ParamsRegistry.register(:execute_watch, [
|
41
|
+
:debug
|
42
|
+
].freeze)
|
35
43
|
end
|
36
44
|
end
|
45
|
+
end
|
37
46
|
end
|
38
47
|
end
|
@@ -7,25 +7,30 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module Watcher
|
9
9
|
module Actions
|
10
|
+
# TODO: Description
|
10
11
|
|
11
|
-
# Retrieve a watch
|
12
12
|
#
|
13
|
-
# @option arguments [String] :id Watch ID
|
13
|
+
# @option arguments [String] :id Watch ID
|
14
|
+
|
14
15
|
#
|
15
|
-
# @see
|
16
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html
|
16
17
|
#
|
17
|
-
def get_watch(arguments={})
|
18
|
+
def get_watch(arguments = {})
|
18
19
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
19
20
|
|
21
|
+
arguments = arguments.clone
|
22
|
+
|
23
|
+
_id = arguments.delete(:id)
|
24
|
+
|
20
25
|
method = Elasticsearch::API::HTTP_GET
|
21
|
-
path = "
|
26
|
+
path = "_watcher/watch/#{Elasticsearch::API::Utils.__listify(_id)}"
|
22
27
|
params = {}
|
23
|
-
body = nil
|
24
28
|
|
29
|
+
body = nil
|
25
30
|
perform_request(method, path, params, body).body
|
26
31
|
end
|
27
|
-
end
|
28
32
|
end
|
29
33
|
end
|
34
|
+
end
|
30
35
|
end
|
31
36
|
end
|
@@ -7,37 +7,45 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module Watcher
|
9
9
|
module Actions
|
10
|
+
# TODO: Description
|
10
11
|
|
11
|
-
# Register a new watch in or update an existing one
|
12
12
|
#
|
13
|
-
# @option arguments [String] :id Watch ID
|
14
|
-
# @option arguments [Hash] :body The watch (*Required*)
|
15
|
-
# @option arguments [Duration] :master_timeout Specify timeout for watch write operation
|
13
|
+
# @option arguments [String] :id Watch ID
|
16
14
|
# @option arguments [Boolean] :active Specify whether the watch is in/active by default
|
15
|
+
# @option arguments [Number] :version Explicit version number for concurrency control
|
16
|
+
# @option arguments [Number] :if_seq_no only update the watch if the last operation that has changed the watch has the specified sequence number
|
17
|
+
# @option arguments [Number] :if_primary_term only update the watch if the last operation that has changed the watch has the specified primary term
|
18
|
+
|
19
|
+
# @option arguments [Hash] :body The watch
|
17
20
|
#
|
18
|
-
# @see http://www.elastic.co/guide/en/
|
21
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html
|
19
22
|
#
|
20
|
-
def put_watch(arguments={})
|
23
|
+
def put_watch(arguments = {})
|
21
24
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
22
|
-
|
25
|
+
|
26
|
+
arguments = arguments.clone
|
27
|
+
|
28
|
+
_id = arguments.delete(:id)
|
29
|
+
|
23
30
|
method = Elasticsearch::API::HTTP_PUT
|
24
|
-
path = "
|
31
|
+
path = "_watcher/watch/#{Elasticsearch::API::Utils.__listify(_id)}"
|
25
32
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
26
|
-
body = arguments[:body]
|
27
33
|
|
34
|
+
body = arguments[:body]
|
28
35
|
perform_request(method, path, params, body).body
|
29
36
|
end
|
30
37
|
|
31
38
|
# Register this action with its valid params when the module is loaded.
|
32
39
|
#
|
33
|
-
# @since
|
34
|
-
ParamsRegistry.register(:put_watch, [
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
+
# @since 6.2.0
|
41
|
+
ParamsRegistry.register(:put_watch, [
|
42
|
+
:active,
|
43
|
+
:version,
|
44
|
+
:if_seq_no,
|
45
|
+
:if_primary_term
|
46
|
+
].freeze)
|
40
47
|
end
|
41
48
|
end
|
49
|
+
end
|
42
50
|
end
|
43
51
|
end
|
@@ -7,22 +7,23 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module Watcher
|
9
9
|
module Actions
|
10
|
+
# TODO: Description
|
10
11
|
|
11
|
-
# Start the Watcher service
|
12
12
|
#
|
13
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html
|
13
14
|
#
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
def start(arguments = {})
|
16
|
+
arguments = arguments.clone
|
17
|
+
|
17
18
|
method = Elasticsearch::API::HTTP_POST
|
18
|
-
path = "
|
19
|
+
path = "_watcher/_start"
|
19
20
|
params = {}
|
20
|
-
body = nil
|
21
21
|
|
22
|
+
body = nil
|
22
23
|
perform_request(method, path, params, body).body
|
23
24
|
end
|
24
|
-
end
|
25
25
|
end
|
26
26
|
end
|
27
|
+
end
|
27
28
|
end
|
28
29
|
end
|
@@ -7,30 +7,46 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module Watcher
|
9
9
|
module Actions
|
10
|
+
# TODO: Description
|
10
11
|
|
11
|
-
# Return the current Watcher metrics
|
12
12
|
#
|
13
|
-
# @option arguments [
|
14
|
-
#
|
13
|
+
# @option arguments [List] :metric Controls what additional stat metrics should be include in the response
|
14
|
+
# (options: _all,queued_watches,current_watches,pending_watches)
|
15
|
+
|
16
|
+
# @option arguments [List] :metric Controls what additional stat metrics should be include in the response
|
17
|
+
# (options: _all,queued_watches,current_watches,pending_watches)
|
18
|
+
|
19
|
+
# @option arguments [Boolean] :emit_stacktraces Emits stack traces of currently running watches
|
20
|
+
|
15
21
|
#
|
16
|
-
# @see
|
22
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html
|
17
23
|
#
|
18
|
-
def stats(arguments={})
|
24
|
+
def stats(arguments = {})
|
25
|
+
arguments = arguments.clone
|
26
|
+
|
27
|
+
_metric = arguments.delete(:metric)
|
28
|
+
|
19
29
|
method = Elasticsearch::API::HTTP_GET
|
20
|
-
path =
|
30
|
+
path = if _metric
|
31
|
+
"_watcher/stats/#{Elasticsearch::API::Utils.__listify(_metric)}"
|
32
|
+
else
|
33
|
+
"_watcher/stats"
|
34
|
+
end
|
21
35
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, ParamsRegistry.get(__method__)
|
22
|
-
body = nil
|
23
36
|
|
37
|
+
body = nil
|
24
38
|
perform_request(method, path, params, body).body
|
25
39
|
end
|
26
40
|
|
27
41
|
# Register this action with its valid params when the module is loaded.
|
28
42
|
#
|
29
|
-
# @since
|
30
|
-
ParamsRegistry.register(:stats, [
|
31
|
-
|
32
|
-
|
43
|
+
# @since 6.2.0
|
44
|
+
ParamsRegistry.register(:stats, [
|
45
|
+
:metric,
|
46
|
+
:emit_stacktraces
|
47
|
+
].freeze)
|
33
48
|
end
|
34
49
|
end
|
50
|
+
end
|
35
51
|
end
|
36
52
|
end
|
@@ -7,22 +7,23 @@ module Elasticsearch
|
|
7
7
|
module API
|
8
8
|
module Watcher
|
9
9
|
module Actions
|
10
|
+
# TODO: Description
|
10
11
|
|
11
|
-
# Stop the Watcher service
|
12
12
|
#
|
13
|
+
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html
|
13
14
|
#
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
def stop(arguments = {})
|
16
|
+
arguments = arguments.clone
|
17
|
+
|
17
18
|
method = Elasticsearch::API::HTTP_POST
|
18
|
-
path = "
|
19
|
+
path = "_watcher/_stop"
|
19
20
|
params = {}
|
20
|
-
body = nil
|
21
21
|
|
22
|
+
body = nil
|
22
23
|
perform_request(method, path, params, body).body
|
23
24
|
end
|
24
|
-
end
|
25
25
|
end
|
26
26
|
end
|
27
|
+
end
|
27
28
|
end
|
28
29
|
end
|
@@ -9,7 +9,7 @@ module Elasticsearch
|
|
9
9
|
module Actions; end
|
10
10
|
|
11
11
|
class DataFrameClient
|
12
|
-
include Elasticsearch::API::Common::Client, Elasticsearch::API::Common::Client::Base,
|
12
|
+
include Elasticsearch::API::Common::Client, Elasticsearch::API::Common::Client::Base, DataFrameTransformDeprecated::Actions
|
13
13
|
end
|
14
14
|
|
15
15
|
def data_frame
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch-xpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.5.0.pre.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karel Minarik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -235,25 +235,30 @@ files:
|
|
235
235
|
- elasticsearch-xpack.gemspec
|
236
236
|
- examples/watcher/error_500.rb
|
237
237
|
- lib/elasticsearch/xpack.rb
|
238
|
-
- lib/elasticsearch/xpack/api/actions/
|
239
|
-
- lib/elasticsearch/xpack/api/actions/
|
240
|
-
- lib/elasticsearch/xpack/api/actions/
|
241
|
-
- lib/elasticsearch/xpack/api/actions/
|
242
|
-
- lib/elasticsearch/xpack/api/actions/
|
243
|
-
- lib/elasticsearch/xpack/api/actions/
|
244
|
-
- lib/elasticsearch/xpack/api/actions/
|
245
|
-
- lib/elasticsearch/xpack/api/actions/
|
246
|
-
- lib/elasticsearch/xpack/api/actions/
|
238
|
+
- lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/delete_transform.rb
|
239
|
+
- lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/get_transform.rb
|
240
|
+
- lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/get_transform_stats.rb
|
241
|
+
- lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/params_registry.rb
|
242
|
+
- lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/preview_transform.rb
|
243
|
+
- lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/put_transform.rb
|
244
|
+
- lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/start_transform.rb
|
245
|
+
- lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/stop_transform.rb
|
246
|
+
- lib/elasticsearch/xpack/api/actions/data_frame_transform_deprecated/update_transform.rb
|
247
247
|
- lib/elasticsearch/xpack/api/actions/graph/explore.rb
|
248
248
|
- lib/elasticsearch/xpack/api/actions/graph/params_registry.rb
|
249
|
+
- lib/elasticsearch/xpack/api/actions/index_lifecycle_management/delete_lifecycle.rb
|
249
250
|
- lib/elasticsearch/xpack/api/actions/index_lifecycle_management/delete_policy.rb
|
250
251
|
- lib/elasticsearch/xpack/api/actions/index_lifecycle_management/explain.rb
|
252
|
+
- lib/elasticsearch/xpack/api/actions/index_lifecycle_management/explain_lifecycle.rb
|
253
|
+
- lib/elasticsearch/xpack/api/actions/index_lifecycle_management/get_lifecycle.rb
|
251
254
|
- lib/elasticsearch/xpack/api/actions/index_lifecycle_management/get_policy.rb
|
252
255
|
- lib/elasticsearch/xpack/api/actions/index_lifecycle_management/get_status.rb
|
253
256
|
- lib/elasticsearch/xpack/api/actions/index_lifecycle_management/move_to_step.rb
|
254
257
|
- lib/elasticsearch/xpack/api/actions/index_lifecycle_management/params_registry.rb
|
258
|
+
- lib/elasticsearch/xpack/api/actions/index_lifecycle_management/put_lifecycle.rb
|
255
259
|
- lib/elasticsearch/xpack/api/actions/index_lifecycle_management/put_policy.rb
|
256
260
|
- lib/elasticsearch/xpack/api/actions/index_lifecycle_management/remove_policy.rb
|
261
|
+
- lib/elasticsearch/xpack/api/actions/index_lifecycle_management/retry.rb
|
257
262
|
- lib/elasticsearch/xpack/api/actions/index_lifecycle_management/retry_policy.rb
|
258
263
|
- lib/elasticsearch/xpack/api/actions/index_lifecycle_management/start.rb
|
259
264
|
- lib/elasticsearch/xpack/api/actions/index_lifecycle_management/stop.rb
|
@@ -270,6 +275,7 @@ files:
|
|
270
275
|
- lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar.rb
|
271
276
|
- lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar_event.rb
|
272
277
|
- lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar_job.rb
|
278
|
+
- lib/elasticsearch/xpack/api/actions/machine_learning/delete_data_frame_analytics.rb
|
273
279
|
- lib/elasticsearch/xpack/api/actions/machine_learning/delete_datafeed.rb
|
274
280
|
- lib/elasticsearch/xpack/api/actions/machine_learning/delete_expired_data.rb
|
275
281
|
- lib/elasticsearch/xpack/api/actions/machine_learning/delete_filter.rb
|
@@ -277,6 +283,7 @@ files:
|
|
277
283
|
- lib/elasticsearch/xpack/api/actions/machine_learning/delete_job.rb
|
278
284
|
- lib/elasticsearch/xpack/api/actions/machine_learning/delete_model_snapshot.rb
|
279
285
|
- lib/elasticsearch/xpack/api/actions/machine_learning/estimate_memory_usage.rb
|
286
|
+
- lib/elasticsearch/xpack/api/actions/machine_learning/evaluate_data_frame.rb
|
280
287
|
- lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb
|
281
288
|
- lib/elasticsearch/xpack/api/actions/machine_learning/flush_job.rb
|
282
289
|
- lib/elasticsearch/xpack/api/actions/machine_learning/forecast.rb
|
@@ -284,6 +291,8 @@ files:
|
|
284
291
|
- lib/elasticsearch/xpack/api/actions/machine_learning/get_calendar_events.rb
|
285
292
|
- lib/elasticsearch/xpack/api/actions/machine_learning/get_calendars.rb
|
286
293
|
- lib/elasticsearch/xpack/api/actions/machine_learning/get_categories.rb
|
294
|
+
- lib/elasticsearch/xpack/api/actions/machine_learning/get_data_frame_analytics.rb
|
295
|
+
- lib/elasticsearch/xpack/api/actions/machine_learning/get_data_frame_analytics_stats.rb
|
287
296
|
- lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeed_stats.rb
|
288
297
|
- lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeeds.rb
|
289
298
|
- lib/elasticsearch/xpack/api/actions/machine_learning/get_filters.rb
|
@@ -301,12 +310,15 @@ files:
|
|
301
310
|
- lib/elasticsearch/xpack/api/actions/machine_learning/preview_datafeed.rb
|
302
311
|
- lib/elasticsearch/xpack/api/actions/machine_learning/put_calendar.rb
|
303
312
|
- lib/elasticsearch/xpack/api/actions/machine_learning/put_calendar_job.rb
|
313
|
+
- lib/elasticsearch/xpack/api/actions/machine_learning/put_data_frame_analytics.rb
|
304
314
|
- lib/elasticsearch/xpack/api/actions/machine_learning/put_datafeed.rb
|
305
315
|
- lib/elasticsearch/xpack/api/actions/machine_learning/put_filter.rb
|
306
316
|
- lib/elasticsearch/xpack/api/actions/machine_learning/put_job.rb
|
307
317
|
- lib/elasticsearch/xpack/api/actions/machine_learning/revert_model_snapshot.rb
|
308
318
|
- lib/elasticsearch/xpack/api/actions/machine_learning/set_upgrade_mode.rb
|
319
|
+
- lib/elasticsearch/xpack/api/actions/machine_learning/start_data_frame_analytics.rb
|
309
320
|
- lib/elasticsearch/xpack/api/actions/machine_learning/start_datafeed.rb
|
321
|
+
- lib/elasticsearch/xpack/api/actions/machine_learning/stop_data_frame_analytics.rb
|
310
322
|
- lib/elasticsearch/xpack/api/actions/machine_learning/stop_datafeed.rb
|
311
323
|
- lib/elasticsearch/xpack/api/actions/machine_learning/update_datafeed.rb
|
312
324
|
- lib/elasticsearch/xpack/api/actions/machine_learning/update_filter.rb
|
@@ -315,9 +327,7 @@ files:
|
|
315
327
|
- lib/elasticsearch/xpack/api/actions/machine_learning/validate.rb
|
316
328
|
- lib/elasticsearch/xpack/api/actions/machine_learning/validate_detector.rb
|
317
329
|
- lib/elasticsearch/xpack/api/actions/migration/deprecations.rb
|
318
|
-
- lib/elasticsearch/xpack/api/actions/migration/get_assistance.rb
|
319
330
|
- lib/elasticsearch/xpack/api/actions/migration/params_registry.rb
|
320
|
-
- lib/elasticsearch/xpack/api/actions/migration/upgrade.rb
|
321
331
|
- lib/elasticsearch/xpack/api/actions/monitoring/bulk.rb
|
322
332
|
- lib/elasticsearch/xpack/api/actions/monitoring/params_registry.rb
|
323
333
|
- lib/elasticsearch/xpack/api/actions/params_registry.rb
|
@@ -372,7 +382,6 @@ files:
|
|
372
382
|
- lib/elasticsearch/xpack/api/actions/watcher/get_watch.rb
|
373
383
|
- lib/elasticsearch/xpack/api/actions/watcher/params_registry.rb
|
374
384
|
- lib/elasticsearch/xpack/api/actions/watcher/put_watch.rb
|
375
|
-
- lib/elasticsearch/xpack/api/actions/watcher/restart.rb
|
376
385
|
- lib/elasticsearch/xpack/api/actions/watcher/start.rb
|
377
386
|
- lib/elasticsearch/xpack/api/actions/watcher/stats.rb
|
378
387
|
- lib/elasticsearch/xpack/api/actions/watcher/stop.rb
|
@@ -404,9 +413,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
404
413
|
version: '0'
|
405
414
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
406
415
|
requirements:
|
407
|
-
- - "
|
416
|
+
- - ">"
|
408
417
|
- !ruby/object:Gem::Version
|
409
|
-
version:
|
418
|
+
version: 1.3.1
|
410
419
|
requirements: []
|
411
420
|
rubygems_version: 3.0.6
|
412
421
|
signing_key:
|
@@ -1,43 +0,0 @@
|
|
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 DataFrame
|
9
|
-
module Actions
|
10
|
-
|
11
|
-
# Retrieves configuration information for data frame transforms.
|
12
|
-
#
|
13
|
-
# @option arguments [Integer] :transform_id The id or comma delimited list of id expressions of the
|
14
|
-
# transforms to get, '_all' or '*' implies get all transforms.
|
15
|
-
# @option arguments [Integer] :from Skips a number of transform configs, defaults to 0
|
16
|
-
# @option arguments [Integer] :size Specifies a max number of transforms to get, defaults to 100
|
17
|
-
#
|
18
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-data-frame-transform.html
|
19
|
-
#
|
20
|
-
# @since 7.2.0
|
21
|
-
def get_data_frame_transform(arguments={})
|
22
|
-
arguments = arguments.clone
|
23
|
-
transform_id = URI.escape(arguments.delete(:transform_id))
|
24
|
-
|
25
|
-
method = Elasticsearch::API::HTTP_GET
|
26
|
-
path = Elasticsearch::API::Utils.__pathify('_data_frame/transforms', Elasticsearch::API::Utils.__listify(transform_id))
|
27
|
-
params = Elasticsearch::API::Utils.__validate_and_extract_params(arguments, ParamsRegistry.get(__method__))
|
28
|
-
body = nil
|
29
|
-
|
30
|
-
perform_request(method, path, params, body).body
|
31
|
-
end
|
32
|
-
|
33
|
-
# Register this action with its valid params when the module is loaded.
|
34
|
-
#
|
35
|
-
# @since 7.4.0
|
36
|
-
ParamsRegistry.register(:get_data_frame_transform, [ :from,
|
37
|
-
:size,
|
38
|
-
:allow_no_match ].freeze)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|