Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: boto/ec2/cloudwatch/__init__.py

Issue 8669001: Pull in upstream boto from github at bcb719937de9ac2851e632d62b777352029a6d55 (Closed) Base URL: svn://svn.chromium.org/boto
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « boto/ec2/autoscale/__init__.py ('k') | boto/ec2/connection.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/ 1 # Copyright (c) 2006-2011 Mitch Garnaat http://garnaat.org/
2 # 2 #
3 # Permission is hereby granted, free of charge, to any person obtaining a 3 # Permission is hereby granted, free of charge, to any person obtaining a
4 # copy of this software and associated documentation files (the 4 # copy of this software and associated documentation files (the
5 # "Software"), to deal in the Software without restriction, including 5 # "Software"), to deal in the Software without restriction, including
6 # without limitation the rights to use, copy, modify, merge, publish, dis- 6 # without limitation the rights to use, copy, modify, merge, publish, dis-
7 # tribute, sublicense, and/or sell copies of the Software, and to permit 7 # tribute, sublicense, and/or sell copies of the Software, and to permit
8 # persons to whom the Software is furnished to do so, subject to the fol- 8 # persons to whom the Software is furnished to do so, subject to the fol-
9 # lowing conditions: 9 # lowing conditions:
10 # 10 #
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 from boto.connection import AWSQueryConnection 144 from boto.connection import AWSQueryConnection
145 from boto.ec2.cloudwatch.metric import Metric 145 from boto.ec2.cloudwatch.metric import Metric
146 from boto.ec2.cloudwatch.alarm import MetricAlarm, AlarmHistoryItem 146 from boto.ec2.cloudwatch.alarm import MetricAlarm, AlarmHistoryItem
147 from boto.ec2.cloudwatch.datapoint import Datapoint 147 from boto.ec2.cloudwatch.datapoint import Datapoint
148 from boto.regioninfo import RegionInfo 148 from boto.regioninfo import RegionInfo
149 import boto 149 import boto
150 150
151 RegionData = { 151 RegionData = {
152 'us-east-1' : 'monitoring.us-east-1.amazonaws.com', 152 'us-east-1' : 'monitoring.us-east-1.amazonaws.com',
153 'us-west-1' : 'monitoring.us-west-1.amazonaws.com', 153 'us-west-1' : 'monitoring.us-west-1.amazonaws.com',
154 'us-west-2' : 'monitoring.us-west-2.amazonaws.com',
154 'eu-west-1' : 'monitoring.eu-west-1.amazonaws.com', 155 'eu-west-1' : 'monitoring.eu-west-1.amazonaws.com',
155 'ap-northeast-1' : 'monitoring.ap-northeast-1.amazonaws.com', 156 'ap-northeast-1' : 'monitoring.ap-northeast-1.amazonaws.com',
156 'ap-southeast-1' : 'monitoring.ap-southeast-1.amazonaws.com'} 157 'ap-southeast-1' : 'monitoring.ap-southeast-1.amazonaws.com'}
157 158
158 def regions(): 159 def regions():
159 """ 160 """
160 Get all available regions for the CloudWatch service. 161 Get all available regions for the CloudWatch service.
161 162
162 :rtype: list 163 :rtype: list
163 :return: A list of :class:`boto.RegionInfo` instances 164 :return: A list of :class:`boto.RegionInfo` instances
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 """ 680 """
680 Disables actions for the specified alarms. 681 Disables actions for the specified alarms.
681 682
682 :type alarms: list 683 :type alarms: list
683 :param alarms: List of alarm names. 684 :param alarms: List of alarm names.
684 """ 685 """
685 params = {} 686 params = {}
686 self.build_list_params(params, alarm_names, 'AlarmNames.member.%s') 687 self.build_list_params(params, alarm_names, 'AlarmNames.member.%s')
687 return self.get_status('DisableAlarmActions', params) 688 return self.get_status('DisableAlarmActions', params)
688 689
OLDNEW
« no previous file with comments | « boto/ec2/autoscale/__init__.py ('k') | boto/ec2/connection.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698