Current File : //usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/configurehealthcheck.pyo |
�
��Xc @ s] d d l m Z d d l m Z d d l m Z d d l m Z d e e f d � � YZ d S( i����( t
ELBRequest( t Arg( t
ArgumentError( t TabifyingMixint ConfigureHealthCheckc B s e Z d Z e d d d d d �e d d d d d d
e d e d d �e d
d d d d d
e d e d d �e d d d d d d d e d d �e d d d d d d
e d e d d �e d d d d d d
e d e d d �g Z d � Z d � Z d � Z RS( sE Configure health checking for instance registerd with a load balancert LoadBalancerNamet metavart ELBt helps. name of the load balancer to modify (required)s --healthy-thresholdt dests HealthCheck.HealthyThresholdt COUNTt typet requiredsm number of consecutive successful health checks that
will mark instances as Healthy (required)s
--intervals HealthCheck.Intervalt SECONDSs5 approximate interval between health checks (required)s -ts --targets HealthCheck.Targets PROTOCOL:PORT[/PATH]s. connection target for health checks (required)s --timeouts HealthCheck.Timeouts( maximum health check duration (required)s --unhealthy-thresholds HealthCheck.UnhealthyThresholdsk number of consecutive failed health checks that will
mark instances as Unhealthy (required)c C s� t j | � | j d } | j d � \ } } } | sG t d � � n | j � d k r} d | k r} t d j | � � � n d S( Ns HealthCheck.Targett :s9 argument -t/--target: must have form PROTOCOL:PORT[/PATH]t httpt httpst /s9 argument -t/--target: path is required for protocol '{0}'( R R ( R t configuret argst partitionR t lowert format( t selft targett protocolt _t rest( ( s` /usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/configurehealthcheck.pyR 8 s
c C s^ | j d } | j d d � d } | j � d k rZ | j | | j � d � | j d <n d S(
Ns HealthCheck.TargetR i i R R t sslt tcp( s https httpsR R ( R t splitR t replacet uppert params( R R R ( ( s` /usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/configurehealthcheck.pyt
preprocessC s
c C sc | j d i � } | j d | j d � | j d � | j d � | j d � | j d � f � GHd S( Nt HealthCheckt HEALTH_CHECKt Targett Intervalt Timeoutt HealthyThresholdt UnhealthyThreshold( t gett tabify( R t resultt check( ( s` /usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/configurehealthcheck.pyt print_resultK s
(
t __name__t
__module__t DESCRIPTIONR t intt Truet ARGSR R"