elasticsearch-serverless 0.0.8.20231031.pre → 0.0.9.20231031.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/elasticsearch-serverless/api/eql/get.rb +1 -1
- data/lib/elasticsearch-serverless/api/eql/get_status.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/delete_index_template.rb +1 -1
- data/lib/elasticsearch-serverless/api/indices/put_index_template.rb +1 -1
- data/lib/elasticsearch-serverless/api/search_application/delete.rb +1 -1
- data/lib/elasticsearch-serverless/api/transform/delete_transform.rb +1 -0
- data/lib/elasticsearch-serverless/api.rb +1 -0
- data/lib/elasticsearch-serverless/version.rb +3 -3
- data/lib/elasticsearch-serverless.rb +3 -4
- metadata +2 -73
- data/lib/elasticsearch-serverless/api/indices/delete_data_lifecycle.rb +0 -56
- data/lib/elasticsearch-serverless/api/indices/exists_index_template.rb +0 -56
- data/lib/elasticsearch-serverless/api/indices/explain_data_lifecycle.rb +0 -55
- data/lib/elasticsearch-serverless/api/indices/get_data_lifecycle.rb +0 -55
- data/lib/elasticsearch-serverless/api/indices/get_index_template.rb +0 -59
- data/lib/elasticsearch-serverless/api/indices/get_mapping.rb +0 -60
- data/lib/elasticsearch-serverless/api/indices/get_settings.rb +0 -69
- data/lib/elasticsearch-serverless/api/indices/migrate_to_data_stream.rb +0 -53
- data/lib/elasticsearch-serverless/api/indices/modify_data_stream.rb +0 -51
- data/lib/elasticsearch-serverless/api/indices/put_data_lifecycle.rb +0 -57
- data/lib/elasticsearch-serverless/api/indices/put_mapping.rb +0 -61
- data/lib/elasticsearch-serverless/api/indices/put_settings.rb +0 -65
- data/lib/elasticsearch-serverless/api/indices/put_template.rb +0 -60
- data/lib/elasticsearch-serverless/api/indices/resolve_index.rb +0 -54
- data/lib/elasticsearch-serverless/api/indices/rollover.rb +0 -66
- data/lib/elasticsearch-serverless/api/indices/simulate_index_template.rb +0 -57
- data/lib/elasticsearch-serverless/api/indices/simulate_template.rb +0 -59
- data/lib/elasticsearch-serverless/api/machine_learning/close_job.rb +0 -57
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar.rb +0 -53
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar_event.rb +0 -57
- data/lib/elasticsearch-serverless/api/machine_learning/delete_calendar_job.rb +0 -57
- data/lib/elasticsearch-serverless/api/machine_learning/delete_data_frame_analytics.rb +0 -55
- data/lib/elasticsearch-serverless/api/machine_learning/delete_datafeed.rb +0 -54
- data/lib/elasticsearch-serverless/api/machine_learning/delete_filter.rb +0 -53
- data/lib/elasticsearch-serverless/api/machine_learning/delete_job.rb +0 -56
- data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model.rb +0 -54
- data/lib/elasticsearch-serverless/api/machine_learning/delete_trained_model_alias.rb +0 -57
- data/lib/elasticsearch-serverless/api/machine_learning/estimate_model_memory.rb +0 -51
- data/lib/elasticsearch-serverless/api/machine_learning/evaluate_data_frame.rb +0 -51
- data/lib/elasticsearch-serverless/api/machine_learning/flush_job.rb +0 -59
- data/lib/elasticsearch-serverless/api/machine_learning/get_calendar_events.rb +0 -58
- data/lib/elasticsearch-serverless/api/machine_learning/get_calendars.rb +0 -63
- data/lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics.rb +0 -59
- data/lib/elasticsearch-serverless/api/machine_learning/get_data_frame_analytics_stats.rb +0 -59
- data/lib/elasticsearch-serverless/api/machine_learning/get_datafeed_stats.rb +0 -56
- data/lib/elasticsearch-serverless/api/machine_learning/get_datafeeds.rb +0 -57
- data/lib/elasticsearch-serverless/api/machine_learning/get_filters.rb +0 -57
- data/lib/elasticsearch-serverless/api/machine_learning/get_job_stats.rb +0 -56
- data/lib/elasticsearch-serverless/api/machine_learning/get_jobs.rb +0 -57
- data/lib/elasticsearch-serverless/api/machine_learning/get_overall_buckets.rb +0 -66
- data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models.rb +0 -62
- data/lib/elasticsearch-serverless/api/machine_learning/get_trained_models_stats.rb +0 -58
- data/lib/elasticsearch-serverless/api/machine_learning/infer_trained_model.rb +0 -63
- data/lib/elasticsearch-serverless/api/machine_learning/open_job.rb +0 -55
- data/lib/elasticsearch-serverless/api/machine_learning/post_calendar_events.rb +0 -55
- data/lib/elasticsearch-serverless/api/machine_learning/preview_data_frame_analytics.rb +0 -61
- data/lib/elasticsearch-serverless/api/machine_learning/preview_datafeed.rb +0 -63
- data/lib/elasticsearch-serverless/api/machine_learning/put_calendar.rb +0 -54
- data/lib/elasticsearch-serverless/api/machine_learning/put_calendar_job.rb +0 -57
- data/lib/elasticsearch-serverless/api/machine_learning/put_data_frame_analytics.rb +0 -55
- data/lib/elasticsearch-serverless/api/machine_learning/put_datafeed.rb +0 -59
- data/lib/elasticsearch-serverless/api/machine_learning/put_filter.rb +0 -55
- data/lib/elasticsearch-serverless/api/machine_learning/put_job.rb +0 -55
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model.rb +0 -56
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_alias.rb +0 -58
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_definition_part.rb +0 -59
- data/lib/elasticsearch-serverless/api/machine_learning/put_trained_model_vocabulary.rb +0 -55
- data/lib/elasticsearch-serverless/api/machine_learning/reset_job.rb +0 -55
- data/lib/elasticsearch-serverless/api/machine_learning/start_data_frame_analytics.rb +0 -54
- data/lib/elasticsearch-serverless/api/machine_learning/start_datafeed.rb +0 -57
- data/lib/elasticsearch-serverless/api/machine_learning/start_trained_model_deployment.rb +0 -60
- data/lib/elasticsearch-serverless/api/machine_learning/stop_data_frame_analytics.rb +0 -56
- data/lib/elasticsearch-serverless/api/machine_learning/stop_datafeed.rb +0 -57
- data/lib/elasticsearch-serverless/api/machine_learning/stop_trained_model_deployment.rb +0 -55
- data/lib/elasticsearch-serverless/api/machine_learning/update_data_frame_analytics.rb +0 -55
- data/lib/elasticsearch-serverless/api/machine_learning/update_datafeed.rb +0 -59
- data/lib/elasticsearch-serverless/api/machine_learning/update_filter.rb +0 -55
- data/lib/elasticsearch-serverless/api/machine_learning/update_job.rb +0 -55
- data/lib/elasticsearch-serverless/api/rank_eval.rb +0 -60
- data/lib/elasticsearch-serverless/api/security/update_api_key.rb +0 -54
- data/lib/elasticsearch-serverless/api/tasks/get.rb +0 -57
@@ -1,62 +0,0 @@
|
|
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
|
-
# Retrieves configuration information for a trained inference model.
|
26
|
-
#
|
27
|
-
# @option arguments [String] :model_id The unique identifier of the trained model.
|
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
|
-
# @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
|
-
# @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.
|
31
|
-
# @option arguments [Integer] :from Skips the specified number of models. Server default: 0.
|
32
|
-
# @option arguments [String] :include A comma delimited string of optional fields to include in the response body.
|
33
|
-
# @option arguments [Integer] :size Specifies the maximum number of models to obtain. Server default: 100.
|
34
|
-
# @option arguments [String] :tags A comma delimited string of tags. A trained model can have many tags, or none. When supplied, only trained models that contain all the supplied tags are returned.
|
35
|
-
# @option arguments [Hash] :headers Custom HTTP headers
|
36
|
-
#
|
37
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models.html
|
38
|
-
#
|
39
|
-
def get_trained_models(arguments = {})
|
40
|
-
arguments = arguments.clone
|
41
|
-
headers = arguments.delete(:headers) || {}
|
42
|
-
|
43
|
-
body = nil
|
44
|
-
|
45
|
-
_model_id = arguments.delete(:model_id)
|
46
|
-
|
47
|
-
method = ElasticsearchServerless::API::HTTP_GET
|
48
|
-
path = if _model_id
|
49
|
-
"_ml/trained_models/#{Utils.listify(_model_id)}"
|
50
|
-
else
|
51
|
-
"_ml/trained_models"
|
52
|
-
end
|
53
|
-
params = Utils.process_params(arguments)
|
54
|
-
|
55
|
-
ElasticsearchServerless::API::Response.new(
|
56
|
-
perform_request(method, path, params, body, headers)
|
57
|
-
)
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
@@ -1,58 +0,0 @@
|
|
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
|
-
# Retrieves usage information for trained inference models.
|
26
|
-
#
|
27
|
-
# @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
|
-
# @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
|
-
# @option arguments [Integer] :from Skips the specified number of models. Server default: 0.
|
30
|
-
# @option arguments [Integer] :size Specifies the maximum number of models to obtain. Server default: 100.
|
31
|
-
# @option arguments [Hash] :headers Custom HTTP headers
|
32
|
-
#
|
33
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models-stats.html
|
34
|
-
#
|
35
|
-
def get_trained_models_stats(arguments = {})
|
36
|
-
arguments = arguments.clone
|
37
|
-
headers = arguments.delete(:headers) || {}
|
38
|
-
|
39
|
-
body = nil
|
40
|
-
|
41
|
-
_model_id = arguments.delete(:model_id)
|
42
|
-
|
43
|
-
method = ElasticsearchServerless::API::HTTP_GET
|
44
|
-
path = if _model_id
|
45
|
-
"_ml/trained_models/#{Utils.listify(_model_id)}/_stats"
|
46
|
-
else
|
47
|
-
"_ml/trained_models/_stats"
|
48
|
-
end
|
49
|
-
params = Utils.process_params(arguments)
|
50
|
-
|
51
|
-
ElasticsearchServerless::API::Response.new(
|
52
|
-
perform_request(method, path, params, body, headers)
|
53
|
-
)
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
@@ -1,63 +0,0 @@
|
|
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
|
-
# Evaluate 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
|
@@ -1,55 +0,0 @@
|
|
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
|
-
# Opens one or more anomaly detection jobs.
|
26
|
-
#
|
27
|
-
# @option arguments [String] :job_id Identifier for the anomaly detection job. (*Required*)
|
28
|
-
# @option arguments [Time] :timeout Controls the time to wait until a job has opened. Server default: 30m.
|
29
|
-
# @option arguments [Hash] :headers Custom HTTP headers
|
30
|
-
# @option arguments [Hash] :body request body
|
31
|
-
#
|
32
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html
|
33
|
-
#
|
34
|
-
def open_job(arguments = {})
|
35
|
-
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
|
36
|
-
|
37
|
-
arguments = arguments.clone
|
38
|
-
headers = arguments.delete(:headers) || {}
|
39
|
-
|
40
|
-
body = arguments.delete(:body)
|
41
|
-
|
42
|
-
_job_id = arguments.delete(:job_id)
|
43
|
-
|
44
|
-
method = ElasticsearchServerless::API::HTTP_POST
|
45
|
-
path = "_ml/anomaly_detectors/#{Utils.listify(_job_id)}/_open"
|
46
|
-
params = Utils.process_params(arguments)
|
47
|
-
|
48
|
-
ElasticsearchServerless::API::Response.new(
|
49
|
-
perform_request(method, path, params, body, headers)
|
50
|
-
)
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
@@ -1,55 +0,0 @@
|
|
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
|
-
# Posts scheduled events in a calendar.
|
26
|
-
#
|
27
|
-
# @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*)
|
28
|
-
# @option arguments [Hash] :headers Custom HTTP headers
|
29
|
-
# @option arguments [Hash] :body request body
|
30
|
-
#
|
31
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-calendar-event.html
|
32
|
-
#
|
33
|
-
def post_calendar_events(arguments = {})
|
34
|
-
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
35
|
-
raise ArgumentError, "Required argument 'calendar_id' missing" unless arguments[:calendar_id]
|
36
|
-
|
37
|
-
arguments = arguments.clone
|
38
|
-
headers = arguments.delete(:headers) || {}
|
39
|
-
|
40
|
-
body = arguments.delete(:body)
|
41
|
-
|
42
|
-
_calendar_id = arguments.delete(:calendar_id)
|
43
|
-
|
44
|
-
method = ElasticsearchServerless::API::HTTP_POST
|
45
|
-
path = "_ml/calendars/#{Utils.listify(_calendar_id)}/events"
|
46
|
-
params = {}
|
47
|
-
|
48
|
-
ElasticsearchServerless::API::Response.new(
|
49
|
-
perform_request(method, path, params, body, headers)
|
50
|
-
)
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
@@ -1,61 +0,0 @@
|
|
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
|
-
# Previews that will be analyzed given a data frame analytics config.
|
26
|
-
#
|
27
|
-
# @option arguments [String] :id Identifier for the data frame analytics job.
|
28
|
-
# @option arguments [Hash] :headers Custom HTTP headers
|
29
|
-
# @option arguments [Hash] :body request body
|
30
|
-
#
|
31
|
-
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/preview-dfanalytics.html
|
32
|
-
#
|
33
|
-
def preview_data_frame_analytics(arguments = {})
|
34
|
-
arguments = arguments.clone
|
35
|
-
headers = arguments.delete(:headers) || {}
|
36
|
-
|
37
|
-
body = arguments.delete(:body)
|
38
|
-
|
39
|
-
_id = arguments.delete(:id)
|
40
|
-
|
41
|
-
method = if body
|
42
|
-
ElasticsearchServerless::API::HTTP_POST
|
43
|
-
else
|
44
|
-
ElasticsearchServerless::API::HTTP_GET
|
45
|
-
end
|
46
|
-
|
47
|
-
path = if _id
|
48
|
-
"_ml/data_frame/analytics/#{Utils.listify(_id)}/_preview"
|
49
|
-
else
|
50
|
-
"_ml/data_frame/analytics/_preview"
|
51
|
-
end
|
52
|
-
params = {}
|
53
|
-
|
54
|
-
ElasticsearchServerless::API::Response.new(
|
55
|
-
perform_request(method, path, params, body, headers)
|
56
|
-
)
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
@@ -1,63 +0,0 @@
|
|
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
|
-
# Previews a datafeed.
|
26
|
-
#
|
27
|
-
# @option arguments [String] :datafeed_id A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. NOTE: If you use this path parameter, you cannot provide datafeed or anomaly detection job configuration details in the request body.
|
28
|
-
# @option arguments [String, Time] :start The start time from where the datafeed preview should begin
|
29
|
-
# @option arguments [String, Time] :end The end time when the datafeed preview should stop
|
30
|
-
# @option arguments [Hash] :headers Custom HTTP headers
|
31
|
-
# @option arguments [Hash] :body request body
|
32
|
-
#
|
33
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html
|
34
|
-
#
|
35
|
-
def preview_datafeed(arguments = {})
|
36
|
-
arguments = arguments.clone
|
37
|
-
headers = arguments.delete(:headers) || {}
|
38
|
-
|
39
|
-
body = arguments.delete(:body)
|
40
|
-
|
41
|
-
_datafeed_id = arguments.delete(:datafeed_id)
|
42
|
-
|
43
|
-
method = if body
|
44
|
-
ElasticsearchServerless::API::HTTP_POST
|
45
|
-
else
|
46
|
-
ElasticsearchServerless::API::HTTP_GET
|
47
|
-
end
|
48
|
-
|
49
|
-
path = if _datafeed_id
|
50
|
-
"_ml/datafeeds/#{Utils.listify(_datafeed_id)}/_preview"
|
51
|
-
else
|
52
|
-
"_ml/datafeeds/_preview"
|
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
|
@@ -1,54 +0,0 @@
|
|
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
|
-
# Instantiates a calendar.
|
26
|
-
#
|
27
|
-
# @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*)
|
28
|
-
# @option arguments [Hash] :headers Custom HTTP headers
|
29
|
-
# @option arguments [Hash] :body request body
|
30
|
-
#
|
31
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar.html
|
32
|
-
#
|
33
|
-
def put_calendar(arguments = {})
|
34
|
-
raise ArgumentError, "Required argument 'calendar_id' missing" unless arguments[:calendar_id]
|
35
|
-
|
36
|
-
arguments = arguments.clone
|
37
|
-
headers = arguments.delete(:headers) || {}
|
38
|
-
|
39
|
-
body = arguments.delete(:body)
|
40
|
-
|
41
|
-
_calendar_id = arguments.delete(:calendar_id)
|
42
|
-
|
43
|
-
method = ElasticsearchServerless::API::HTTP_PUT
|
44
|
-
path = "_ml/calendars/#{Utils.listify(_calendar_id)}"
|
45
|
-
params = {}
|
46
|
-
|
47
|
-
ElasticsearchServerless::API::Response.new(
|
48
|
-
perform_request(method, path, params, body, headers)
|
49
|
-
)
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
@@ -1,57 +0,0 @@
|
|
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
|
-
# Adds an anomaly detection job to a calendar.
|
26
|
-
#
|
27
|
-
# @option arguments [String] :calendar_id A string that uniquely identifies a calendar. (*Required*)
|
28
|
-
# @option arguments [String] :job_id An identifier for the anomaly detection jobs. It can be a job identifier, a group name, or a comma-separated list of jobs or groups. (*Required*)
|
29
|
-
# @option arguments [Hash] :headers Custom HTTP headers
|
30
|
-
#
|
31
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar-job.html
|
32
|
-
#
|
33
|
-
def put_calendar_job(arguments = {})
|
34
|
-
raise ArgumentError, "Required argument 'calendar_id' missing" unless arguments[:calendar_id]
|
35
|
-
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
|
36
|
-
|
37
|
-
arguments = arguments.clone
|
38
|
-
headers = arguments.delete(:headers) || {}
|
39
|
-
|
40
|
-
body = nil
|
41
|
-
|
42
|
-
_calendar_id = arguments.delete(:calendar_id)
|
43
|
-
|
44
|
-
_job_id = arguments.delete(:job_id)
|
45
|
-
|
46
|
-
method = ElasticsearchServerless::API::HTTP_PUT
|
47
|
-
path = "_ml/calendars/#{Utils.listify(_calendar_id)}/jobs/#{Utils.listify(_job_id)}"
|
48
|
-
params = {}
|
49
|
-
|
50
|
-
ElasticsearchServerless::API::Response.new(
|
51
|
-
perform_request(method, path, params, body, headers)
|
52
|
-
)
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
@@ -1,55 +0,0 @@
|
|
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
|
-
# Instantiates a data frame analytics job.
|
26
|
-
#
|
27
|
-
# @option arguments [String] :id Identifier for the data frame analytics job. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. (*Required*)
|
28
|
-
# @option arguments [Hash] :headers Custom HTTP headers
|
29
|
-
# @option arguments [Hash] :body request body
|
30
|
-
#
|
31
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/put-dfanalytics.html
|
32
|
-
#
|
33
|
-
def put_data_frame_analytics(arguments = {})
|
34
|
-
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
35
|
-
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
|
36
|
-
|
37
|
-
arguments = arguments.clone
|
38
|
-
headers = arguments.delete(:headers) || {}
|
39
|
-
|
40
|
-
body = arguments.delete(:body)
|
41
|
-
|
42
|
-
_id = arguments.delete(:id)
|
43
|
-
|
44
|
-
method = ElasticsearchServerless::API::HTTP_PUT
|
45
|
-
path = "_ml/data_frame/analytics/#{Utils.listify(_id)}"
|
46
|
-
params = {}
|
47
|
-
|
48
|
-
ElasticsearchServerless::API::Response.new(
|
49
|
-
perform_request(method, path, params, body, headers)
|
50
|
-
)
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
@@ -1,59 +0,0 @@
|
|
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
|
-
# Instantiates a datafeed.
|
26
|
-
#
|
27
|
-
# @option arguments [String] :datafeed_id A numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. (*Required*)
|
28
|
-
# @option arguments [Boolean] :allow_no_indices If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the +_all+ string or when no indices are specified. Server default: true.
|
29
|
-
# @option arguments [String, Array<String>] :expand_wildcards Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams. Supports comma-separated values. Server default: open.
|
30
|
-
# @option arguments [Boolean] :ignore_throttled If true, concrete, expanded, or aliased indices are ignored when frozen. Server default: true.
|
31
|
-
# @option arguments [Boolean] :ignore_unavailable If true, unavailable indices (missing or closed) are ignored.
|
32
|
-
# @option arguments [Hash] :headers Custom HTTP headers
|
33
|
-
# @option arguments [Hash] :body request body
|
34
|
-
#
|
35
|
-
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html
|
36
|
-
#
|
37
|
-
def put_datafeed(arguments = {})
|
38
|
-
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
|
39
|
-
raise ArgumentError, "Required argument 'datafeed_id' missing" unless arguments[:datafeed_id]
|
40
|
-
|
41
|
-
arguments = arguments.clone
|
42
|
-
headers = arguments.delete(:headers) || {}
|
43
|
-
|
44
|
-
body = arguments.delete(:body)
|
45
|
-
|
46
|
-
_datafeed_id = arguments.delete(:datafeed_id)
|
47
|
-
|
48
|
-
method = ElasticsearchServerless::API::HTTP_PUT
|
49
|
-
path = "_ml/datafeeds/#{Utils.listify(_datafeed_id)}"
|
50
|
-
params = Utils.process_params(arguments)
|
51
|
-
|
52
|
-
ElasticsearchServerless::API::Response.new(
|
53
|
-
perform_request(method, path, params, body, headers)
|
54
|
-
)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|