class Bosh::Monitor::ApiController

Constants

PULSE_TIMEOUT

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/bosh/monitor/api_controller.rb, line 5
def initialize
  @heartbeat = Time.now

  EM.add_periodic_timer(1) do
    EM.defer { @heartbeat = Time.now }
  end

  super
end