Class: Fog::Monitoring::StormOnDemand::Loads

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/storm_on_demand/models/monitoring/loads.rb

Instance Method Summary collapse

Instance Method Details

#graph(options) ⇒ Object



10
11
12
# File 'lib/fog/storm_on_demand/models/monitoring/loads.rb', line 10

def graph(options)
  service.get_load_graph(options).body
end

#stats(uniq_id) ⇒ Object



14
15
16
17
# File 'lib/fog/storm_on_demand/models/monitoring/loads.rb', line 14

def stats(uniq_id)
  load = service.get_load_stats(:uniq_id => uniq_id).body
  new(load)
end