# File lib/fog/rackspace/models/monitoring/checks.rb, line 13 def all requires :entity data = service.list_checks(entity.identity).body['values'] load(data) end
# File lib/fog/rackspace/models/monitoring/checks.rb, line 32 def create(attributes = {}) requires :entity unless attributes[:entity] super({ :entity => entity }.merge!(attributes)) end
# File lib/fog/rackspace/models/monitoring/checks.rb, line 19 def get(check_id) requires :entity data = service.get_check(entity.identity, check_id).body new(data) rescue Fog::Rackspace::Monitoring::NotFound nil end
# File lib/fog/rackspace/models/monitoring/checks.rb, line 27 def new(attributes = {}) requires :entity unless attributes[:entity] super({ :entity => entity }.merge!(attributes)) end