Skip to content

Commit e5f4716

Browse files
committed
[API] Updates API
* machine_learning.start_trained_model_deployment - Adds `cache_size` (String) parameter, a byte-size value for configuring the inference cache size. For example, 20mb * mget - Adds `force_synthetic_source` (Boolean) parameter, Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index. * snapshot.get - Adds parameters: * `sort`(String) Allows setting a sort order for the result. Defaults to start_time (options: start_time, duration, name, repository, index_count, shard_count, failed_shard_count) * `size` (Integer) Maximum number of snapshots to return. Defaults to 0 which means return all that match without limit. * `order` (String) Sort order (options: asc, desc) * `from_sort_value` (String) Value of the current sort column at which to start retrieval. * `after` (String) Offset identifier to start pagination from as returned by the 'next' field in the response body. * `offset` (Integer) Numeric offset to start pagination based on the snapshots matching the request. Defaults to 0 * `slm_policy_filter` (String) Filter snapshots by a comma-separated list of SLM policy names that snapshots belong to. Accepts wildcards. Use the special pattern '_none' to match snapshots without an SLM policy
1 parent ff34ea9 commit e5f4716

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module Actions
2929
# support SLA of official GA features.
3030
#
3131
# @option arguments [String] :model_id The unique identifier of the trained model. (*Required*)
32+
# @option arguments [String] :cache_size A byte-size value for configuring the inference cache size. For example, 20mb.
3233
# @option arguments [Integer] :number_of_allocations The number of model allocations on each node where the model is deployed.
3334
# @option arguments [Integer] :threads_per_allocation The number of threads used by each model allocation during inference.
3435
# @option arguments [Integer] :queue_capacity Controls how many inference requests are allowed in the queue at a time.

elasticsearch-api/lib/elasticsearch/api/actions/mget.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module Actions
2424
# Allows to get multiple documents in one request.
2525
#
2626
# @option arguments [String] :index The name of the index
27+
# @option arguments [Boolean] :force_synthetic_source Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index.
2728
# @option arguments [List] :stored_fields A comma-separated list of stored fields to return in the response
2829
# @option arguments [String] :preference Specify the node or shard the operation should be performed on (default: random)
2930
# @option arguments [Boolean] :realtime Specify whether to perform the operation in realtime or search mode

elasticsearch-api/lib/elasticsearch/api/actions/snapshot/get.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ module Actions
3131
# @option arguments [Boolean] :index_names Whether to include the name of each index in the snapshot. Defaults to true.
3232
# @option arguments [Boolean] :index_details Whether to include details of each index in the snapshot, if those details are available. Defaults to false.
3333
# @option arguments [Boolean] :include_repository Whether to include the repository name in the snapshot info. Defaults to true.
34+
# @option arguments [String] :sort Allows setting a sort order for the result. Defaults to start_time (options: start_time, duration, name, repository, index_count, shard_count, failed_shard_count)
35+
# @option arguments [Integer] :size Maximum number of snapshots to return. Defaults to 0 which means return all that match without limit.
36+
# @option arguments [String] :order Sort order (options: asc, desc)
37+
# @option arguments [String] :from_sort_value Value of the current sort column at which to start retrieval.
38+
# @option arguments [String] :after Offset identifier to start pagination from as returned by the 'next' field in the response body.
39+
# @option arguments [Integer] :offset Numeric offset to start pagination based on the snapshots matching the request. Defaults to 0
40+
# @option arguments [String] :slm_policy_filter Filter snapshots by a comma-separated list of SLM policy names that snapshots belong to. Accepts wildcards. Use the special pattern '_none' to match snapshots without an SLM policy
3441
# @option arguments [Boolean] :verbose Whether to show verbose snapshot info or only show the basic info found in the repository index blob
3542
# @option arguments [Hash] :headers Custom HTTP headers
3643
#

0 commit comments

Comments
 (0)