Class: DiskIO
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- DiskIO
- Defined in:
- app/models/disk_io.rb
Class Method Summary collapse
Class Method Details
.average_io(start_time, group_by) ⇒ Object
5 6 7 8 9 10 |
# File 'app/models/disk_io.rb', line 5 def average_io(start_time, group_by) [ { name: "Read MB/s", data: average_for_period(:read_mb_per_sec, start_time, group_by) }, { name: "Write MB/s", data: average_for_period(:write_mb_per_sec, start_time, group_by) } ] end |