backend.rb 407 B

1234567891011121314151617181920212223
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. module MonitoringHelper
  3. class HealthChecker
  4. class Backend
  5. attr_reader :response
  6. def initialize
  7. @response = Response.new
  8. end
  9. def check_health
  10. run_health_check
  11. response
  12. end
  13. protected
  14. # override in subclass
  15. def run_health_check; end
  16. end
  17. end
  18. end