lib/elb/right_elb_interface.rb
# Describe the current state of the instances of the specified load balancer.
# Returns a list of the instances.
#
#  elb.describe_instance_health('test-kd1', 'i-8b8bcbe2', 'i-bf8bcbd6') #=>
#      [ { :description => "Instance registration is still in progress",
#          :reason_code => "ELB",
#          :instance_id => "i-8b8bcbe2",
#          :state       => "OutOfService" },
#        { :description => "Instance has failed at least the UnhealthyThreshold number of health checks consecutively.",
#          :reason_code => "Instance",
#          :instance_id => "i-bf8bcbd6",
#          :state       => "OutOfService" } ]
#
Describe the current state of the instances of the specified load balancer.
Returns a list of the instances.


Describe the current state of the instances of the specified load balancer . Returns a list of the instances .
def describe_instance_health(load_balancer_name, *instances)
      instances.flatten!
      request_hash = amazonize_list("Instances.member.?.InstanceId", instances)
      request_hash.merge!( 'LoadBalancerName' => load_balancer_name )
      link = generate_request("DescribeInstanceHealth", request_hash)
      request_info(link, DescribeInstanceHealthParser.new(:logger => @logger))
    end
def describe_instance_health ( load_balancer_name , * instances ) instances . flatten! request_hash = amazonize_list ( "Instances.member.?.InstanceId" , instances ) request_hash . merge! ( 'LoadBalancerName' => load_balancer_name ) link = generate_request ( "DescribeInstanceHealth" , request_hash ) request_info ( link , DescribeInstanceHealthParser . new ( :logger => @logger ) ) end
Describe the current state of the instances of the specified load balancer.
Describe the current state of the instances of the specified load balancer .
load_balancer_name
<not_specific>
instances
<not_specific>