2011-04-27 21:49:56 -04:00
|
|
|
require 'fog/core/collection'
|
2011-08-24 20:14:00 -05:00
|
|
|
require 'fog/storm_on_demand/models/compute/stat'
|
2011-04-27 21:49:56 -04:00
|
|
|
|
|
|
|
module Fog
|
2011-06-16 16:28:54 -07:00
|
|
|
module Compute
|
|
|
|
class StormOnDemand
|
2011-04-27 21:49:56 -04:00
|
|
|
|
|
|
|
class Stats < Fog::Collection
|
2011-06-16 16:28:54 -07:00
|
|
|
model Fog::Compute::StormOnDemand::Stat
|
2011-04-27 21:49:56 -04:00
|
|
|
|
|
|
|
def get(options)
|
2012-12-22 23:23:26 +00: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
|