Class: Kdep::Dashboard::HealthPanel
- Defined in:
- lib/kdep/dashboard/health_panel.rb
Constant Summary collapse
- CPU_WARN =
80- MEMORY_WARN =
85- GREEN =
"\e[32m".freeze
- YELLOW =
"\e[33m".freeze
- RESET =
"\e[0m".freeze
Instance Attribute Summary
Attributes inherited from Panel
#lines, #rect, #scroll_offset, #title
Instance Method Summary collapse
Methods inherited from Panel
#add_line, #initialize, #render, #scroll_down, #scroll_up
Constructor Details
This class inherits a constructor from Kdep::Dashboard::Panel
Instance Method Details
#update(node_data) ⇒ Object
11 12 13 14 |
# File 'lib/kdep/dashboard/health_panel.rb', line 11 def update(node_data) @node_data = node_data build_lines end |