Class: Squall::Statistic

Inherits:
Base
  • Object
show all
Defined in:
lib/squall/statistic.rb

Overview

OnApp Statistic

Instance Attribute Summary

Attributes inherited from Base

#result, #success

Instance Method Summary (collapse)

Methods inherited from Base

#check_config, #default_params, #key_for_class, #request

Instance Method Details

- (Object) daily_stats

Get usage statistics for virtual machines.

Returns:

  • an Array.



7
8
9
10
# File 'lib/squall/statistic.rb', line 7

def daily_stats
  response = request(:get, "/usage_statistics.json")
  response.collect {|s| s["vm_stat"]}
end