Class: Fog::AWS::CloudWatch::Alarms

Inherits:
Collection
  • Object
show all
Defined in:
lib/rackspace-fog/aws/models/cloud_watch/alarms.rb

Instance Attribute Summary

Attributes inherited from Collection

#connection

Instance Method Summary collapse

Methods inherited from Collection

#clear, #create, #destroy, #initialize, #inspect, #load, model, #model, #new, #reload, #table, #to_json

Methods included from Fog::Attributes::ClassMethods

#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes

Methods included from Fog::Attributes::InstanceMethods

#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one

Constructor Details

This class inherits a constructor from Fog::Collection

Instance Method Details

#delete(alarm_names) ⇒ Object

alarm_names is an array of alarm names



12
13
14
15
# File 'lib/rackspace-fog/aws/models/cloud_watch/alarms.rb', line 12

def delete(alarm_names)
  connection.delete_alarms(alarm_names)
  true
end

#disable(alarm_names) ⇒ Object



17
18
19
20
# File 'lib/rackspace-fog/aws/models/cloud_watch/alarms.rb', line 17

def disable(alarm_names)
  connection.disable_alarm_actions(alarm_names)
  true
end

#enable(alarm_names) ⇒ Object



22
23
24
25
# File 'lib/rackspace-fog/aws/models/cloud_watch/alarms.rb', line 22

def enable(alarm_names)
  connection.enable_alarm_actions(alarm_names)
  true
end