2011-04-27 21:49:56 -04:00
|
|
|
require 'fog/core/collection'
|
2011-08-24 21:14:00 -04:00
|
|
|
require 'fog/storm_on_demand/models/compute/stat'
|
2011-04-27 21:49:56 -04:00
|
|
|
|
|
|
|
module Fog
|
2011-06-16 19:28:54 -04:00
|
|
|
module Compute
|
|
|
|
class StormOnDemand
|
2011-04-27 21:49:56 -04:00
|
|
|
|
|
|
|
class Stats < Fog::Collection
|
2011-06-16 19:28:54 -04:00
|
|
|
model Fog::Compute::StormOnDemand::Stat
|
2011-04-27 21:49:56 -04:00
|
|
|
|
|
|
|
def get(options)
|
2012-12-22 18:23:26 -05:00
|
|
|
data = service.get_stats(options).body
|
2011-04-27 21:49:56 -04:00
|
|
|
load(data)
|
|
|
|
rescue Excon::Errors::Forbidden
|
|
|
|
nil
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|