Class: ElasticGraph::HealthCheck::HealthStatus::ClusterHealth

Inherits:
Data
  • Object
show all
Defined in:
lib/elastic_graph/health_check/health_status.rb

Overview

Encapsulates the status information for a single datastore cluster.

Instance Method Summary collapse

Instance Method Details

#to_loggable_description(name) ⇒ Object



61
62
63
64
# File 'lib/elastic_graph/health_check/health_status.rb', line 61

def to_loggable_description(name)
  field_values = to_h.map { |field, value| "  #{field}: #{value.inspect}" }
  "#{name} cluster health (#{status}):\n#{field_values.join("\n")}"
end