Class: SolidObserver::CLI::Health

Inherits:
Base
  • Object
show all
Defined in:
lib/solid_observer/cli/health.rb

Constant Summary collapse

STATUS_COLORS =
{stable: :green, degraded: :yellow, critical: :red}.freeze
NAME_WIDTH =
8
UNAVAILABLE_SUFFIX =
"  (unavailable)"

Instance Method Summary collapse

Methods inherited from Base

call

Instance Method Details

#callObject



10
11
12
13
14
15
16
17
# File 'lib/solid_observer/cli/health.rb', line 10

def call
  health = SolidObserver::Services::HealthScore.call

  print_header
  print_overall(health[:overall])
  print_components(health[:components])
  output("")
end