ó ¡ôXc@sZddlmZddlmZddlmZddlmZdefd„ƒYZdS(iÿÿÿÿ(tdelimited_list(tCloudWatchRequest(tcloudwatch_dimension(tArgtPutMetricAlarmcBseZdZedddddƒedddd dJdeddƒeddddedddeddƒeddddddeddƒeddddddeddƒeddddddededd ƒed!dd"ded dKdd(ƒed)dd*dd+dededd,ƒed-dd.d dLdd1ƒed2dd3dd4ded5ƒdd6ƒed7dd8dd9dd:ƒed;d<dd=dd>ded5d?eƒdd@ƒedAdd4ddBded5ƒddCƒedDddEdd4ded5ƒddFƒedGddHddIƒgZ RS(MsCreate or update an alarmt AlarmNametmetavartALARMthelpsname of the alarm (required)s--comparison-operatortdesttComparisonOperatortchoicestGreaterThanOrEqualToThresholdtGreaterThanThresholdtLessThanThresholdtLessThanOrEqualToThresholdtrequiredsharithmetic operator with which the comparison with the threshold will be made (required)s--evaluation-periodstEvaluationPeriodsttypetCOUNTsnumber of consecutive periods for which the value of the metric needs to be compared to the threshold (required)s --metric-namet MetricNametMETRICs1name for the alarm's associated metric (required)s --namespacet Namespacet NAMESPACEs6namespace for the alarm's associated metric (required)s--periodtPeriodtSECONDSsOperiod over which the specified statistic is applied (required)s --statistict StatistictAveragetMaximumtMinimumt SampleCounttSums&statistic on which to alarm (required)s --thresholdt ThresholdtFLOATs1value to compare the statistic against (required)s--actions-enabledtActionsEnabledttruetfalsesUwhether this alarm's actions should be executed when it changes states--alarm-actionssAlarmActions.members ARN1,ARN2,...t,sZARNs of SNS topics to publish to when the alarm changes to the ALARM states--alarm-descriptiontAlarmDescriptiont DESCRIPTIONsdescription of the alarms-ds --dimensionssDimensions.membersKEY1=VALUE1,KEY2=VALUE2,...t item_types,dimensions for the alarm's associated metrics--insufficient-data-actionssInsufficientDataActions.membersfARNs of SNS topics to publish to when the alarm changes to the INSUFFICIENT_DATA states --ok-actionssOKActions.membersWARNs of SNS topics to publish to when the alarm changes to the OK states--unittUnits&unit for the alarm's associated metric(R R RR(RRRRR(R#R$( t__name__t __module__R'RtTruetinttfloatRRtARGS(((sP/usr/lib/python2.7/site-packages/euca2ools/commands/monitoring/putmetricalarm.pyR s`    N( teuca2ools.commands.argtypesRteuca2ools.commands.monitoringRt&euca2ools.commands.monitoring.argtypesRtrequestbuilderRR(((sP/usr/lib/python2.7/site-packages/euca2ools/commands/monitoring/putmetricalarm.pyts