Class: Karafka::Web::Management::Migrations::ConsumersMetrics::IntroduceWaiting
- Inherits:
-
Base
- Object
- Base
- Karafka::Web::Management::Migrations::ConsumersMetrics::IntroduceWaiting
- Defined in:
- lib/karafka/web/management/migrations/consumers_metrics/1700234522_introduce_waiting.rb
Overview
Introduce waiting in consumers metrics to complement busy and enqueued for jobs metrics
Instance Method Summary collapse
Methods inherited from Base
applicable?, index, migrate, sorted_descendants
Instance Method Details
#migrate(state) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/karafka/web/management/migrations/consumers_metrics/1700234522_introduce_waiting.rb', line 14 def migrate(state) state[:aggregated].each_value do |metrics| metrics.each do |metric| metric.last[:waiting] = 0 end end end |