class Fog::Rackspace::Monitoring::Metrics

Public Instance Methods

all() click to toggle source
# File lib/fog/rackspace/models/monitoring/metrics.rb, line 12
def all
  requires :check
  data = service.list_metrics(check.entity.id, check.id).body['values']
  load(data)
end
new(attributes = {}) click to toggle source
Calls superclass method
# File lib/fog/rackspace/models/monitoring/metrics.rb, line 18
def new(attributes = {})
  requires :check
  super({ :check => check }.merge!(attributes))
end