Class ElasticsearchAutoscalingClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchAutoscalingClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionDelete an autoscaling policy.deleteAutoscalingPolicy
(Function<DeleteAutoscalingPolicyRequest.Builder, ObjectBuilder<DeleteAutoscalingPolicyRequest>> fn) Delete an autoscaling policy.Get the autoscaling capacity.Get the autoscaling capacity.getAutoscalingCapacity
(Function<GetAutoscalingCapacityRequest.Builder, ObjectBuilder<GetAutoscalingCapacityRequest>> fn) Get the autoscaling capacity.Get an autoscaling policy.getAutoscalingPolicy
(Function<GetAutoscalingPolicyRequest.Builder, ObjectBuilder<GetAutoscalingPolicyRequest>> fn) Get an autoscaling policy.Create or update an autoscaling policy.putAutoscalingPolicy
(Function<PutAutoscalingPolicyRequest.Builder, ObjectBuilder<PutAutoscalingPolicyRequest>> fn) Create or update an autoscaling policy.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchAutoscalingClient
-
ElasticsearchAutoscalingClient
public ElasticsearchAutoscalingClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchAutoscalingClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchAutoscalingClient>
-
deleteAutoscalingPolicy
public DeleteAutoscalingPolicyResponse deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request) throws IOException, ElasticsearchException Delete an autoscaling policy.NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.
- Throws:
IOException
ElasticsearchException
- See Also:
-
deleteAutoscalingPolicy
public final DeleteAutoscalingPolicyResponse deleteAutoscalingPolicy(Function<DeleteAutoscalingPolicyRequest.Builder, ObjectBuilder<DeleteAutoscalingPolicyRequest>> fn) throws IOException, ElasticsearchExceptionDelete an autoscaling policy.NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.
- Parameters:
fn
- a function that initializes a builder to create theDeleteAutoscalingPolicyRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getAutoscalingCapacity
public GetAutoscalingCapacityResponse getAutoscalingCapacity(GetAutoscalingCapacityRequest request) throws IOException, ElasticsearchException Get the autoscaling capacity.NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.
This API gets the current autoscaling capacity based on the configured autoscaling policy. It will return information to size the cluster appropriately to the current workload.
The
required_capacity
is calculated as the maximum of therequired_capacity
result of all individual deciders that are enabled for the policy.The operator should verify that the
current_nodes
match the operator’s knowledge of the cluster to avoid making autoscaling decisions based on stale or incomplete information.The response contains decider-specific information you can use to diagnose how and why autoscaling determined a certain capacity was required. This information is provided for diagnosis only. Do not use this information to make autoscaling decisions.
- Throws:
IOException
ElasticsearchException
- See Also:
-
getAutoscalingCapacity
public final GetAutoscalingCapacityResponse getAutoscalingCapacity(Function<GetAutoscalingCapacityRequest.Builder, ObjectBuilder<GetAutoscalingCapacityRequest>> fn) throws IOException, ElasticsearchExceptionGet the autoscaling capacity.NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.
This API gets the current autoscaling capacity based on the configured autoscaling policy. It will return information to size the cluster appropriately to the current workload.
The
required_capacity
is calculated as the maximum of therequired_capacity
result of all individual deciders that are enabled for the policy.The operator should verify that the
current_nodes
match the operator’s knowledge of the cluster to avoid making autoscaling decisions based on stale or incomplete information.The response contains decider-specific information you can use to diagnose how and why autoscaling determined a certain capacity was required. This information is provided for diagnosis only. Do not use this information to make autoscaling decisions.
- Parameters:
fn
- a function that initializes a builder to create theGetAutoscalingCapacityRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getAutoscalingCapacity
public GetAutoscalingCapacityResponse getAutoscalingCapacity() throws IOException, ElasticsearchExceptionGet the autoscaling capacity.NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.
This API gets the current autoscaling capacity based on the configured autoscaling policy. It will return information to size the cluster appropriately to the current workload.
The
required_capacity
is calculated as the maximum of therequired_capacity
result of all individual deciders that are enabled for the policy.The operator should verify that the
current_nodes
match the operator’s knowledge of the cluster to avoid making autoscaling decisions based on stale or incomplete information.The response contains decider-specific information you can use to diagnose how and why autoscaling determined a certain capacity was required. This information is provided for diagnosis only. Do not use this information to make autoscaling decisions.
- Throws:
IOException
ElasticsearchException
- See Also:
-
getAutoscalingPolicy
public GetAutoscalingPolicyResponse getAutoscalingPolicy(GetAutoscalingPolicyRequest request) throws IOException, ElasticsearchException Get an autoscaling policy.NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.
- Throws:
IOException
ElasticsearchException
- See Also:
-
getAutoscalingPolicy
public final GetAutoscalingPolicyResponse getAutoscalingPolicy(Function<GetAutoscalingPolicyRequest.Builder, ObjectBuilder<GetAutoscalingPolicyRequest>> fn) throws IOException, ElasticsearchExceptionGet an autoscaling policy.NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.
- Parameters:
fn
- a function that initializes a builder to create theGetAutoscalingPolicyRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
putAutoscalingPolicy
public PutAutoscalingPolicyResponse putAutoscalingPolicy(PutAutoscalingPolicyRequest request) throws IOException, ElasticsearchException Create or update an autoscaling policy.NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.
- Throws:
IOException
ElasticsearchException
- See Also:
-
putAutoscalingPolicy
public final PutAutoscalingPolicyResponse putAutoscalingPolicy(Function<PutAutoscalingPolicyRequest.Builder, ObjectBuilder<PutAutoscalingPolicyRequest>> fn) throws IOException, ElasticsearchExceptionCreate or update an autoscaling policy.NOTE: This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.
- Parameters:
fn
- a function that initializes a builder to create thePutAutoscalingPolicyRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-