lib/elb/right_elb_interface.rb
# Define an application healthcheck for the instances.
# Returns an updated health check configuration for the load balancer.
#
#  hc = elb.configure_health_check( 'test-kd1',
#                                   { :healthy_threshold => 9,
#                                     :unhealthy_threshold => 3,
#                                     :target => "TCP:433",
#                                     :timeout => 6,
#                                     :interval => 31}
#  pp hc #=> { :target=>"TCP:433", :timeout=>6, :interval=>31, :healthy_threshold=>9, :unhealthy_threshold=>3 }
#
Define an application healthcheck for the instances.
Returns an updated health check configuration for the load balancer.


Define an application healthcheck for the instances . Returns an updated health check configuration for the load balancer .
def configure_health_check(load_balancer_name, health_check)
      request_hash = { 'LoadBalancerName' => load_balancer_name }
      health_check.each{ |key, value| request_hash["HealthCheck.#{key.to_s.right_camelize}"] = value }
      link = generate_request("ConfigureHealthCheck", request_hash)
      request_info(link, HealthCheckParser.new(:logger => @logger))
    end
def configure_health_check ( load_balancer_name , health_check ) request_hash = { 'LoadBalancerName' => load_balancer_name } health_check . each { | key , value | request_hash [ "HealthCheck.#{key.to_s.right_camelize}" ] = value } link = generate_request ( "ConfigureHealthCheck" , request_hash ) request_info ( link , HealthCheckParser . new ( :logger => @logger ) ) end
Define an application healthcheck for the instances.
Define an application healthcheck for the instances .
load_balancer_name
<not_specific>
health_check
<not_specific>