response.rb 417 B

12345678910111213141516171819
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. module MonitoringHelper
  3. class HealthChecker
  4. class Response
  5. attr_reader :issues, :actions
  6. def initialize
  7. @issues = []
  8. @actions = Set.new
  9. end
  10. def merge(another_response)
  11. @issues.concat another_response.issues
  12. @actions.merge another_response.actions
  13. end
  14. end
  15. end
  16. end