def pool_health_monitor_create(request, **kwargs):
 body = {'health_monitor': {'type': kwargs['type'], 'delay': kwargs['delay'], 'timeout': kwargs['timeout'], 'max_retries': kwargs['max_retries'], 'http_method': kwargs['http_method'], 'url_path': kwargs['url_path'], 'expected_codes': kwargs['expected_codes'], 'admin_state_up': kwargs['admin_state_up']}}
 mon = quantumclient(request).create_health_monitor(body).get('health_monitor')
 body = {'health_monitor': {'id': mon['id']}}
 quantumclient(request).associate_health_monitor(kwargs['pool_id'], body)
 return PoolMonitor(mon)

def pool_health_monitor_create ( request , ** kwargs ) : body = { 'health_monitor' : { 'type' : kwargs [ 'type' ] , 'delay' : kwargs [ 'delay' ] , 'timeout' : kwargs [ 'timeout' ] , 'max_retries' : kwargs [ 'max_retries' ] , 'http_method' : kwargs [ 'http_method' ] , 'url_path' : kwargs [ 'url_path' ] , 'expected_codes' : kwargs [ 'expected_codes' ] , 'admin_state_up' : kwargs [ 'admin_state_up' ] } } mon = quantumclient ( request ) . create_health_monitor ( body ) . get ( 'health_monitor' ) body = { 'health_monitor' : { 'id' : mon [ 'id' ] } } quantumclient ( request ) . associate_health_monitor ( kwargs [ 'pool_id' ] , body ) return PoolMonitor ( mon )
create a health monitor and associate with pool .