failed_email.rb 355 B

12345678910111213141516
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module MonitoringHelper
  3. class HealthChecker
  4. class FailedEmail < Backend
  5. def run_health_check
  6. count = ::FailedEmail.count
  7. return if count.zero?
  8. response.issues.push "emails that could not be processed: #{count}"
  9. end
  10. end
  11. end
  12. end