Class: Kdep::Dashboard::ResourcesPanel

Inherits:
Panel
  • Object
show all
Defined in:
lib/kdep/dashboard/resources_panel.rb

Constant Summary collapse

WARN_THRESHOLD =
80
CRIT_THRESHOLD =
95
RED =
"\e[31m".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(metrics) ⇒ Object



11
12
13
14
# File 'lib/kdep/dashboard/resources_panel.rb', line 11

def update(metrics)
  @pod_metrics = metrics
  build_lines
end