lib/fog/aws/models/cloud_watch/alarm.rb in fog-maestrodev-1.7.0.20121114190951 vs lib/fog/aws/models/cloud_watch/alarm.rb in fog-maestrodev-1.8.0.20130109172219
- old
+ new
@@ -44,16 +44,16 @@
requires :threshold
options = Hash[self.class.aliases.map { |key, value| [key, send(value)] }]
options.delete_if { |key, value| value.nil? }
- connection.put_metric_alarm(options)
+ service.put_metric_alarm(options)
reload
end
def destroy
requires :id
- connection.delete_alarms(id)
+ service.delete_alarms(id)
end
end
end
end
end