class AWS::ELB::InstanceCollection
def health *instances
-
(Array
- Returns an array of hashes. Each hash represents)
Parameters:
-
instances
(String, EC2::Instance
) -- A list of instances to
def health *instances instance_ids = instance_ids(instances) opts = {} opts[:load_balancer_name] = load_balancer.name opts[:instances] = instance_ids unless instance_ids.empty? client.describe_instance_health(opts).instance_states.map do |state| { :instance => self[state.instance_id], :description => state.description, :state => state.state, :reason_code => state.reason_code, } end end