| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |