Module: Elasticsearch::API::Autoscaling::Actions
- Included in:
- AutoscalingClient
- Defined in:
- lib/elasticsearch/api/namespace/autoscaling.rb,
lib/elasticsearch/api/actions/autoscaling/get_autoscaling_policy.rb,
lib/elasticsearch/api/actions/autoscaling/put_autoscaling_policy.rb,
lib/elasticsearch/api/actions/autoscaling/get_autoscaling_capacity.rb,
lib/elasticsearch/api/actions/autoscaling/delete_autoscaling_policy.rb
Instance Method Summary collapse
-
#delete_autoscaling_policy(arguments = {}) ⇒ Object
Deletes an autoscaling policy.
-
#get_autoscaling_capacity(arguments = {}) ⇒ Object
Gets the current autoscaling capacity based on the configured autoscaling policy.
-
#get_autoscaling_policy(arguments = {}) ⇒ Object
Retrieves an autoscaling policy.
-
#put_autoscaling_policy(arguments = {}) ⇒ Object
Creates a new autoscaling policy.
Instance Method Details
#delete_autoscaling_policy(arguments = {}) ⇒ Object
Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/elasticsearch/api/actions/autoscaling/delete_autoscaling_policy.rb', line 29 def delete_autoscaling_policy(arguments = {}) raise ArgumentError, "Required argument 'name' missing" unless arguments[:name] headers = arguments.delete(:headers) || {} body = nil arguments = arguments.clone _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_DELETE path = "_autoscaling/policy/#{Utils.__listify(_name)}" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
#get_autoscaling_capacity(arguments = {}) ⇒ Object
Gets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/elasticsearch/api/actions/autoscaling/get_autoscaling_capacity.rb', line 28 def get_autoscaling_capacity(arguments = {}) headers = arguments.delete(:headers) || {} body = nil arguments = arguments.clone method = Elasticsearch::API::HTTP_GET path = "_autoscaling/capacity" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
#get_autoscaling_policy(arguments = {}) ⇒ Object
Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/elasticsearch/api/actions/autoscaling/get_autoscaling_policy.rb', line 29 def get_autoscaling_policy(arguments = {}) raise ArgumentError, "Required argument 'name' missing" unless arguments[:name] headers = arguments.delete(:headers) || {} body = nil arguments = arguments.clone _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_GET path = "_autoscaling/policy/#{Utils.__listify(_name)}" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |
#put_autoscaling_policy(arguments = {}) ⇒ Object
Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/elasticsearch/api/actions/autoscaling/put_autoscaling_policy.rb', line 30 def put_autoscaling_policy(arguments = {}) raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] raise ArgumentError, "Required argument 'name' missing" unless arguments[:name] headers = arguments.delete(:headers) || {} body = arguments.delete(:body) arguments = arguments.clone _name = arguments.delete(:name) method = Elasticsearch::API::HTTP_PUT path = "_autoscaling/policy/#{Utils.__listify(_name)}" params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers) ) end |