Class: NodesHealthcheckController

Inherits:
ApplicationController show all
Defined in:
app/controllers/nodes_healthcheck_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



4
5
6
7
8
9
# File 'app/controllers/nodes_healthcheck_controller.rb', line 4

def index
  render json: {
    status: status,
    failed_nodes: failed_nodes.map { |node| NodeHealthcheckSerializer.new(node) }
  }
end