Class: Moro::Monitor
- Inherits:
-
Object
- Object
- Moro::Monitor
- Defined in:
- lib/moro/monitor.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ Monitor
constructor
A new instance of Monitor.
- #monit ⇒ Object
- #show ⇒ Object
Constructor Details
Instance Method Details
#monit ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/moro/monitor.rb', line 21 def monit data=[] @processes.each do |p| data << p.usage end data end |
#show ⇒ Object
14 15 16 17 18 19 |
# File 'lib/moro/monitor.rb', line 14 def show data=monit data.each do|d| puts "#{d[:name]}:#{d[:memory]}" end end |