Class: Fog::Monitoring::StormOnDemand::Bandwidths

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

Instance Method Summary collapse

Instance Method Details

#graph(options) ⇒ Object



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

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

#stats(uniq_id) ⇒ Object



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

def stats(uniq_id)
  bw = service.get_bandwidth_stats(:uniq_id => uniq_id).body
  new(bw)
end