Class: ExportBreakerStatus
- Inherits:
-
Object
- Object
- ExportBreakerStatus
- Includes:
- Sidekiq::Job
- Defined in:
- app/sidekiq/export_breaker_status.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/sidekiq/export_breaker_status.rb', line 6 def perform Breakers.client.services.each do |service| # trying to avoid double-negative with open/closed here, up of 1 is "closed" or "up" up = service.latest_outage && !service.latest_outage.ended? ? 0 : 1 StatsD.gauge("api.external_service.#{service.name}.up", up) end end |