Sha256: 1b62a7fc9faa503988e53f70909133ad37827a4f80de2ec01d8d3aa36d0084fc

Contents?: true

Size: 490 Bytes

Versions: 53

Compression:

Stored size: 490 Bytes

Contents

require 'fog/core/collection'
require 'fog/storm_on_demand/models/monitoring/bandwidth'

module Fog
  module Monitoring
    class StormOnDemand

      class Bandwidths < Fog::Collection
        model Fog::Monitoring::StormOnDemand::Bandwidth

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

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

      end
    end
  end
end

Version data entries

53 entries across 53 versions & 3 rubygems

Version Path
fog-maestrodev-1.15.0.20130927082724 lib/fog/storm_on_demand/models/monitoring/bandwidths.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/storm_on_demand/models/monitoring/bandwidths.rb
fog-1.15.0 lib/fog/storm_on_demand/models/monitoring/bandwidths.rb
gapinc-fog-1.14.0 lib/fog/storm_on_demand/models/monitoring/bandwidths.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/storm_on_demand/models/monitoring/bandwidths.rb
fog-1.14.0 lib/fog/storm_on_demand/models/monitoring/bandwidths.rb
fog-1.13.0 lib/fog/storm_on_demand/models/monitoring/bandwidths.rb
gapinc-fog-1.12.1.2 lib/fog/storm_on_demand/models/monitoring/bandwidths.rb
gapinc-fog-1.12.1.1 lib/fog/storm_on_demand/models/monitoring/bandwidths.rb
gapinc-fog-1.12.1a lib/fog/storm_on_demand/models/monitoring/bandwidths.rb
gapinc-fog-1.12.1 lib/fog/storm_on_demand/models/monitoring/bandwidths.rb
fog-1.12.1 lib/fog/storm_on_demand/models/monitoring/bandwidths.rb
fog-1.12.0 lib/fog/storm_on_demand/models/monitoring/bandwidths.rb