class Fog::Monitoring::Rackspace::Checks
Public Instance Methods
all()
click to toggle source
# File lib/rackspace-monitoring/monitoring/models/checks.rb, line 13 def all requires :entity data = service.list_checks(entity.identity).body['values'] load(data) end
create(attributes = {})
click to toggle source
Calls superclass method
# File lib/rackspace-monitoring/monitoring/models/checks.rb, line 32 def create(attributes = {}) requires :entity super({ :entity => entity }.merge!(attributes)) end
get(check_id)
click to toggle source
# File lib/rackspace-monitoring/monitoring/models/checks.rb, line 19 def get(check_id) requires :entity data = service.get_check(entity.identity, check_id).body new(data) rescue Fog::Monitoring::Rackspace::NotFound nil end
new(attributes = {})
click to toggle source
Calls superclass method
# File lib/rackspace-monitoring/monitoring/models/checks.rb, line 27 def new(attributes = {}) requires :entity super({ :entity => entity }.merge!(attributes)) end