def get_health_check(name, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 try:
  lb = conn.get_all_load_balancers(load_balancer_names=[name])
  lb = lb[0]
  ret = odict.OrderedDict()
  hc = lb.health_check
  ret['interval'] = hc.interval
  ret['target'] = hc.target
  ret['healthy_threshold'] = hc.healthy_threshold
  ret['timeout'] = hc.timeout
  ret['unhealthy_threshold'] = hc.unhealthy_threshold
  return ret
 except boto.exception.BotoServerError as error:
  log.debug(error)
  log.error('ELB {0} does not exist: {1}'.format(name, error))
  return {}

def get_health_check ( name , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : lb = conn . get_all_load_balancers ( load_balancer_names = [ name ] ) lb = lb [ 0 ] ret = odict . OrderedDict ( ) hc = lb . health_check ret [ 'interval' ] = hc . interval ret [ 'target' ] = hc . target ret [ 'healthy_threshold' ] = hc . healthy_threshold ret [ 'timeout' ] = hc . timeout ret [ 'unhealthy_threshold' ] = hc . unhealthy_threshold return ret except boto . exception . BotoServerError as error : log . debug ( error ) log . error ( 'ELB {0} does not exist: {1}' . format ( name , error ) ) return { }
get the health check configured for this elb .