elasticsearch-serverless 0.1.0.20231031.pre → 0.2.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 +4 -1
- data/lib/elasticsearch-serverless/api/async_search/get.rb +2 -1
- data/lib/elasticsearch-serverless/api/async_search/status.rb +3 -1
- data/lib/elasticsearch-serverless/api/async_search/submit.rb +5 -1
- data/lib/elasticsearch-serverless/api/bulk.rb +2 -1
- data/lib/elasticsearch-serverless/api/cat/aliases.rb +3 -1
- data/lib/elasticsearch-serverless/api/cat/component_templates.rb +4 -1
- data/lib/elasticsearch-serverless/api/cat/count.rb +4 -1
- data/lib/elasticsearch-serverless/api/cat/indices.rb +6 -1
- data/lib/elasticsearch-serverless/api/cat/ml_data_frame_analytics.rb +5 -1
- data/lib/elasticsearch-serverless/api/cat/ml_datafeeds.rb +8 -1
- data/lib/elasticsearch-serverless/api/cat/ml_jobs.rb +8 -1
- data/lib/elasticsearch-serverless/api/cat/ml_trained_models.rb +5 -1
- data/lib/elasticsearch-serverless/api/cat/transforms.rb +5 -1
- data/lib/elasticsearch-serverless/api/clear_scroll.rb +1 -1
- data/lib/elasticsearch-serverless/api/close_point_in_time.rb +1 -1
- data/lib/elasticsearch-serverless/api/cluster/delete_component_template.rb +2 -1
- data/lib/elasticsearch-serverless/api/cluster/get_component_template.rb +1 -1
- data/lib/elasticsearch-serverless/api/cluster/put_component_template.rb +15 -1
- data/lib/elasticsearch-serverless/api/connector/check_in.rb +57 -0
- data/lib/elasticsearch-serverless/api/connector/delete.rb +58 -0
- data/lib/elasticsearch-serverless/api/connector/get.rb +57 -0
- data/lib/elasticsearch-serverless/api/connector/last_sync.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/list.rb +58 -0
- data/lib/elasticsearch-serverless/api/connector/post.rb +53 -0
- data/lib/elasticsearch-serverless/api/connector/put.rb +60 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_cancel.rb +58 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_delete.rb +58 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_get.rb +58 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_list.rb +57 -0
- data/lib/elasticsearch-serverless/api/connector/sync_job_post.rb +55 -0
- data/lib/elasticsearch-serverless/api/connector/update_active_filtering.rb +57 -0
- data/lib/elasticsearch-serverless/api/connector/update_api_key_id.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_configuration.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_error.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_filtering.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_filtering_validation.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_index_name.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_name.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_native.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_pipeline.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_scheduling.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_service_type.rb +59 -0
- data/lib/elasticsearch-serverless/api/connector/update_status.rb +59 -0
- data/lib/elasticsearch-serverless/api/create.rb +2 -3
- data/lib/elasticsearch-serverless/api/delete.rb +1 -1
- data/lib/elasticsearch-serverless/api/delete_by_query.rb +1 -1
- data/lib/elasticsearch-serverless/api/delete_script.rb +1 -1
- data/lib/elasticsearch-serverless/api/enrich/get_policy.rb +1 -1
- data/lib/elasticsearch-serverless/api/enrich/put_policy.rb +1 -1
- data/lib/elasticsearch-serverless/api/enrich/stats.rb +1 -1
- data/lib/elasticsearch-serverless/api/eql/delete.rb +2 -1
- data/lib/elasticsearch-serverless/api/eql/get.rb +1 -1
- data/lib/elasticsearch-serverless/api/eql/get_status.rb +1 -1
- data/lib/elasticsearch-serverless/api/esql/query.rb +57 -0
- data/lib/elasticsearch-serverless/api/exists.rb +1 -1
- data/lib/elasticsearch-serverless/api/exists_source.rb +1 -1
- data/lib/elasticsearch-serverless/api/explain.rb +1 -1
- data/lib/elasticsearch-serverless/api/field_caps.rb +4 -1
- data/lib/elasticsearch-serverless/api/get.rb +1 -0
- data/lib/elasticsearch-serverless/api/get_script.rb +1 -1
- data/lib/elasticsearch-serverless/api/graph/explore.rb +1 -1
- data/lib/elasticsearch-serverless/api/index.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/analyze.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/create.rb +2 -2
- data/lib/elasticsearch-serverless/api/indices/create_data_stream.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/data_streams_stats.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/delete.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/delete_alias.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/delete_data_lifecycle.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/delete_data_stream.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/delete_index_template.rb +4 -1
- data/lib/elasticsearch-serverless/api/indices/exists.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/exists_alias.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/get.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/get_alias.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/get_data_lifecycle.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/get_data_stream.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/get_index_template.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/get_mapping.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/get_settings.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/migrate_to_data_stream.rb +10 -1
- data/lib/elasticsearch-serverless/api/indices/modify_data_stream.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/put_alias.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/put_data_lifecycle.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/put_index_template.rb +4 -1
- data/lib/elasticsearch-serverless/api/indices/put_mapping.rb +3 -1
- data/lib/elasticsearch-serverless/api/indices/put_settings.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/put_template.rb +60 -0
- data/lib/elasticsearch-serverless/api/indices/refresh.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/resolve_index.rb +2 -1
- data/lib/elasticsearch-serverless/api/indices/rollover.rb +1 -2
- data/lib/elasticsearch-serverless/api/indices/simulate_index_template.rb +4 -5
- data/lib/elasticsearch-serverless/api/indices/simulate_template.rb +3 -2
- data/lib/elasticsearch-serverless/api/indices/update_aliases.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/validate_query.rb +1 -1
- data/lib/elasticsearch-serverless/api/inference/delete.rb +66 -0
- data/lib/elasticsearch-serverless/api/inference/get.rb +64 -0
- data/lib/elasticsearch-serverless/api/inference/inference.rb +66 -0
- data/lib/elasticsearch-serverless/api/inference/put.rb +66 -0
- data/lib/elasticsearch-serverless/api/ingest/delete_pipeline.rb +1 -1
- data/lib/elasticsearch-serverless/api/ingest/get_pipeline.rb +2 -1
- data/lib/elasticsearch-serverless/api/ingest/processor_grok.rb +3 -1
- data/lib/elasticsearch-serverless/api/ingest/put_pipeline.rb +2 -1
- data/lib/elasticsearch-serverless/api/ingest/simulate.rb +1 -1
- data/lib/elasticsearch-serverless/api/license/get.rb +2 -1
- data/lib/elasticsearch-serverless/api/logstash/delete_pipeline.rb +1 -1
- data/lib/elasticsearch-serverless/api/logstash/get_pipeline.rb +1 -1
- data/lib/elasticsearch-serverless/api/logstash/put_pipeline.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/close_job.rb +5 -1
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/delete_data_frame_analytics.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/delete_filter.rb +2 -0
- data/lib/elasticsearch-serverless/api/machine_learning/delete_job.rb +8 -1
- data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model.rb +2 -1
- data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model_alias.rb +4 -1
- data/lib/elasticsearch-serverless/api/machine_learning/estimate_model_memory.rb +3 -1
- data/lib/elasticsearch-serverless/api/machine_learning/evaluate_data_frame.rb +4 -0
- data/lib/elasticsearch-serverless/api/machine_learning/flush_job.rb +8 -0
- data/lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics.rb +3 -0
- data/lib/elasticsearch-serverless/api/machine_learning/get_datafeed_stats.rb +6 -0
- data/lib/elasticsearch-serverless/api/machine_learning/get_datafeeds.rb +5 -0
- data/lib/elasticsearch-serverless/api/machine_learning/get_filters.rb +1 -0
- data/lib/elasticsearch-serverless/api/machine_learning/get_jobs.rb +4 -0
- data/lib/elasticsearch-serverless/api/machine_learning/get_overall_buckets.rb +17 -1
- data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models.rb +2 -2
- data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models_stats.rb +2 -1
- data/lib/elasticsearch-serverless/api/machine_learning/infer_trained_model.rb +63 -0
- data/lib/elasticsearch-serverless/api/machine_learning/open_job.rb +7 -0
- data/lib/elasticsearch-serverless/api/machine_learning/post_calendar_events.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/preview_data_frame_analytics.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/preview_datafeed.rb +8 -0
- data/lib/elasticsearch-serverless/api/machine_learning/put_calendar.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/put_calendar_job.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/put_data_frame_analytics.rb +2 -0
- data/lib/elasticsearch-serverless/api/machine_learning/put_datafeed.rb +9 -0
- data/lib/elasticsearch-serverless/api/machine_learning/put_filter.rb +2 -0
- data/lib/elasticsearch-serverless/api/machine_learning/put_job.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model.rb +2 -1
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_alias.rb +16 -1
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_definition_part.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_vocabulary.rb +3 -1
- data/lib/elasticsearch-serverless/api/machine_learning/reset_job.rb +5 -1
- data/lib/elasticsearch-serverless/api/machine_learning/start_data_frame_analytics.rb +11 -0
- data/lib/elasticsearch-serverless/api/machine_learning/start_datafeed.rb +12 -0
- data/lib/elasticsearch-serverless/api/machine_learning/start_trained_model_deployment.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/stop_data_frame_analytics.rb +2 -0
- data/lib/elasticsearch-serverless/api/machine_learning/stop_datafeed.rb +2 -0
- data/lib/elasticsearch-serverless/api/machine_learning/stop_trained_model_deployment.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/update_data_frame_analytics.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/update_datafeed.rb +5 -1
- data/lib/elasticsearch-serverless/api/machine_learning/update_filter.rb +1 -1
- data/lib/elasticsearch-serverless/api/machine_learning/update_trained_model_deployment.rb +55 -0
- data/lib/elasticsearch-serverless/api/mget.rb +1 -0
- data/lib/elasticsearch-serverless/api/msearch_template.rb +1 -1
- data/lib/elasticsearch-serverless/api/open_point_in_time.rb +6 -1
- data/lib/elasticsearch-serverless/api/put_script.rb +1 -1
- data/lib/elasticsearch-serverless/api/query_rules/delete_rule.rb +57 -0
- data/lib/elasticsearch-serverless/api/{query_ruleset/delete.rb → query_rules/delete_ruleset.rb} +2 -6
- data/lib/elasticsearch-serverless/api/query_rules/get_rule.rb +57 -0
- data/lib/elasticsearch-serverless/api/{query_ruleset/get.rb → query_rules/get_ruleset.rb} +3 -7
- data/lib/elasticsearch-serverless/api/{query_ruleset/list.rb → query_rules/list_rulesets.rb} +3 -7
- data/lib/elasticsearch-serverless/api/query_rules/put_rule.rb +59 -0
- data/lib/elasticsearch-serverless/api/{query_ruleset/put.rb → query_rules/put_ruleset.rb} +2 -6
- data/lib/elasticsearch-serverless/api/rank_eval.rb +1 -1
- data/lib/elasticsearch-serverless/api/render_search_template.rb +1 -1
- data/lib/elasticsearch-serverless/api/scripts_painless_execute.rb +1 -1
- data/lib/elasticsearch-serverless/api/search.rb +4 -1
- data/lib/elasticsearch-serverless/api/search_application/get.rb +1 -1
- data/lib/elasticsearch-serverless/api/search_application/search.rb +3 -2
- data/lib/elasticsearch-serverless/api/search_template.rb +1 -1
- data/lib/elasticsearch-serverless/api/security/authenticate.rb +3 -1
- data/lib/elasticsearch-serverless/api/security/create_api_key.rb +3 -0
- data/lib/elasticsearch-serverless/api/security/get_api_key.rb +4 -0
- data/lib/elasticsearch-serverless/api/security/invalidate_api_key.rb +6 -0
- data/lib/elasticsearch-serverless/api/security/query_api_keys.rb +4 -2
- data/lib/elasticsearch-serverless/api/security/update_api_key.rb +66 -0
- data/lib/elasticsearch-serverless/api/synonyms/put_synonym.rb +1 -1
- data/lib/elasticsearch-serverless/api/tasks/get.rb +57 -0
- data/lib/elasticsearch-serverless/api/transform/delete_transform.rb +1 -1
- data/lib/elasticsearch-serverless/api/transform/preview_transform.rb +4 -0
- data/lib/elasticsearch-serverless/api/transform/put_transform.rb +21 -1
- data/lib/elasticsearch-serverless/api/transform/reset_transform.rb +3 -1
- data/lib/elasticsearch-serverless/api/transform/schedule_now_transform.rb +5 -0
- data/lib/elasticsearch-serverless/api/transform/start_transform.rb +16 -1
- data/lib/elasticsearch-serverless/api/transform/update_transform.rb +6 -0
- data/lib/elasticsearch-serverless/api/update_by_query.rb +2 -2
- data/lib/elasticsearch-serverless/api.rb +6 -4
- data/lib/elasticsearch-serverless/version.rb +3 -3
- data/lib/elasticsearch-serverless.rb +13 -5
- metadata +59 -7
@@ -0,0 +1,64 @@
|
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
17
|
+
#
|
18
|
+
# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80
|
19
|
+
# @see https://github.com/elastic/elasticsearch-specification
|
20
|
+
#
|
21
|
+
module ElasticsearchServerless
|
22
|
+
module API
|
23
|
+
module Inference
|
24
|
+
module Actions
|
25
|
+
# Get an inference endpoint
|
26
|
+
# This functionality is Experimental and may be changed or removed
|
27
|
+
# completely in a future release. Elastic will take a best effort approach
|
28
|
+
# to fix any issues, but experimental features are not subject to the
|
29
|
+
# support SLA of official GA features.
|
30
|
+
#
|
31
|
+
# @option arguments [String] :task_type The task type
|
32
|
+
# @option arguments [String] :inference_id The inference Id
|
33
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
34
|
+
#
|
35
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/get-inference-api.html
|
36
|
+
#
|
37
|
+
def get(arguments = {})
|
38
|
+
arguments = arguments.clone
|
39
|
+
headers = arguments.delete(:headers) || {}
|
40
|
+
|
41
|
+
body = nil
|
42
|
+
|
43
|
+
_task_type = arguments.delete(:task_type)
|
44
|
+
|
45
|
+
_inference_id = arguments.delete(:inference_id)
|
46
|
+
|
47
|
+
method = ElasticsearchServerless::API::HTTP_GET
|
48
|
+
path = if _task_type && _inference_id
|
49
|
+
"_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_inference_id)}"
|
50
|
+
elsif _inference_id
|
51
|
+
"_inference/#{Utils.listify(_inference_id)}"
|
52
|
+
else
|
53
|
+
"_inference"
|
54
|
+
end
|
55
|
+
params = {}
|
56
|
+
|
57
|
+
ElasticsearchServerless::API::Response.new(
|
58
|
+
perform_request(method, path, params, body, headers)
|
59
|
+
)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
17
|
+
#
|
18
|
+
# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80
|
19
|
+
# @see https://github.com/elastic/elasticsearch-specification
|
20
|
+
#
|
21
|
+
module ElasticsearchServerless
|
22
|
+
module API
|
23
|
+
module Inference
|
24
|
+
module Actions
|
25
|
+
# Perform inference on the service
|
26
|
+
# This functionality is Experimental and may be changed or removed
|
27
|
+
# completely in a future release. Elastic will take a best effort approach
|
28
|
+
# to fix any issues, but experimental features are not subject to the
|
29
|
+
# support SLA of official GA features.
|
30
|
+
#
|
31
|
+
# @option arguments [String] :task_type The task type
|
32
|
+
# @option arguments [String] :inference_id The inference Id (*Required*)
|
33
|
+
# @option arguments [Time] :timeout Specifies the amount of time to wait for the inference request to complete. Server default: 30s.
|
34
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
35
|
+
# @option arguments [Hash] :body request body
|
36
|
+
#
|
37
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/post-inference-api.html
|
38
|
+
#
|
39
|
+
def inference(arguments = {})
|
40
|
+
raise ArgumentError, "Required argument 'inference_id' missing" unless arguments[:inference_id]
|
41
|
+
|
42
|
+
arguments = arguments.clone
|
43
|
+
headers = arguments.delete(:headers) || {}
|
44
|
+
|
45
|
+
body = arguments.delete(:body)
|
46
|
+
|
47
|
+
_task_type = arguments.delete(:task_type)
|
48
|
+
|
49
|
+
_inference_id = arguments.delete(:inference_id)
|
50
|
+
|
51
|
+
method = ElasticsearchServerless::API::HTTP_POST
|
52
|
+
path = if _task_type && _inference_id
|
53
|
+
"_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_inference_id)}"
|
54
|
+
else
|
55
|
+
"_inference/#{Utils.listify(_inference_id)}"
|
56
|
+
end
|
57
|
+
params = Utils.process_params(arguments)
|
58
|
+
|
59
|
+
ElasticsearchServerless::API::Response.new(
|
60
|
+
perform_request(method, path, params, body, headers)
|
61
|
+
)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
17
|
+
#
|
18
|
+
# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80
|
19
|
+
# @see https://github.com/elastic/elasticsearch-specification
|
20
|
+
#
|
21
|
+
module ElasticsearchServerless
|
22
|
+
module API
|
23
|
+
module Inference
|
24
|
+
module Actions
|
25
|
+
# Create an inference endpoint
|
26
|
+
# This functionality is Experimental and may be changed or removed
|
27
|
+
# completely in a future release. Elastic will take a best effort approach
|
28
|
+
# to fix any issues, but experimental features are not subject to the
|
29
|
+
# support SLA of official GA features.
|
30
|
+
#
|
31
|
+
# @option arguments [String] :task_type The task type
|
32
|
+
# @option arguments [String] :inference_id The inference Id (*Required*)
|
33
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
34
|
+
# @option arguments [Hash] :body inference_config
|
35
|
+
#
|
36
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/put-inference-api.html
|
37
|
+
#
|
38
|
+
def put(arguments = {})
|
39
|
+
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
40
|
+
raise ArgumentError, "Required argument 'inference_id' missing" unless arguments[:inference_id]
|
41
|
+
|
42
|
+
arguments = arguments.clone
|
43
|
+
headers = arguments.delete(:headers) || {}
|
44
|
+
|
45
|
+
body = arguments.delete(:body)
|
46
|
+
|
47
|
+
_task_type = arguments.delete(:task_type)
|
48
|
+
|
49
|
+
_inference_id = arguments.delete(:inference_id)
|
50
|
+
|
51
|
+
method = ElasticsearchServerless::API::HTTP_PUT
|
52
|
+
path = if _task_type && _inference_id
|
53
|
+
"_inference/#{Utils.listify(_task_type)}/#{Utils.listify(_inference_id)}"
|
54
|
+
else
|
55
|
+
"_inference/#{Utils.listify(_inference_id)}"
|
56
|
+
end
|
57
|
+
params = {}
|
58
|
+
|
59
|
+
ElasticsearchServerless::API::Response.new(
|
60
|
+
perform_request(method, path, params, body, headers)
|
61
|
+
)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Ingest
|
24
24
|
module Actions
|
25
|
-
# Deletes
|
25
|
+
# Deletes one or more existing ingest pipeline.
|
26
26
|
#
|
27
27
|
# @option arguments [String] :id Pipeline ID or wildcard expression of pipeline IDs used to limit the request. To delete all ingest pipelines in a cluster, use a value of +*+. (*Required*)
|
28
28
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Ingest
|
24
24
|
module Actions
|
25
|
-
# Returns
|
25
|
+
# Returns information about one or more ingest pipelines.
|
26
|
+
# This API returns a local reference of the pipeline.
|
26
27
|
#
|
27
28
|
# @option arguments [String] :id Comma-separated list of pipeline IDs to retrieve. Wildcard (+*+) expressions are supported. To get all ingest pipelines, omit this parameter or use +*+.
|
28
29
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
@@ -22,7 +22,9 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Ingest
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Extracts structured fields out of a single text field within a document.
|
26
|
+
# You choose which field to extract matched fields from, as well as the grok pattern you expect will match.
|
27
|
+
# A grok pattern is like a regular expression that supports aliased expressions that can be reused.
|
26
28
|
#
|
27
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
30
|
#
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Ingest
|
24
24
|
module Actions
|
25
|
-
# Creates or updates
|
25
|
+
# Creates or updates an ingest pipeline.
|
26
|
+
# Changes made using this API take effect immediately.
|
26
27
|
#
|
27
28
|
# @option arguments [String] :id ID of the ingest pipeline to create or update. (*Required*)
|
28
29
|
# @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Ingest
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Executes an ingest pipeline against a set of provided documents.
|
26
26
|
#
|
27
27
|
# @option arguments [String] :id Pipeline to test. If you don’t specify a +pipeline+ in the request body, this parameter is required.
|
28
28
|
# @option arguments [Boolean] :verbose If +true+, the response includes output data for each processor in the executed pipeline.
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module License
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# This API returns information about the type of license, when it was issued, and when it expires, for example.
|
26
|
+
# For more information about the different types of licenses, see https://www.elastic.co/subscriptions.
|
26
27
|
#
|
27
28
|
# @option arguments [Boolean] :accept_enterprise If +true+, this parameter returns enterprise for Enterprise license types. If +false+, this parameter returns platinum for both platinum and enterprise license types. This behavior is maintained for backwards compatibility. This parameter is deprecated and will always be set to true in 8.x. Server default: true.
|
28
29
|
# @option arguments [Boolean] :local Specifies whether to retrieve local information. The default value is +false+, which means the information is retrieved from the master node.
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Logstash
|
24
24
|
module Actions
|
25
|
-
# Deletes
|
25
|
+
# Deletes a pipeline used for Logstash Central Management.
|
26
26
|
#
|
27
27
|
# @option arguments [String] :id Identifier for the pipeline. (*Required*)
|
28
28
|
# @option arguments [Hash] :headers Custom HTTP headers
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Logstash
|
24
24
|
module Actions
|
25
|
-
# Retrieves
|
25
|
+
# Retrieves pipelines used for Logstash Central Management.
|
26
26
|
#
|
27
27
|
# @option arguments [String, Array] :id Comma-separated list of pipeline identifiers.
|
28
28
|
# @option arguments [Hash] :headers Custom HTTP headers
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module Logstash
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Creates or updates a pipeline used for Logstash Central Management.
|
26
26
|
#
|
27
27
|
# @option arguments [String] :id Identifier for the pipeline. (*Required*)
|
28
28
|
# @option arguments [Hash] :headers Custom HTTP headers
|
@@ -22,7 +22,11 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Close anomaly detection jobs
|
26
|
+
# A job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.
|
27
|
+
# When you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data.
|
28
|
+
# If you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request.
|
29
|
+
# When a datafeed that has a specified end date stops, it automatically closes its associated job.
|
26
30
|
#
|
27
31
|
# @option arguments [String] :job_id Identifier for the anomaly detection job. It can be a job identifier, a group name, or a wildcard expression. You can close multiple anomaly detection jobs in a single API request by using a group name, a comma-separated list of jobs, or a wildcard expression. You can close all jobs by using +_all+ or by specifying +*+ as the job identifier. (*Required*)
|
28
32
|
# @option arguments [Boolean] :allow_no_match Specifies what to do when the request: contains wildcard expressions and there are no jobs that match; contains the +_all+ string or no identifiers and there are no matches; or contains wildcard expressions and there are only partial matches. By default, it returns an empty jobs array when there are no matches and the subset of results when there are partial matches. If +false+, the request returns a 404 status code when there are no matches or only partial matches. Server default: true.
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Removes all scheduled events from a calendar, then deletes it.
|
26
26
|
#
|
27
27
|
# @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*)
|
28
28
|
# @option arguments [Hash] :headers Custom HTTP headers
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
|
-
# Deletes
|
25
|
+
# Deletes a data frame analytics job.
|
26
26
|
#
|
27
27
|
# @option arguments [String] :id Identifier for the data frame analytics job. (*Required*)
|
28
28
|
# @option arguments [Boolean] :force If +true+, it deletes a job that is not stopped; this method is quicker than stopping and deleting the job.
|
@@ -23,6 +23,8 @@ module ElasticsearchServerless
|
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
25
|
# Deletes a filter.
|
26
|
+
# If an anomaly detection job references the filter, you cannot delete the
|
27
|
+
# filter. You must update or delete the job before you can delete the filter.
|
26
28
|
#
|
27
29
|
# @option arguments [String] :filter_id A string that uniquely identifies a filter. (*Required*)
|
28
30
|
# @option arguments [Hash] :headers Custom HTTP headers
|
@@ -22,7 +22,14 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
|
-
# Deletes an
|
25
|
+
# Deletes an anomaly detection job.
|
26
|
+
#
|
27
|
+
# All job configuration, model state and results are deleted.
|
28
|
+
# It is not currently possible to delete multiple jobs using wildcards or a
|
29
|
+
# comma separated list. If you delete a job that has a datafeed, the request
|
30
|
+
# first tries to delete the datafeed. This behavior is equivalent to calling
|
31
|
+
# the delete datafeed API with the same timeout and force parameters as the
|
32
|
+
# delete job request.
|
26
33
|
#
|
27
34
|
# @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*)
|
28
35
|
# @option arguments [Boolean] :force Use to forcefully delete an opened job; this method is quicker than closing and deleting the job.
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
|
-
# Deletes an existing trained inference model that is currently not referenced
|
25
|
+
# Deletes an existing trained inference model that is currently not referenced
|
26
|
+
# by an ingest pipeline.
|
26
27
|
#
|
27
28
|
# @option arguments [String] :model_id The unique identifier of the trained model. (*Required*)
|
28
29
|
# @option arguments [Boolean] :force Forcefully deletes a trained model that is referenced by ingest pipelines or has a started deployment.
|
@@ -22,7 +22,10 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
|
-
# Deletes a model alias
|
25
|
+
# Deletes a trained model alias.
|
26
|
+
# This API deletes an existing model alias that refers to a trained model. If
|
27
|
+
# the model alias is missing or refers to a model other than the one identified
|
28
|
+
# by the +model_id+, this API returns an error.
|
26
29
|
#
|
27
30
|
# @option arguments [String] :model_alias The model alias to delete. (*Required*)
|
28
31
|
# @option arguments [String] :model_id The trained model ID to which the model alias refers. (*Required*)
|
@@ -22,7 +22,9 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Makes an estimation of the memory usage for an anomaly detection job model.
|
26
|
+
# It is based on analysis configuration details for the job and cardinality
|
27
|
+
# estimates for the fields it references.
|
26
28
|
#
|
27
29
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
30
|
# @option arguments [Hash] :body request body
|
@@ -23,6 +23,10 @@ module ElasticsearchServerless
|
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
25
|
# Evaluates the data frame analytics for an annotated index.
|
26
|
+
# The API packages together commonly used evaluation metrics for various types
|
27
|
+
# of machine learning features. This has been designed for use on indexes
|
28
|
+
# created by data frame analytics. Evaluation requires both a ground truth
|
29
|
+
# field and an analytics result field to be present.
|
26
30
|
#
|
27
31
|
# @option arguments [Hash] :headers Custom HTTP headers
|
28
32
|
# @option arguments [Hash] :body request body
|
@@ -23,6 +23,14 @@ module ElasticsearchServerless
|
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
25
|
# Forces any buffered data to be processed by the job.
|
26
|
+
# The flush jobs API is only applicable when sending data for analysis using
|
27
|
+
# the post data API. Depending on the content of the buffer, then it might
|
28
|
+
# additionally calculate new results. Both flush and close operations are
|
29
|
+
# similar, however the flush is more efficient if you are expecting to send
|
30
|
+
# more data for analysis. When flushing, the job remains open and is available
|
31
|
+
# to continue analyzing data. A close operation additionally prunes and
|
32
|
+
# persists the model state to disk and the job must be opened again before
|
33
|
+
# analyzing further data.
|
26
34
|
#
|
27
35
|
# @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*)
|
28
36
|
# @option arguments [String, Time] :advance_time Specifies to advance to a particular time value. Results are generated and the model is updated for data from the specified time interval.
|
@@ -23,6 +23,9 @@ module ElasticsearchServerless
|
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
25
|
# Retrieves configuration information for data frame analytics jobs.
|
26
|
+
# You can get information for multiple data frame analytics jobs in a single
|
27
|
+
# API request by using a comma-separated list of data frame analytics jobs or a
|
28
|
+
# wildcard expression.
|
26
29
|
#
|
27
30
|
# @option arguments [String] :id Identifier for the data frame analytics job. If you do not specify this option, the API returns information for the first hundred data frame analytics jobs.
|
28
31
|
# @option arguments [Boolean] :allow_no_match Specifies what to do when the request: 1. Contains wildcard expressions and there are no data frame analytics jobs that match. 2. Contains the +_all+ string or no identifiers and there are no matches. 3. Contains wildcard expressions and there are only partial matches. The default value returns an empty data_frame_analytics array when there are no matches and the subset of results when there are partial matches. If this parameter is +false+, the request returns a 404 status code when there are no matches or only partial matches. Server default: true.
|
@@ -23,6 +23,12 @@ module ElasticsearchServerless
|
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
25
|
# Retrieves usage information for datafeeds.
|
26
|
+
# You can get statistics for multiple datafeeds in a single API request by
|
27
|
+
# using a comma-separated list of datafeeds or a wildcard expression. You can
|
28
|
+
# get statistics for all datafeeds by using +_all+, by specifying +*+ as the
|
29
|
+
# +<feed_id>+, or by omitting the +<feed_id>+. If the datafeed is stopped, the
|
30
|
+
# only information you receive is the +datafeed_id+ and the +state+.
|
31
|
+
# This API returns a maximum of 10,000 datafeeds.
|
26
32
|
#
|
27
33
|
# @option arguments [String, Array] :datafeed_id Identifier for the datafeed. It can be a datafeed identifier or a wildcard expression. If you do not specify one of these options, the API returns information about all datafeeds.
|
28
34
|
# @option arguments [Boolean] :allow_no_match Specifies what to do when the request: 1. Contains wildcard expressions and there are no datafeeds that match. 2. Contains the +_all+ string or no identifiers and there are no matches. 3. Contains wildcard expressions and there are only partial matches. The default value is +true+, which returns an empty +datafeeds+ array when there are no matches and the subset of results when there are partial matches. If this parameter is +false+, the request returns a +404+ status code when there are no matches or only partial matches.
|
@@ -23,6 +23,11 @@ module ElasticsearchServerless
|
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
25
|
# Retrieves configuration information for datafeeds.
|
26
|
+
# You can get information for multiple datafeeds in a single API request by
|
27
|
+
# using a comma-separated list of datafeeds or a wildcard expression. You can
|
28
|
+
# get information for all datafeeds by using +_all+, by specifying +*+ as the
|
29
|
+
# +<feed_id>+, or by omitting the +<feed_id>+.
|
30
|
+
# This API returns a maximum of 10,000 datafeeds.
|
26
31
|
#
|
27
32
|
# @option arguments [String, Array] :datafeed_id Identifier for the datafeed. It can be a datafeed identifier or a wildcard expression. If you do not specify one of these options, the API returns information about all datafeeds.
|
28
33
|
# @option arguments [Boolean] :allow_no_match Specifies what to do when the request: 1. Contains wildcard expressions and there are no datafeeds that match. 2. Contains the +_all+ string or no identifiers and there are no matches. 3. Contains wildcard expressions and there are only partial matches. The default value is +true+, which returns an empty +datafeeds+ array when there are no matches and the subset of results when there are partial matches. If this parameter is +false+, the request returns a +404+ status code when there are no matches or only partial matches.
|
@@ -23,6 +23,7 @@ module ElasticsearchServerless
|
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
25
|
# Retrieves filters.
|
26
|
+
# You can get a single filter or all filters.
|
26
27
|
#
|
27
28
|
# @option arguments [String, Array] :filter_id A string that uniquely identifies a filter.
|
28
29
|
# @option arguments [Integer] :from Skips the specified number of filters. Server default: 0.
|
@@ -23,6 +23,10 @@ module ElasticsearchServerless
|
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
25
|
# Retrieves configuration information for anomaly detection jobs.
|
26
|
+
# You can get information for multiple anomaly detection jobs in a single API
|
27
|
+
# request by using a group name, a comma-separated list of jobs, or a wildcard
|
28
|
+
# expression. You can get information for all anomaly detection jobs by using
|
29
|
+
# +_all+, by specifying +*+ as the +<job_id>+, or by omitting the +<job_id>+.
|
26
30
|
#
|
27
31
|
# @option arguments [String, Array] :job_id Identifier for the anomaly detection job. It can be a job identifier, a group name, or a wildcard expression. If you do not specify one of these options, the API returns information for all anomaly detection jobs.
|
28
32
|
# @option arguments [Boolean] :allow_no_match Specifies what to do when the request: 1. Contains wildcard expressions and there are no jobs that match. 2. Contains the _all string or no identifiers and there are no matches. 3. Contains wildcard expressions and there are only partial matches. The default value is +true+, which returns an empty +jobs+ array when there are no matches and the subset of results when there are partial matches. If this parameter is +false+, the request returns a +404+ status code when there are no matches or only partial matches. Server default: true.
|
@@ -22,7 +22,23 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
|
-
# Retrieves overall bucket results that summarize the bucket results of
|
25
|
+
# Retrieves overall bucket results that summarize the bucket results of
|
26
|
+
# multiple anomaly detection jobs.
|
27
|
+
#
|
28
|
+
# The +overall_score+ is calculated by combining the scores of all the
|
29
|
+
# buckets within the overall bucket span. First, the maximum
|
30
|
+
# +anomaly_score+ per anomaly detection job in the overall bucket is
|
31
|
+
# calculated. Then the +top_n+ of those scores are averaged to result in
|
32
|
+
# the +overall_score+. This means that you can fine-tune the
|
33
|
+
# +overall_score+ so that it is more or less sensitive to the number of
|
34
|
+
# jobs that detect an anomaly at the same time. For example, if you set
|
35
|
+
# +top_n+ to +1+, the +overall_score+ is the maximum bucket score in the
|
36
|
+
# overall bucket. Alternatively, if you set +top_n+ to the number of jobs,
|
37
|
+
# the +overall_score+ is high only when all jobs detect anomalies in that
|
38
|
+
# overall bucket. If you set the +bucket_span+ parameter (to a value
|
39
|
+
# greater than its default), the +overall_score+ is the maximum
|
40
|
+
# +overall_score+ of the overall buckets that have a span equal to the
|
41
|
+
# jobs' largest bucket span.
|
26
42
|
#
|
27
43
|
# @option arguments [String] :job_id Identifier for the anomaly detection job. It can be a job identifier, a group name, a comma-separated list of jobs or groups, or a wildcard expression. You can summarize the bucket results for all anomaly detection jobs by using +_all+ or by specifying +*+ as the +<job_id>+. (*Required*)
|
28
44
|
# @option arguments [Boolean] :allow_no_match Specifies what to do when the request: 1. Contains wildcard expressions and there are no jobs that match. 2. Contains the +_all+ string or no identifiers and there are no matches. 3. Contains wildcard expressions and there are only partial matches. If +true+, the request returns an empty +jobs+ array when there are no matches and the subset of results when there are partial matches. If this parameter is +false+, the request returns a +404+ status code when there are no matches or only partial matches. Server default: true.
|
@@ -22,9 +22,9 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
|
-
# Retrieves configuration information for a trained
|
25
|
+
# Retrieves configuration information for a trained model.
|
26
26
|
#
|
27
|
-
# @option arguments [String] :model_id The unique identifier of the trained model.
|
27
|
+
# @option arguments [String, Array] :model_id The unique identifier of the trained model or a model alias. You can get information for multiple trained models in a single API request by using a comma-separated list of model IDs or a wildcard expression.
|
28
28
|
# @option arguments [Boolean] :allow_no_match Specifies what to do when the request: - Contains wildcard expressions and there are no models that match. - Contains the _all string or no identifiers and there are no matches. - Contains wildcard expressions and there are only partial matches. If true, it returns an empty array when there are no matches and the subset of results when there are partial matches. Server default: true.
|
29
29
|
# @option arguments [Boolean] :decompress_definition Specifies whether the included model definition should be returned as a JSON map (true) or in a custom compressed format (false). Server default: true.
|
30
30
|
# @option arguments [Boolean] :exclude_generated Indicates if certain fields should be removed from the configuration on retrieval. This allows the configuration to be in an acceptable format to be retrieved and then added to another cluster.
|
@@ -22,7 +22,8 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
|
-
# Retrieves usage information for trained
|
25
|
+
# Retrieves usage information for trained models. You can get usage information for multiple trained
|
26
|
+
# models in a single API request by using a comma-separated list of model IDs or a wildcard expression.
|
26
27
|
#
|
27
28
|
# @option arguments [String, Array] :model_id The unique identifier of the trained model or a model alias. It can be a comma-separated list or a wildcard expression.
|
28
29
|
# @option arguments [Boolean] :allow_no_match Specifies what to do when the request: - Contains wildcard expressions and there are no models that match. - Contains the _all string or no identifiers and there are no matches. - Contains wildcard expressions and there are only partial matches. If true, it returns an empty array when there are no matches and the subset of results when there are partial matches. Server default: true.
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
17
|
+
#
|
18
|
+
# Auto generated from commit f284cc16f4d4b4289bc679aa1529bb504190fe80
|
19
|
+
# @see https://github.com/elastic/elasticsearch-specification
|
20
|
+
#
|
21
|
+
module ElasticsearchServerless
|
22
|
+
module API
|
23
|
+
module MachineLearning
|
24
|
+
module Actions
|
25
|
+
# Evaluates a trained model.
|
26
|
+
#
|
27
|
+
# @option arguments [String] :model_id The unique identifier of the trained model. (*Required*)
|
28
|
+
# @option arguments [Time] :timeout Controls the amount of time to wait for inference results. Server default: 10s.
|
29
|
+
# @option arguments [Hash] :headers Custom HTTP headers
|
30
|
+
# @option arguments [Hash] :body request body
|
31
|
+
#
|
32
|
+
# *Deprecation notice*:
|
33
|
+
# /_ml/trained_models/{model_id}/deployment/_infer is deprecated. Use /_ml/trained_models/{model_id}/_infer instead
|
34
|
+
# Deprecated since version 8.3.0
|
35
|
+
#
|
36
|
+
#
|
37
|
+
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/infer-trained-model.html
|
38
|
+
#
|
39
|
+
def infer_trained_model(arguments = {})
|
40
|
+
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
41
|
+
raise ArgumentError, "Required argument 'model_id' missing" unless arguments[:model_id]
|
42
|
+
|
43
|
+
arguments = arguments.clone
|
44
|
+
headers = arguments.delete(:headers) || {}
|
45
|
+
|
46
|
+
body = arguments.delete(:body)
|
47
|
+
|
48
|
+
_model_id = arguments.delete(:model_id)
|
49
|
+
|
50
|
+
method = ElasticsearchServerless::API::HTTP_POST
|
51
|
+
path = if _model_id
|
52
|
+
"_ml/trained_models/#{Utils.listify(_model_id)}/deployment/_infer"
|
53
|
+
end
|
54
|
+
params = Utils.process_params(arguments)
|
55
|
+
|
56
|
+
ElasticsearchServerless::API::Response.new(
|
57
|
+
perform_request(method, path, params, body, headers)
|
58
|
+
)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -23,6 +23,13 @@ module ElasticsearchServerless
|
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
25
|
# Opens one or more anomaly detection jobs.
|
26
|
+
# An anomaly detection job must be opened in order for it to be ready to
|
27
|
+
# receive and analyze data. It can be opened and closed multiple times
|
28
|
+
# throughout its lifecycle.
|
29
|
+
# When you open a new job, it starts with an empty model.
|
30
|
+
# When you open an existing job, the most recent model state is automatically
|
31
|
+
# loaded. The job is ready to resume its analysis from where it left off, once
|
32
|
+
# new data is received.
|
26
33
|
#
|
27
34
|
# @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*)
|
28
35
|
# @option arguments [Time] :timeout Controls the time to wait until a job has opened. Server default: 30m.
|
@@ -22,7 +22,7 @@ module ElasticsearchServerless
|
|
22
22
|
module API
|
23
23
|
module MachineLearning
|
24
24
|
module Actions
|
25
|
-
#
|
25
|
+
# Adds scheduled events to a calendar.
|
26
26
|
#
|
27
27
|
# @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*)
|
28
28
|
# @option arguments [Hash] :headers Custom HTTP headers
|