Class: Bandwidth
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Bandwidth
- Defined in:
- app/models/bandwidth.rb
Class Method Summary collapse
Class Method Details
.average_usage(start_time, group_by) ⇒ Object
5 6 7 8 9 10 |
# File 'app/models/bandwidth.rb', line 5 def average_usage(start_time, group_by) [ { name: "Incoming Mbps", data: average_for_period(:incoming_mbps, start_time, group_by) }, { name: "Outgoing Mbps", data: average_for_period(:outgoing_mbps, start_time, group_by) } ] end |