Viewing File: /usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/configurehealthcheck.pyo


Xc@s]ddlmZddlmZddlmZddlmZdeefdYZdS(i(t
ELBRequest(tArg(t
ArgumentError(tTabifyingMixintConfigureHealthCheckcBseZdZedddddeddddd	d
ededded
ddddd
ededdedddddddeddedddddd
ededdeddddd	d
ededdgZdZdZdZ	RS(sEConfigure health checking for instance registerd with a load balancertLoadBalancerNametmetavartELBthelps.name of the load balancer to modify (required)s--healthy-thresholdtdestsHealthCheck.HealthyThresholdtCOUNTttypetrequiredsmnumber of consecutive successful health checks that
                will mark instances as Healthy (required)s
--intervalsHealthCheck.IntervaltSECONDSs5approximate interval between health checks (required)s-ts--targetsHealthCheck.TargetsPROTOCOL:PORT[/PATH]s.connection target for health checks (required)s	--timeoutsHealthCheck.Timeouts(maximum health check duration (required)s--unhealthy-thresholdsHealthCheck.UnhealthyThresholdsknumber of consecutive failed health checks that will
                mark instances as Unhealthy (required)cCstj||jd}|jd\}}}|sGtdn|jdkr}d|kr}tdj|ndS(	NsHealthCheck.Targett:s9argument -t/--target: must have form PROTOCOL:PORT[/PATH]thttpthttpst/s9argument -t/--target: path is required for protocol '{0}'(RR(Rt	configuretargst	partitionRtlowertformat(tselfttargettprotocolt_trest((s`/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/configurehealthcheck.pyR8s

	cCs^|jd}|jddd}|jd	krZ|j||jd|jd<ndS(
NsHealthCheck.TargetRiiRRtsslttcp(shttpshttpsRR(RtsplitRtreplacetuppertparams(RRR((s`/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/configurehealthcheck.pyt
preprocessCs

cCsc|jdi}|jd|jd|jd|jd|jd|jdfGHdS(NtHealthChecktHEALTH_CHECKtTargettIntervaltTimeouttHealthyThresholdtUnhealthyThreshold(tgetttabify(Rtresulttcheck((s`/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/configurehealthcheck.pytprint_resultKs
(
t__name__t
__module__tDESCRIPTIONRtinttTruetARGSRR"R.(((s`/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/configurehealthcheck.pyR s*		N(	t'euca2ools.commands.elasticloadbalancingRtrequestbuilderRtrequestbuilder.exceptionsRtrequestbuilder.mixinsRR(((s`/usr/lib/python2.7/site-packages/euca2ools/commands/elasticloadbalancing/configurehealthcheck.pyt<module>s
Back to Directory File Manager