Class: Kennel::UnmutedAlerts
- Inherits:
-
Object
- Object
- Kennel::UnmutedAlerts
- Defined in:
- lib/kennel/unmuted_alerts.rb
Class Method Summary collapse
Class Method Details
.print(api, tag) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/kennel/unmuted_alerts.rb', line 8 def print(api, tag) monitors = filtered_monitors(api, tag) if monitors.empty? puts "No unmuted alerts found" else monitors.each do |m| puts m[:name] puts Utils.path_to_url("/monitors/#{m[:id]}") m[:state][:groups].each { |g| puts "#{g[:status]}\t#{g[:name]}" } puts end end end |