/usr/lib/python2.6/site-packages/boto/ec2/cloudwatch
NameSizeModeActions
alarm.py121920644editdlrm
alarm.pyc124840644editdlrm
alarm.pyo124840644editdlrm
datapoint.py16680644editdlrm
datapoint.pyc13120644editdlrm
datapoint.pyo13120644editdlrm
dimension.py15330644editdlrm
dimension.pyc9460644editdlrm
dimension.pyo9460644editdlrm
listelement.py13090644editdlrm
listelement.pyc8310644editdlrm
listelement.pyo8310644editdlrm
metric.py74910644editdlrm
metric.pyc63640644editdlrm
metric.pyo63640644editdlrm
__init__.py244420644editdlrm
__init__.pyc225010644editdlrm
__init__.pyo225010644editdlrm
Edit: /usr/lib/python2.6/site-packages/boto/ec2/cloudwatch/__init__.pyc (22501B)
P5Tc @sdZddklZlZlZlZddklZddkl Z ddk l Z l Z l Z ddklZddklZlZlZddkZeid hZd Zd Zd efd YZdS(sc This module provides an interface to the Elastic Compute Cloud (EC2) CloudWatch service from AWS. i(tjsontmaptsixtzip(tAWSQueryConnection(tMetric(t MetricAlarmt MetricAlarmstAlarmHistoryItem(t Datapoint(t RegionInfot get_regionst load_regionsNt cloudwatchcCstddtS(s Get all available regions for the CloudWatch service. :rtype: list :return: A list of :class:`boto.RegionInfo` instances R tconnection_cls(R tCloudWatchConnection(((s@/usr/lib/python2.6/site-packages/boto/ec2/cloudwatch/__init__.pytregions%scKs6x/tD]$}|i|jo|i|Sq WdS(sI Given a valid region name, return a :class:`boto.ec2.cloudwatch.CloudWatchConnection`. :param str region_name: The name of the region to connect to. :rtype: :class:`boto.ec2.CloudWatchConnection` or ``None`` :return: A connection to the given region, or None if an invalid region name is given N(RtnametconnecttNone(t region_namet kw_paramstregion((s@/usr/lib/python2.6/site-packages/boto/ec2/cloudwatch/__init__.pytconnect_to_region/s RcBs|eZeiidddZeiidddZeiidddZdde dddddddddde dd Z d Z d Z d Z dddddd ZdddZdddddZddddddZdddddddZdddddddZdddddZdZeZeZdZddZdZdZRS(tBototcloudwatch_versions 2010-08-01tcloudwatch_region_names us-east-1tcloudwatch_region_endpoints"monitoring.us-east-1.amazonaws.comit/cCs| pt||i|i} n| |_|iidjo t}ntt|i|||||||||ii | | | | d|d| dS(s Init method to create a new connection to EC2 Monitoring Service. B{Note:} The host argument is overridden by the host specified in the boto configuration file. s eu-west-1tvalidate_certst profile_nameN( R tDefaultRegionNametDefaultRegionEndpointRRtFalsetsuperRt__init__tendpoint(tselftaws_access_key_idtaws_secret_access_keyt is_securetporttproxyt proxy_portt proxy_usert proxy_passtdebugthttps_connection_factoryRtpathtsecurity_tokenRR((s@/usr/lib/python2.6/site-packages/boto/ec2/cloudwatch/__init__.pyR#Is      cCsdgS(Nshmac-v4((R%((s@/usr/lib/python2.6/site-packages/boto/ec2/cloudwatch/__init__.pyt_required_auth_capabilityhscCsd}d}x|D]}||}|oot|tio |g}nxn|D]@}||d||df<||d||df<|d7}qQWq||d||df<|d7}qWdS(NsDimensions.memberis %s.%d.Nameis %s.%d.Value(t isinstanceRt string_types(R%t dimensiontparamstprefixtitdim_namet dim_valuetvalue((s@/usr/lib/python2.6/site-packages/boto/ec2/cloudwatch/__init__.pytbuild_dimension_paramks  c Cst|tio |g}nxt|D]\}}|d}t|to]xhti|D]E\}}||||df<|dj o||||dfscsGt|to,t|jotdn|S|gS(Ns3Must specify equal number of elements; expected %d.(R3RIRJt Exception(RK(tlength(s@/usr/lib/python2.6/site-packages/boto/ec2/cloudwatch/__init__.pytaslists t MetricNamet TimestamptUnittmaximumsStatisticValues.MaximumtminimumsStatisticValues.Minimumt samplecountsStatisticValues.SampleCounttsumsStatisticValues.Sums*You supplied a value and statistics for a s(metric.Posting statistics and not value.R>s*Must specify a value or statistics to put.sMetricData.member.%d.%si( tmaxRR?Rt isoformatR<RtbototlogtwarnRMRRA(R%R6RR;t timestamptunitt dimensionst statisticstargsRORDtnRGtutdtsttt metric_datatmsgtkeytval((RNs@/usr/lib/python2.6/site-packages/boto/ec2/cloudwatch/__init__.pytbuild_put_paramss6     c Csh|d6|d6|d6|id6|id6} |i| |d|o|i|| n|o|| ds"