bosh_agent/lib/bosh_agent/alert.rb
# As we don't (currently) require ACKs for alerts we might need to
# send alerts several times in case HM temporarily goes down
As we don't (currently) require ACKs for alerts we might need to
send alerts several times in case HM temporarily goes down
As we don ' t ( currently ) require ACKs for alerts we might need to send alerts several times in case HM temporarily goes down
def register
      return if severity >= SEVERITY_CUTOFF || severity <= 0
      ALERT_RETRIES.times do |i|
        EM.add_timer(i * RETRY_PERIOD) do
          send_via_mbus
        end
      end
    end
def register return if severity >= SEVERITY_CUTOFF || severity <= 0 ALERT_RETRIES . times do | i | EM . add_timer ( i * RETRY_PERIOD ) do send_via_mbus end end end
As we don't (currently) require ACKs for alerts we might need to
send alerts several times in case HM temporarily goes down
As we don ' t ( currently ) require ACKs for alerts we might need to send alerts several times in case HM temporarily goes down