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

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

Instance Method Summary collapse

Instance Method Details

#graph(options) ⇒ Object



7
8
9
# File 'lib/fog/monitoring/storm_on_demand/models/loads.rb', line 7

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

#stats(uniq_id) ⇒ Object



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

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