Sha256: eaecad6af9621868d295118b3c60d3c7d4c3f5b28e0ffa19c4014796e23f1a4b

Contents?: true

Size: 283 Bytes

Versions: 2

Compression:

Stored size: 283 Bytes

Contents

module Squall
  # OnApp Statistic
  class Statistic < Base
    # Public: Get usage statistics for virtual machines.
    #
    # Returns an Array.
    def daily_stats
      response = request(:get, "/usage_statistics.json")
      response.collect {|s| s["vm_stat"]}
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
squall-1.4.0 lib/squall/statistic.rb
squall-1.3.1 lib/squall/statistic.rb