# File lib/fog/aws/models/cloud_watch/alarms.rb, line 11 def all data = [] next_token = nil loop do body = service.describe_alarms('NextToken' => next_token).body data += body['DescribeAlarmsResult']['MetricAlarms'] next_token = body['ResponseMetadata']['NextToken'] break if next_token.nil? end load(data) end
alarm_names is an array of alarm names
# File lib/fog/aws/models/cloud_watch/alarms.rb, line 29 def delete(alarm_names) service.delete_alarms(alarm_names) true end
# File lib/fog/aws/models/cloud_watch/alarms.rb, line 34 def disable(alarm_names) service.disable_alarm_actions(alarm_names) true end
Generated with the Darkfish Rdoc Generator 2.