Class: Fog::Rackspace::Monitoring::Metrics
- Inherits:
-
Collection
- Object
- Collection
- Fog::Rackspace::Monitoring::Metrics
- Defined in:
- lib/fog/rackspace/models/monitoring/metrics.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
12 13 14 15 16 |
# 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 = {}) ⇒ Object
18 19 20 21 |
# File 'lib/fog/rackspace/models/monitoring/metrics.rb', line 18 def new(attributes = {}) requires :check super({ :check => check }.merge!(attributes)) end |