Package yakumo :: Package neutron :: Package v2 :: Package lbaas :: Module health_monitor :: Class Manager
[hide private]
[frames] | no frames]

Class Manager

source code

  object --+    
           |    
base.Manager --+
               |
              Manager

Manager class for LBaaS Health Monitors in Networking V2 API

Nested Classes [hide private]
  resource_class
Resource class for LBaaS Health Monitors in Networking V2 API
Instance Methods [hide private]
yakumo.neutron.v2.lbaas.health_monitor.Resource
create(self, type='__UNDEF__', http_method='__UNDEF__', url_path='__UNDEF__', expected_codes='__UNDEF__', delay='__UNDEF__', timeout='__UNDEF__', max_retries='__UNDEF__', is_enabled='__UNDEF__')
Create a LB health monitor
source code

Inherited from base.Manager: __init__, find, find_one, get, get_empty, list

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  service_type = 'network'
  _attr_mapping = [('id', 'id', <yakumo.mapper.NoopClass object ...
  _json_resource_key = 'health_monitor'
  _json_resources_key = 'health_monitors'
  _url_resource_path = '/v2.0/lbaas/health_monitors'
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

create(self, type='__UNDEF__', http_method='__UNDEF__', url_path='__UNDEF__', expected_codes='__UNDEF__', delay='__UNDEF__', timeout='__UNDEF__', max_retries='__UNDEF__', is_enabled='__UNDEF__')

source code 

Create a LB health monitor

Parameters:
  • type (str) - Monitor type ('PING', 'TCP', 'HTTP', or 'HTTPS')
  • http_method (str) - HTTP method like 'GET'
  • url_path (str) - URL path like '/index.html'
  • expected_codes (str) - Expected HTTP response code list separated with comma
  • delay (int) - Seconds to start waiting a response
  • timeout (int) - Maximum seconds to wait a response
  • max_retries (int) - Number of allowed connection failures (up to 10)
  • is_enabled (bool) - Whether the Monitor is enabled
Returns: yakumo.neutron.v2.lbaas.health_monitor.Resource
Created monitor
Overrides: base.Manager.create

Class Variable Details [hide private]

_attr_mapping

Value:
[('id', 'id', <yakumo.mapper.NoopClass object at 0x7f133076f290>),
 ('pools', 'pools', <yakumo.mapper.List object at 0x7f1333c44350>),
 ('type', 'type', <yakumo.mapper.NoopClass object at 0x7f133076f290>),
 ('http_method',
  'http_method',
  <yakumo.mapper.NoopClass object at 0x7f133076f290>),
 ('url_path',
  'url_path',
...