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



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

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

#stats(uniq_id) ⇒ Object



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

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