elasticsearch-serverless 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elasticsearch-serverless/api/async_search/delete.rb +9 -1
- data/lib/elasticsearch-serverless/api/async_search/get.rb +17 -3
- data/lib/elasticsearch-serverless/api/async_search/status.rb +9 -1
- data/lib/elasticsearch-serverless/api/async_search/submit.rb +15 -4
- data/lib/elasticsearch-serverless/api/bulk.rb +17 -4
- data/lib/elasticsearch-serverless/api/cat/aliases.rb +22 -6
- data/lib/elasticsearch-serverless/api/cat/component_templates.rb +22 -6
- data/lib/elasticsearch-serverless/api/cat/count.rb +25 -8
- data/lib/elasticsearch-serverless/api/cat/help.rb +16 -6
- data/lib/elasticsearch-serverless/api/cat/indices.rb +31 -9
- data/lib/elasticsearch-serverless/api/cat/ml_data_frame_analytics.rb +24 -8
- data/lib/elasticsearch-serverless/api/cat/ml_datafeeds.rb +29 -8
- data/lib/elasticsearch-serverless/api/cat/ml_jobs.rb +29 -8
- data/lib/elasticsearch-serverless/api/cat/ml_trained_models.rb +25 -8
- data/lib/elasticsearch-serverless/api/cat/transforms.rb +27 -9
- data/lib/elasticsearch-serverless/api/clear_scroll.rb +12 -3
- data/lib/elasticsearch-serverless/api/close_point_in_time.rb +3 -1
- data/lib/elasticsearch-serverless/api/cluster/delete_component_template.rb +14 -3
- data/lib/elasticsearch-serverless/api/cluster/exists_component_template.rb +18 -5
- data/lib/elasticsearch-serverless/api/cluster/get_component_template.rb +16 -4
- data/lib/elasticsearch-serverless/api/cluster/info.rb +11 -2
- data/lib/elasticsearch-serverless/api/cluster/put_component_template.rb +17 -7
- data/lib/elasticsearch-serverless/api/connector/check_in.rb +9 -1
- data/lib/elasticsearch-serverless/api/connector/delete.rb +14 -6
- data/lib/elasticsearch-serverless/api/connector/get.rb +13 -5
- data/lib/elasticsearch-serverless/api/connector/list.rb +7 -5
- data/lib/elasticsearch-serverless/api/connector/post.rb +7 -5
- data/lib/elasticsearch-serverless/api/connector/put.rb +14 -6
- data/lib/elasticsearch-serverless/api/connector/sync_job_cancel.rb +13 -5
- data/lib/elasticsearch-serverless/api/connector/sync_job_delete.rb +13 -5
- data/lib/elasticsearch-serverless/api/connector/sync_job_get.rb +13 -5
- data/lib/elasticsearch-serverless/api/connector/sync_job_list.rb +8 -6
- data/lib/elasticsearch-serverless/api/connector/sync_job_post.rb +7 -5
- data/lib/elasticsearch-serverless/api/connector/update_active_filtering.rb +9 -1
- data/lib/elasticsearch-serverless/api/connector/update_api_key_id.rb +13 -5
- data/lib/elasticsearch-serverless/api/connector/update_configuration.rb +13 -5
- data/lib/elasticsearch-serverless/api/connector/update_error.rb +9 -1
- data/lib/elasticsearch-serverless/api/connector/update_filtering.rb +13 -5
- data/lib/elasticsearch-serverless/api/connector/update_filtering_validation.rb +9 -1
- data/lib/elasticsearch-serverless/api/connector/update_index_name.rb +13 -5
- data/lib/elasticsearch-serverless/api/connector/update_name.rb +13 -5
- data/lib/elasticsearch-serverless/api/connector/update_native.rb +13 -5
- data/lib/elasticsearch-serverless/api/connector/update_pipeline.rb +13 -5
- data/lib/elasticsearch-serverless/api/connector/update_scheduling.rb +13 -5
- data/lib/elasticsearch-serverless/api/connector/update_service_type.rb +13 -5
- data/lib/elasticsearch-serverless/api/connector/update_status.rb +9 -1
- data/lib/elasticsearch-serverless/api/count.rb +30 -10
- data/lib/elasticsearch-serverless/api/create.rb +21 -5
- data/lib/elasticsearch-serverless/api/delete.rb +17 -5
- data/lib/elasticsearch-serverless/api/delete_by_query.rb +38 -11
- data/lib/elasticsearch-serverless/api/delete_script.rb +14 -3
- data/lib/elasticsearch-serverless/api/enrich/delete_policy.rb +10 -1
- data/lib/elasticsearch-serverless/api/enrich/execute_policy.rb +9 -1
- data/lib/elasticsearch-serverless/api/enrich/get_policy.rb +12 -2
- data/lib/elasticsearch-serverless/api/enrich/put_policy.rb +10 -1
- data/lib/elasticsearch-serverless/api/enrich/stats.rb +4 -1
- data/lib/elasticsearch-serverless/api/eql/delete.rb +12 -2
- data/lib/elasticsearch-serverless/api/eql/get.rb +13 -3
- data/lib/elasticsearch-serverless/api/eql/get_status.rb +9 -1
- data/lib/elasticsearch-serverless/api/eql/search.rb +9 -1
- data/lib/elasticsearch-serverless/api/exists.rb +20 -6
- data/lib/elasticsearch-serverless/api/exists_source.rb +16 -4
- data/lib/elasticsearch-serverless/api/explain.rb +17 -5
- data/lib/elasticsearch-serverless/api/field_caps.rb +12 -2
- data/lib/elasticsearch-serverless/api/get.rb +18 -5
- data/lib/elasticsearch-serverless/api/get_script.rb +10 -1
- data/lib/elasticsearch-serverless/api/get_source.rb +10 -1
- data/lib/elasticsearch-serverless/api/graph/explore.rb +12 -2
- data/lib/elasticsearch-serverless/api/index.rb +25 -6
- data/lib/elasticsearch-serverless/api/indices/add_block.rb +11 -2
- data/lib/elasticsearch-serverless/api/indices/analyze.rb +12 -2
- data/lib/elasticsearch-serverless/api/indices/create.rb +16 -4
- data/lib/elasticsearch-serverless/api/indices/create_data_stream.rb +19 -3
- data/lib/elasticsearch-serverless/api/indices/delete.rb +25 -7
- data/lib/elasticsearch-serverless/api/indices/delete_alias.rb +18 -5
- data/lib/elasticsearch-serverless/api/indices/delete_data_lifecycle.rb +11 -2
- data/lib/elasticsearch-serverless/api/indices/delete_data_stream.rb +11 -1
- data/lib/elasticsearch-serverless/api/indices/delete_index_template.rb +9 -1
- data/lib/elasticsearch-serverless/api/indices/exists.rb +17 -4
- data/lib/elasticsearch-serverless/api/indices/exists_alias.rb +19 -5
- data/lib/elasticsearch-serverless/api/indices/exists_index_template.rb +9 -1
- data/lib/elasticsearch-serverless/api/indices/explain_data_lifecycle.rb +11 -2
- data/lib/elasticsearch-serverless/api/indices/get.rb +18 -4
- data/lib/elasticsearch-serverless/api/indices/get_alias.rb +23 -6
- data/lib/elasticsearch-serverless/api/indices/get_data_lifecycle.rb +17 -3
- data/lib/elasticsearch-serverless/api/indices/get_data_stream.rb +16 -3
- data/lib/elasticsearch-serverless/api/indices/get_index_template.rb +9 -1
- data/lib/elasticsearch-serverless/api/indices/get_mapping.rb +21 -5
- data/lib/elasticsearch-serverless/api/indices/get_settings.rb +26 -6
- data/lib/elasticsearch-serverless/api/indices/migrate_to_data_stream.rb +13 -2
- data/lib/elasticsearch-serverless/api/indices/modify_data_stream.rb +4 -1
- data/lib/elasticsearch-serverless/api/indices/put_alias.rb +20 -5
- data/lib/elasticsearch-serverless/api/indices/put_data_lifecycle.rb +22 -6
- data/lib/elasticsearch-serverless/api/indices/put_index_template.rb +11 -2
- data/lib/elasticsearch-serverless/api/indices/put_mapping.rb +20 -5
- data/lib/elasticsearch-serverless/api/indices/put_settings.rb +28 -7
- data/lib/elasticsearch-serverless/api/indices/refresh.rb +19 -4
- data/lib/elasticsearch-serverless/api/indices/resolve_index.rb +19 -3
- data/lib/elasticsearch-serverless/api/indices/rollover.rb +19 -5
- data/lib/elasticsearch-serverless/api/indices/simulate_index_template.rb +9 -1
- data/lib/elasticsearch-serverless/api/indices/simulate_template.rb +11 -2
- data/lib/elasticsearch-serverless/api/indices/update_aliases.rb +8 -3
- data/lib/elasticsearch-serverless/api/indices/validate_query.rb +24 -7
- data/lib/elasticsearch-serverless/api/inference/delete.rb +9 -1
- data/lib/elasticsearch-serverless/api/inference/get.rb +9 -1
- data/lib/elasticsearch-serverless/api/inference/inference.rb +9 -1
- data/lib/elasticsearch-serverless/api/inference/put.rb +9 -1
- data/lib/elasticsearch-serverless/api/info.rb +4 -1
- data/lib/elasticsearch-serverless/api/ingest/delete_pipeline.rb +15 -4
- data/lib/elasticsearch-serverless/api/ingest/get_pipeline.rb +14 -3
- data/lib/elasticsearch-serverless/api/ingest/processor_grok.rb +3 -1
- data/lib/elasticsearch-serverless/api/ingest/put_pipeline.rb +9 -1
- data/lib/elasticsearch-serverless/api/ingest/simulate.rb +11 -2
- data/lib/elasticsearch-serverless/api/license/get.rb +8 -4
- data/lib/elasticsearch-serverless/api/logstash/delete_pipeline.rb +9 -1
- data/lib/elasticsearch-serverless/api/logstash/get_pipeline.rb +9 -1
- data/lib/elasticsearch-serverless/api/logstash/put_pipeline.rb +9 -1
- data/lib/elasticsearch-serverless/api/machine_learning/close_job.rb +14 -4
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar.rb +10 -1
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar_event.rb +12 -3
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar_job.rb +12 -3
- data/lib/elasticsearch-serverless/api/machine_learning/delete_data_frame_analytics.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/delete_datafeed.rb +16 -4
- data/lib/elasticsearch-serverless/api/machine_learning/delete_filter.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/delete_job.rb +17 -6
- data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model.rb +11 -3
- data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model_alias.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/estimate_model_memory.rb +4 -1
- data/lib/elasticsearch-serverless/api/machine_learning/evaluate_data_frame.rb +4 -2
- data/lib/elasticsearch-serverless/api/machine_learning/flush_job.rb +20 -7
- data/lib/elasticsearch-serverless/api/machine_learning/get_calendar_events.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/get_calendars.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics.rb +25 -5
- data/lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics_stats.rb +22 -4
- data/lib/elasticsearch-serverless/api/machine_learning/get_datafeed_stats.rb +21 -4
- data/lib/elasticsearch-serverless/api/machine_learning/get_datafeeds.rb +24 -5
- data/lib/elasticsearch-serverless/api/machine_learning/get_filters.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/get_job_stats.rb +22 -4
- data/lib/elasticsearch-serverless/api/machine_learning/get_jobs.rb +24 -5
- data/lib/elasticsearch-serverless/api/machine_learning/get_overall_buckets.rb +32 -8
- data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models.rb +29 -8
- data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models_stats.rb +19 -4
- data/lib/elasticsearch-serverless/api/machine_learning/open_job.rb +12 -5
- data/lib/elasticsearch-serverless/api/machine_learning/post_calendar_events.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/preview_data_frame_analytics.rb +10 -1
- data/lib/elasticsearch-serverless/api/machine_learning/preview_datafeed.rb +14 -3
- data/lib/elasticsearch-serverless/api/machine_learning/put_calendar.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/put_calendar_job.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/put_data_frame_analytics.rb +13 -3
- data/lib/elasticsearch-serverless/api/machine_learning/put_datafeed.rb +18 -6
- data/lib/elasticsearch-serverless/api/machine_learning/put_filter.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/put_job.rb +11 -2
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model.rb +16 -4
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_alias.rb +15 -4
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_definition_part.rb +12 -3
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_vocabulary.rb +10 -2
- data/lib/elasticsearch-serverless/api/machine_learning/reset_job.rb +15 -4
- data/lib/elasticsearch-serverless/api/machine_learning/start_data_frame_analytics.rb +15 -4
- data/lib/elasticsearch-serverless/api/machine_learning/start_datafeed.rb +28 -9
- data/lib/elasticsearch-serverless/api/machine_learning/start_trained_model_deployment.rb +27 -6
- data/lib/elasticsearch-serverless/api/machine_learning/stop_data_frame_analytics.rb +24 -5
- data/lib/elasticsearch-serverless/api/machine_learning/stop_datafeed.rb +20 -4
- data/lib/elasticsearch-serverless/api/machine_learning/stop_trained_model_deployment.rb +16 -4
- data/lib/elasticsearch-serverless/api/machine_learning/update_data_frame_analytics.rb +13 -3
- data/lib/elasticsearch-serverless/api/machine_learning/update_datafeed.rb +22 -5
- data/lib/elasticsearch-serverless/api/machine_learning/update_filter.rb +10 -1
- data/lib/elasticsearch-serverless/api/machine_learning/update_job.rb +10 -1
- data/lib/elasticsearch-serverless/api/machine_learning/update_trained_model_deployment.rb +16 -3
- data/lib/elasticsearch-serverless/api/mget.rb +17 -4
- data/lib/elasticsearch-serverless/api/msearch.rb +22 -10
- data/lib/elasticsearch-serverless/api/msearch_template.rb +16 -4
- data/lib/elasticsearch-serverless/api/mtermvectors.rb +14 -8
- data/lib/elasticsearch-serverless/api/open_point_in_time.rb +16 -4
- data/lib/elasticsearch-serverless/api/ping.rb +4 -1
- data/lib/elasticsearch-serverless/api/put_script.rb +18 -5
- data/lib/elasticsearch-serverless/api/query_rules/delete_rule.rb +9 -1
- data/lib/elasticsearch-serverless/api/query_rules/delete_ruleset.rb +9 -1
- data/lib/elasticsearch-serverless/api/query_rules/get_rule.rb +9 -1
- data/lib/elasticsearch-serverless/api/query_rules/get_ruleset.rb +9 -1
- data/lib/elasticsearch-serverless/api/query_rules/list_rulesets.rb +3 -1
- data/lib/elasticsearch-serverless/api/query_rules/put_rule.rb +9 -1
- data/lib/elasticsearch-serverless/api/query_rules/put_ruleset.rb +9 -1
- data/lib/elasticsearch-serverless/api/rank_eval.rb +11 -2
- data/lib/elasticsearch-serverless/api/reindex.rb +11 -7
- data/lib/elasticsearch-serverless/api/render_search_template.rb +11 -2
- data/lib/elasticsearch-serverless/api/scripts_painless_execute.rb +4 -1
- data/lib/elasticsearch-serverless/api/scroll.rb +9 -1
- data/lib/elasticsearch-serverless/api/search.rb +107 -30
- data/lib/elasticsearch-serverless/api/search_application/delete.rb +11 -2
- data/lib/elasticsearch-serverless/api/search_application/delete_behavioral_analytics.rb +10 -1
- data/lib/elasticsearch-serverless/api/search_application/get.rb +10 -2
- data/lib/elasticsearch-serverless/api/search_application/get_behavioral_analytics.rb +10 -2
- data/lib/elasticsearch-serverless/api/search_application/list.rb +3 -1
- data/lib/elasticsearch-serverless/api/search_application/put.rb +10 -2
- data/lib/elasticsearch-serverless/api/search_application/put_behavioral_analytics.rb +10 -2
- data/lib/elasticsearch-serverless/api/search_application/search.rb +12 -2
- data/lib/elasticsearch-serverless/api/search_mvt.rb +27 -7
- data/lib/elasticsearch-serverless/api/search_template.rb +22 -6
- data/lib/elasticsearch-serverless/api/security/authenticate.rb +6 -2
- data/lib/elasticsearch-serverless/api/security/create_api_key.rb +4 -1
- data/lib/elasticsearch-serverless/api/security/get_api_key.rb +19 -7
- data/lib/elasticsearch-serverless/api/security/has_privileges.rb +10 -1
- data/lib/elasticsearch-serverless/api/security/invalidate_api_key.rb +4 -1
- data/lib/elasticsearch-serverless/api/security/query_api_keys.rb +7 -3
- data/lib/elasticsearch-serverless/api/sql/clear_cursor.rb +3 -1
- data/lib/elasticsearch-serverless/api/sql/delete_async.rb +9 -1
- data/lib/elasticsearch-serverless/api/sql/get_async.rb +15 -4
- data/lib/elasticsearch-serverless/api/sql/get_async_status.rb +9 -1
- data/lib/elasticsearch-serverless/api/sql/query.rb +3 -1
- data/lib/elasticsearch-serverless/api/sql/translate.rb +3 -1
- data/lib/elasticsearch-serverless/api/synonyms/delete_synonym.rb +9 -1
- data/lib/elasticsearch-serverless/api/synonyms/delete_synonym_rule.rb +9 -1
- data/lib/elasticsearch-serverless/api/synonyms/get_synonym.rb +9 -1
- data/lib/elasticsearch-serverless/api/synonyms/get_synonym_rule.rb +9 -1
- data/lib/elasticsearch-serverless/api/synonyms/get_synonyms_sets.rb +3 -1
- data/lib/elasticsearch-serverless/api/synonyms/put_synonym.rb +9 -1
- data/lib/elasticsearch-serverless/api/synonyms/put_synonym_rule.rb +9 -1
- data/lib/elasticsearch-serverless/api/terms_enum.rb +9 -1
- data/lib/elasticsearch-serverless/api/termvectors.rb +21 -9
- data/lib/elasticsearch-serverless/api/transform/delete_transform.rb +14 -3
- data/lib/elasticsearch-serverless/api/transform/get_transform.rb +23 -4
- data/lib/elasticsearch-serverless/api/transform/get_transform_stats.rb +20 -3
- data/lib/elasticsearch-serverless/api/transform/preview_transform.rb +15 -5
- data/lib/elasticsearch-serverless/api/transform/put_transform.rb +17 -7
- data/lib/elasticsearch-serverless/api/transform/reset_transform.rb +14 -3
- data/lib/elasticsearch-serverless/api/transform/schedule_now_transform.rb +11 -3
- data/lib/elasticsearch-serverless/api/transform/start_transform.rb +10 -3
- data/lib/elasticsearch-serverless/api/transform/stop_transform.rb +23 -6
- data/lib/elasticsearch-serverless/api/transform/update_transform.rb +15 -4
- data/lib/elasticsearch-serverless/api/update.rb +23 -7
- data/lib/elasticsearch-serverless/api/update_by_query.rb +37 -9
- data/lib/elasticsearch-serverless/api.rb +3 -3
- data/lib/elasticsearch-serverless/version.rb +1 -1
- data/lib/elasticsearch-serverless.rb +4 -3
- metadata +9 -86
- data/lib/elasticsearch-serverless/api/connector/last_sync.rb +0 -59
- data/lib/elasticsearch-serverless/api/esql/query.rb +0 -57
- data/lib/elasticsearch-serverless/api/indices/data_streams_stats.rb +0 -56
- data/lib/elasticsearch-serverless/api/indices/put_template.rb +0 -60
- data/lib/elasticsearch-serverless/api/machine_learning/infer_trained_model.rb +0 -63
- data/lib/elasticsearch-serverless/api/security/update_api_key.rb +0 -66
- data/lib/elasticsearch-serverless/api/tasks/get.rb +0 -57
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bde730a1cac096779c66fa3d59c1d58c20c7134e68a2b009bb7ef5e6a9d8ae7
|
4
|
+
data.tar.gz: b2b1909d53c9ef64ebbf651ca0dd7b61bf409c6333840b78d4c477f4871edb87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b3192c5235b479cdfc5fc4b2b9e80f80c97624aad53140d37bfb066f31be1a594cea00b0e31bb5401949d5903f11856aece51f9c022d7fa33d2c9796a0e86fa
|
7
|
+
data.tar.gz: d94a7b20610597b151002b81fcc61a51b6b59f4eb9a7d5d714dd6e32935b6fde759c571145dd73977827a9bcb88c963d5a6645d40f4af362e22ee1784b1e5c1d
|
@@ -33,6 +33,14 @@ module ElasticsearchServerless
|
|
33
33
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
|
34
34
|
#
|
35
35
|
def delete(arguments = {})
|
36
|
+
request_opts = { endpoint: arguments[:endpoint] || "async_search.delete" }
|
37
|
+
|
38
|
+
defined_params = [:id].inject({}) do |set_variables, variable|
|
39
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
40
|
+
set_variables
|
41
|
+
end
|
42
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
43
|
+
|
36
44
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
37
45
|
|
38
46
|
arguments = arguments.clone
|
@@ -47,7 +55,7 @@ module ElasticsearchServerless
|
|
47
55
|
params = {}
|
48
56
|
|
49
57
|
ElasticsearchServerless::API::Response.new(
|
50
|
-
perform_request(method, path, params, body, headers)
|
58
|
+
perform_request(method, path, params, body, headers, request_opts)
|
51
59
|
)
|
52
60
|
end
|
53
61
|
end
|
@@ -26,14 +26,28 @@ module ElasticsearchServerless
|
|
26
26
|
# If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.
|
27
27
|
#
|
28
28
|
# @option arguments [String] :id A unique identifier for the async search. (*Required*)
|
29
|
-
# @option arguments [Time] :keep_alive Specifies how long the async search should be available in the cluster.
|
29
|
+
# @option arguments [Time] :keep_alive Specifies how long the async search should be available in the cluster.
|
30
|
+
# When not specified, the +keep_alive+ set with the corresponding submit async request will be used.
|
31
|
+
# Otherwise, it is possible to override the value and extend the validity of the request.
|
32
|
+
# When this period expires, the search, if still running, is cancelled.
|
33
|
+
# If the search is completed, its saved results are deleted.
|
30
34
|
# @option arguments [Boolean] :typed_keys Specify whether aggregation and suggester names should be prefixed by their respective types in the response
|
31
|
-
# @option arguments [Time] :wait_for_completion_timeout Specifies to wait for the search to be completed up until the provided timeout.
|
35
|
+
# @option arguments [Time] :wait_for_completion_timeout Specifies to wait for the search to be completed up until the provided timeout.
|
36
|
+
# Final results will be returned if available before the timeout expires, otherwise the currently available results will be returned once the timeout expires.
|
37
|
+
# By default no timeout is set meaning that the currently available results will be returned without any additional wait.
|
32
38
|
# @option arguments [Hash] :headers Custom HTTP headers
|
33
39
|
#
|
34
40
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
|
35
41
|
#
|
36
42
|
def get(arguments = {})
|
43
|
+
request_opts = { endpoint: arguments[:endpoint] || "async_search.get" }
|
44
|
+
|
45
|
+
defined_params = [:id].inject({}) do |set_variables, variable|
|
46
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
47
|
+
set_variables
|
48
|
+
end
|
49
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
50
|
+
|
37
51
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
38
52
|
|
39
53
|
arguments = arguments.clone
|
@@ -48,7 +62,7 @@ module ElasticsearchServerless
|
|
48
62
|
params = Utils.process_params(arguments)
|
49
63
|
|
50
64
|
ElasticsearchServerless::API::Response.new(
|
51
|
-
perform_request(method, path, params, body, headers)
|
65
|
+
perform_request(method, path, params, body, headers, request_opts)
|
52
66
|
)
|
53
67
|
end
|
54
68
|
end
|
@@ -32,6 +32,14 @@ module ElasticsearchServerless
|
|
32
32
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
|
33
33
|
#
|
34
34
|
def status(arguments = {})
|
35
|
+
request_opts = { endpoint: arguments[:endpoint] || "async_search.status" }
|
36
|
+
|
37
|
+
defined_params = [:id].inject({}) do |set_variables, variable|
|
38
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
39
|
+
set_variables
|
40
|
+
end
|
41
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
42
|
+
|
35
43
|
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
36
44
|
|
37
45
|
arguments = arguments.clone
|
@@ -46,7 +54,7 @@ module ElasticsearchServerless
|
|
46
54
|
params = {}
|
47
55
|
|
48
56
|
ElasticsearchServerless::API::Response.new(
|
49
|
-
perform_request(method, path, params, body, headers)
|
57
|
+
perform_request(method, path, params, body, headers, request_opts)
|
50
58
|
)
|
51
59
|
end
|
52
60
|
end
|
@@ -29,14 +29,17 @@ module ElasticsearchServerless
|
|
29
29
|
# The maximum allowed size for a stored async search response can be set by changing the +search.max_async_search_response_size+ cluster level setting.
|
30
30
|
#
|
31
31
|
# @option arguments [String, Array] :index A comma-separated list of index names to search; use +_all+ or empty string to perform the operation on all indices
|
32
|
-
# @option arguments [Time] :wait_for_completion_timeout Blocks and waits until the search is completed up to a certain timeout.
|
32
|
+
# @option arguments [Time] :wait_for_completion_timeout Blocks and waits until the search is completed up to a certain timeout.
|
33
|
+
# When the async search completes within the timeout, the response won’t include the ID as the results are not stored in the cluster. Server default: 1s.
|
33
34
|
# @option arguments [Boolean] :keep_on_completion If +true+, results are stored for later retrieval when the search completes within the +wait_for_completion_timeout+.
|
34
|
-
# @option arguments [Time] :keep_alive Specifies how long the async search needs to be available.
|
35
|
+
# @option arguments [Time] :keep_alive Specifies how long the async search needs to be available.
|
36
|
+
# Ongoing async searches and any saved search results are deleted after this period. Server default: 5d.
|
35
37
|
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes +_all+ string or when no indices have been specified)
|
36
38
|
# @option arguments [Boolean] :allow_partial_search_results Indicate if an error should be returned if there is a partial search failure or timeout
|
37
39
|
# @option arguments [String] :analyzer The analyzer to use for the query string
|
38
40
|
# @option arguments [Boolean] :analyze_wildcard Specify whether wildcard and prefix queries should be analyzed (default: false)
|
39
|
-
# @option arguments [Integer] :batched_reduce_size Affects how often partial results become available, which happens whenever shard results are reduced.
|
41
|
+
# @option arguments [Integer] :batched_reduce_size Affects how often partial results become available, which happens whenever shard results are reduced.
|
42
|
+
# A partial reduction is performed every time the coordinating node has received a certain number of new shard responses (5 by default). Server default: 5.
|
40
43
|
# @option arguments [Boolean] :ccs_minimize_roundtrips The default value is the only supported value.
|
41
44
|
# @option arguments [String] :default_operator The default operator for query string query (AND or OR)
|
42
45
|
# @option arguments [String] :df The field to use as default where no field prefix is given in the query string
|
@@ -81,6 +84,14 @@ module ElasticsearchServerless
|
|
81
84
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
|
82
85
|
#
|
83
86
|
def submit(arguments = {})
|
87
|
+
request_opts = { endpoint: arguments[:endpoint] || "async_search.submit" }
|
88
|
+
|
89
|
+
defined_params = [:index].inject({}) do |set_variables, variable|
|
90
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
91
|
+
set_variables
|
92
|
+
end
|
93
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
94
|
+
|
84
95
|
arguments = arguments.clone
|
85
96
|
headers = arguments.delete(:headers) || {}
|
86
97
|
|
@@ -97,7 +108,7 @@ module ElasticsearchServerless
|
|
97
108
|
params = Utils.process_params(arguments)
|
98
109
|
|
99
110
|
ElasticsearchServerless::API::Response.new(
|
100
|
-
perform_request(method, path, params, body, headers)
|
111
|
+
perform_request(method, path, params, body, headers, request_opts)
|
101
112
|
)
|
102
113
|
end
|
103
114
|
end
|
@@ -21,18 +21,23 @@
|
|
21
21
|
module ElasticsearchServerless
|
22
22
|
module API
|
23
23
|
module Actions
|
24
|
+
# Bulk index or delete documents.
|
24
25
|
# Performs multiple indexing or delete operations in a single API call.
|
25
26
|
# This reduces overhead and can greatly increase indexing speed.
|
26
27
|
#
|
27
28
|
# @option arguments [String] :index Name of the data stream, index, or index alias to perform bulk actions on.
|
28
|
-
# @option arguments [String] :pipeline ID of the pipeline to use to preprocess incoming documents.
|
29
|
-
#
|
29
|
+
# @option arguments [String] :pipeline ID of the pipeline to use to preprocess incoming documents.
|
30
|
+
# If the index has a default ingest pipeline specified, then setting the value to +_none+ disables the default ingest pipeline for this request.
|
31
|
+
# If a final pipeline is configured it will always run, regardless of the value of this parameter.
|
32
|
+
# @option arguments [String] :refresh If +true+, Elasticsearch refreshes the affected shards to make this operation visible to search, if +wait_for+ then wait for a refresh to make this operation visible to search, if +false+ do nothing with refreshes.
|
33
|
+
# Valid values: +true+, +false+, +wait_for+. Server default: false.
|
30
34
|
# @option arguments [String] :routing Custom value used to route operations to a specific shard.
|
31
35
|
# @option arguments [Boolean, String, Array<String>] :_source +true+ or +false+ to return the +_source+ field or not, or a list of fields to return.
|
32
36
|
# @option arguments [String, Array<String>] :_source_excludes A comma-separated list of source fields to exclude from the response.
|
33
37
|
# @option arguments [String, Array<String>] :_source_includes A comma-separated list of source fields to include in the response.
|
34
38
|
# @option arguments [Time] :timeout Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. Server default: 1m.
|
35
|
-
# @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation.
|
39
|
+
# @option arguments [Integer, String] :wait_for_active_shards The number of shard copies that must be active before proceeding with the operation.
|
40
|
+
# Set to all or any positive integer up to the total number of shards in the index (+number_of_replicas+1+). Server default: 1.
|
36
41
|
# @option arguments [Boolean] :require_alias If +true+, the request’s actions must target an index alias.
|
37
42
|
# @option arguments [Hash] :headers Custom HTTP headers
|
38
43
|
# @option arguments [String|Array] :body operations. Array of Strings, Header/Data pairs, or the conveniency "combined" format can be passed, refer to ElasticsearchServerless::API::Utils.bulkify documentation.
|
@@ -40,6 +45,14 @@ module ElasticsearchServerless
|
|
40
45
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
|
41
46
|
#
|
42
47
|
def bulk(arguments = {})
|
48
|
+
request_opts = { endpoint: arguments[:endpoint] || "bulk" }
|
49
|
+
|
50
|
+
defined_params = [:index].inject({}) do |set_variables, variable|
|
51
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
52
|
+
set_variables
|
53
|
+
end
|
54
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
55
|
+
|
43
56
|
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
44
57
|
|
45
58
|
arguments = arguments.clone
|
@@ -65,7 +78,7 @@ module ElasticsearchServerless
|
|
65
78
|
|
66
79
|
headers.merge!("Content-Type" => "application/x-ndjson")
|
67
80
|
ElasticsearchServerless::API::Response.new(
|
68
|
-
perform_request(method, path, params, payload, headers)
|
81
|
+
perform_request(method, path, params, payload, headers, request_opts)
|
69
82
|
)
|
70
83
|
end
|
71
84
|
end
|
@@ -22,24 +22,40 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
+
# Get aliases.
|
25
26
|
# Retrieves the cluster’s index aliases, including filter and routing information.
|
26
27
|
# The API does not return data stream aliases.
|
27
|
-
#
|
28
|
+
# CAT APIs are only intended for human consumption using the command line or the Kibana console. They are not intended for use by applications. For application consumption, use the aliases API.
|
28
29
|
#
|
29
30
|
# @option arguments [String, Array<String>] :name A comma-separated list of aliases to retrieve. Supports wildcards (+*+). To retrieve all aliases, omit this parameter or use +*+ or +_all+.
|
30
31
|
# @option arguments [String, Array<String>] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both.
|
31
|
-
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
32
|
+
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
33
|
+
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
|
32
34
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
33
|
-
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
34
|
-
#
|
35
|
+
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
36
|
+
# can't be combined with any other query string option.
|
37
|
+
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
38
|
+
# local cluster state. If +false+ the list of selected nodes are computed
|
39
|
+
# from the cluster state of the master node. In both cases the coordinating
|
40
|
+
# node will send requests for further information to each selected node.
|
35
41
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
36
|
-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
42
|
+
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
43
|
+
# Sorting defaults to ascending and can be changed by setting +:asc+
|
44
|
+
# or +:desc+ as a suffix to the column name.
|
37
45
|
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
|
38
46
|
# @option arguments [Hash] :headers Custom HTTP headers
|
39
47
|
#
|
40
48
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-alias.html
|
41
49
|
#
|
42
50
|
def aliases(arguments = {})
|
51
|
+
request_opts = { endpoint: arguments[:endpoint] || "cat.aliases" }
|
52
|
+
|
53
|
+
defined_params = [:name].inject({}) do |set_variables, variable|
|
54
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
55
|
+
set_variables
|
56
|
+
end
|
57
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
58
|
+
|
43
59
|
arguments = arguments.clone
|
44
60
|
headers = arguments.delete(:headers) || {}
|
45
61
|
|
@@ -57,7 +73,7 @@ module ElasticsearchServerless
|
|
57
73
|
params[:h] = Utils.listify(params[:h]) if params[:h]
|
58
74
|
|
59
75
|
ElasticsearchServerless::API::Response.new(
|
60
|
-
perform_request(method, path, params, body, headers)
|
76
|
+
perform_request(method, path, params, body, headers, request_opts)
|
61
77
|
)
|
62
78
|
end
|
63
79
|
end
|
@@ -22,24 +22,40 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
+
# Get component templates.
|
25
26
|
# Returns information about component templates in a cluster.
|
26
27
|
# Component templates are building blocks for constructing index templates that specify index mappings, settings, and aliases.
|
27
|
-
#
|
28
|
+
# CAT APIs are only intended for human consumption using the command line or Kibana console.
|
28
29
|
# They are not intended for use by applications. For application consumption, use the get component template API.
|
29
30
|
#
|
30
31
|
# @option arguments [String] :name The name of the component template. Accepts wildcard expressions. If omitted, all component templates are returned.
|
31
|
-
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
32
|
+
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
33
|
+
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
|
32
34
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
33
|
-
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
34
|
-
#
|
35
|
+
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
36
|
+
# can't be combined with any other query string option.
|
37
|
+
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
38
|
+
# local cluster state. If +false+ the list of selected nodes are computed
|
39
|
+
# from the cluster state of the master node. In both cases the coordinating
|
40
|
+
# node will send requests for further information to each selected node.
|
35
41
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
36
|
-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
42
|
+
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
43
|
+
# Sorting defaults to ascending and can be changed by setting +:asc+
|
44
|
+
# or +:desc+ as a suffix to the column name.
|
37
45
|
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
|
38
46
|
# @option arguments [Hash] :headers Custom HTTP headers
|
39
47
|
#
|
40
48
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component-templates.html
|
41
49
|
#
|
42
50
|
def component_templates(arguments = {})
|
51
|
+
request_opts = { endpoint: arguments[:endpoint] || "cat.component_templates" }
|
52
|
+
|
53
|
+
defined_params = [:name].inject({}) do |set_variables, variable|
|
54
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
55
|
+
set_variables
|
56
|
+
end
|
57
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
58
|
+
|
43
59
|
arguments = arguments.clone
|
44
60
|
headers = arguments.delete(:headers) || {}
|
45
61
|
|
@@ -56,7 +72,7 @@ module ElasticsearchServerless
|
|
56
72
|
params = Utils.process_params(arguments)
|
57
73
|
|
58
74
|
ElasticsearchServerless::API::Response.new(
|
59
|
-
perform_request(method, path, params, body, headers)
|
75
|
+
perform_request(method, path, params, body, headers, request_opts)
|
60
76
|
)
|
61
77
|
end
|
62
78
|
end
|
@@ -22,24 +22,41 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
+
# Get a document count.
|
25
26
|
# Provides quick access to a document count for a data stream, an index, or an entire cluster.
|
26
|
-
#
|
27
|
-
#
|
27
|
+
# The document count only includes live documents, not deleted documents which have not yet been removed by the merge process.
|
28
|
+
# CAT APIs are only intended for human consumption using the command line or Kibana console.
|
28
29
|
# They are not intended for use by applications. For application consumption, use the count API.
|
29
30
|
#
|
30
|
-
# @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request.
|
31
|
-
#
|
31
|
+
# @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request.
|
32
|
+
# Supports wildcards (+*+). To target all data streams and indices, omit this parameter or use +*+ or +_all+.
|
33
|
+
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
34
|
+
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
|
32
35
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
33
|
-
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
34
|
-
#
|
36
|
+
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
37
|
+
# can't be combined with any other query string option.
|
38
|
+
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
39
|
+
# local cluster state. If +false+ the list of selected nodes are computed
|
40
|
+
# from the cluster state of the master node. In both cases the coordinating
|
41
|
+
# node will send requests for further information to each selected node.
|
35
42
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
36
|
-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
43
|
+
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
44
|
+
# Sorting defaults to ascending and can be changed by setting +:asc+
|
45
|
+
# or +:desc+ as a suffix to the column name.
|
37
46
|
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
|
38
47
|
# @option arguments [Hash] :headers Custom HTTP headers
|
39
48
|
#
|
40
49
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-count.html
|
41
50
|
#
|
42
51
|
def count(arguments = {})
|
52
|
+
request_opts = { endpoint: arguments[:endpoint] || "cat.count" }
|
53
|
+
|
54
|
+
defined_params = [:index].inject({}) do |set_variables, variable|
|
55
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
56
|
+
set_variables
|
57
|
+
end
|
58
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
59
|
+
|
43
60
|
arguments = arguments.clone
|
44
61
|
headers = arguments.delete(:headers) || {}
|
45
62
|
|
@@ -57,7 +74,7 @@ module ElasticsearchServerless
|
|
57
74
|
params[:h] = Utils.listify(params[:h]) if params[:h]
|
58
75
|
|
59
76
|
ElasticsearchServerless::API::Response.new(
|
60
|
-
perform_request(method, path, params, body, headers)
|
77
|
+
perform_request(method, path, params, body, headers, request_opts)
|
61
78
|
)
|
62
79
|
end
|
63
80
|
end
|
@@ -22,20 +22,30 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Get CAT help.
|
26
|
+
# Returns help for the CAT APIs.
|
26
27
|
#
|
27
|
-
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
28
|
+
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
29
|
+
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
|
28
30
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
29
|
-
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
30
|
-
#
|
31
|
+
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
32
|
+
# can't be combined with any other query string option.
|
33
|
+
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
34
|
+
# local cluster state. If +false+ the list of selected nodes are computed
|
35
|
+
# from the cluster state of the master node. In both cases the coordinating
|
36
|
+
# node will send requests for further information to each selected node.
|
31
37
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
32
|
-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
38
|
+
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
39
|
+
# Sorting defaults to ascending and can be changed by setting +:asc+
|
40
|
+
# or +:desc+ as a suffix to the column name.
|
33
41
|
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
|
34
42
|
# @option arguments [Hash] :headers Custom HTTP headers
|
35
43
|
#
|
36
44
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat.html
|
37
45
|
#
|
38
46
|
def help(arguments = {})
|
47
|
+
request_opts = { endpoint: arguments[:endpoint] || "cat.help" }
|
48
|
+
|
39
49
|
arguments = arguments.clone
|
40
50
|
headers = arguments.delete(:headers) || {}
|
41
51
|
|
@@ -46,7 +56,7 @@ module ElasticsearchServerless
|
|
46
56
|
params = Utils.process_params(arguments)
|
47
57
|
|
48
58
|
ElasticsearchServerless::API::Response.new(
|
49
|
-
perform_request(method, path, params, body, headers)
|
59
|
+
perform_request(method, path, params, body, headers, request_opts)
|
50
60
|
)
|
51
61
|
end
|
52
62
|
end
|
@@ -22,32 +22,54 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
+
# Get index information.
|
25
26
|
# Returns high-level information about indices in a cluster, including backing indices for data streams.
|
26
|
-
#
|
27
|
-
#
|
28
|
-
#
|
27
|
+
# Use this request to get the following information for each index in a cluster:
|
28
|
+
# - shard count
|
29
|
+
# - document count
|
30
|
+
# - deleted document count
|
31
|
+
# - primary store size
|
32
|
+
# - total store size of all shards, including shard replicas
|
29
33
|
# These metrics are retrieved directly from Lucene, which Elasticsearch uses internally to power indexing and search. As a result, all document counts include hidden nested documents.
|
30
34
|
# To get an accurate count of Elasticsearch documents, use the cat count or count APIs.
|
35
|
+
# CAT APIs are only intended for human consumption using the command line or Kibana console.
|
36
|
+
# They are not intended for use by applications. For application consumption, use an index endpoint.
|
31
37
|
#
|
32
|
-
# @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request.
|
38
|
+
# @option arguments [String, Array] :index Comma-separated list of data streams, indices, and aliases used to limit the request.
|
39
|
+
# Supports wildcards (+*+). To target all data streams and indices, omit this parameter or use +*+ or +_all+.
|
33
40
|
# @option arguments [String] :bytes The unit used to display byte values.
|
34
41
|
# @option arguments [String, Array<String>] :expand_wildcards The type of index that wildcard patterns can match.
|
35
42
|
# @option arguments [String] :health The health status used to limit returned indices. By default, the response includes indices of any health status.
|
36
43
|
# @option arguments [Boolean] :include_unloaded_segments If true, the response includes information from segments that are not loaded into memory.
|
37
44
|
# @option arguments [Boolean] :pri If true, the response only includes information from primary shards.
|
38
45
|
# @option arguments [String] :time The unit used to display time values.
|
39
|
-
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
46
|
+
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
47
|
+
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
|
40
48
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
41
|
-
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
42
|
-
#
|
49
|
+
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
50
|
+
# can't be combined with any other query string option.
|
51
|
+
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
52
|
+
# local cluster state. If +false+ the list of selected nodes are computed
|
53
|
+
# from the cluster state of the master node. In both cases the coordinating
|
54
|
+
# node will send requests for further information to each selected node.
|
43
55
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
44
|
-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
56
|
+
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
57
|
+
# Sorting defaults to ascending and can be changed by setting +:asc+
|
58
|
+
# or +:desc+ as a suffix to the column name.
|
45
59
|
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
|
46
60
|
# @option arguments [Hash] :headers Custom HTTP headers
|
47
61
|
#
|
48
62
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html
|
49
63
|
#
|
50
64
|
def indices(arguments = {})
|
65
|
+
request_opts = { endpoint: arguments[:endpoint] || "cat.indices" }
|
66
|
+
|
67
|
+
defined_params = [:index].inject({}) do |set_variables, variable|
|
68
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
69
|
+
set_variables
|
70
|
+
end
|
71
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
72
|
+
|
51
73
|
arguments = arguments.clone
|
52
74
|
headers = arguments.delete(:headers) || {}
|
53
75
|
|
@@ -65,7 +87,7 @@ module ElasticsearchServerless
|
|
65
87
|
params[:h] = Utils.listify(params[:h]) if params[:h]
|
66
88
|
|
67
89
|
ElasticsearchServerless::API::Response.new(
|
68
|
-
perform_request(method, path, params, body, headers)
|
90
|
+
perform_request(method, path, params, body, headers, request_opts)
|
69
91
|
)
|
70
92
|
end
|
71
93
|
end
|
@@ -22,9 +22,9 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Cat
|
24
24
|
module Actions
|
25
|
+
# Get data frame analytics jobs.
|
25
26
|
# Returns configuration and usage information about data frame analytics jobs.
|
26
|
-
#
|
27
|
-
# IMPORTANT: cat APIs are only intended for human consumption using the Kibana
|
27
|
+
# CAT APIs are only intended for human consumption using the Kibana
|
28
28
|
# console or command line. They are not intended for use by applications. For
|
29
29
|
# application consumption, use the get data frame analytics jobs statistics API.
|
30
30
|
#
|
@@ -32,20 +32,36 @@ module ElasticsearchServerless
|
|
32
32
|
# @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no configs. (This includes +_all+ string or when no configs have been specified)
|
33
33
|
# @option arguments [String] :bytes The unit in which to display byte values
|
34
34
|
# @option arguments [String, Array<String>] :h Comma-separated list of column names to display. Server default: create_time,id,state,type.
|
35
|
-
# @option arguments [String, Array<String>] :s Comma-separated list of column names or column aliases used to sort the
|
35
|
+
# @option arguments [String, Array<String>] :s Comma-separated list of column names or column aliases used to sort the
|
36
|
+
# response.
|
36
37
|
# @option arguments [Time] :time Unit used to display time values.
|
37
|
-
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
38
|
+
# @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
|
39
|
+
# +text+, +json+, +cbor+, +yaml+, or +smile+. Server default: text.
|
38
40
|
# @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
|
39
|
-
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
40
|
-
#
|
41
|
+
# @option arguments [Boolean] :help When set to +true+ will output available columns. This option
|
42
|
+
# can't be combined with any other query string option.
|
43
|
+
# @option arguments [Boolean] :local If +true+, the request computes the list of selected nodes from the
|
44
|
+
# local cluster state. If +false+ the list of selected nodes are computed
|
45
|
+
# from the cluster state of the master node. In both cases the coordinating
|
46
|
+
# node will send requests for further information to each selected node.
|
41
47
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
|
42
|
-
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
48
|
+
# @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
|
49
|
+
# Sorting defaults to ascending and can be changed by setting +:asc+
|
50
|
+
# or +:desc+ as a suffix to the column name.
|
43
51
|
# @option arguments [Boolean] :v When set to +true+ will enable verbose output.
|
44
52
|
# @option arguments [Hash] :headers Custom HTTP headers
|
45
53
|
#
|
46
54
|
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-dfanalytics.html
|
47
55
|
#
|
48
56
|
def ml_data_frame_analytics(arguments = {})
|
57
|
+
request_opts = { endpoint: arguments[:endpoint] || "cat.ml_data_frame_analytics" }
|
58
|
+
|
59
|
+
defined_params = [:id].inject({}) do |set_variables, variable|
|
60
|
+
set_variables[variable] = arguments[variable] if arguments.key?(variable)
|
61
|
+
set_variables
|
62
|
+
end
|
63
|
+
request_opts[:defined_params] = defined_params unless defined_params.empty?
|
64
|
+
|
49
65
|
arguments = arguments.clone
|
50
66
|
headers = arguments.delete(:headers) || {}
|
51
67
|
|
@@ -62,7 +78,7 @@ module ElasticsearchServerless
|
|
62
78
|
params = Utils.process_params(arguments)
|
63
79
|
|
64
80
|
ElasticsearchServerless::API::Response.new(
|
65
|
-
perform_request(method, path, params, body, headers)
|
81
|
+
perform_request(method, path, params, body, headers, request_opts)
|
66
82
|
)
|
67
83
|
end
|
68
84
|
end
|