Class: Karafka::Web::Management::Migrations::ConsumersStates::FillMissingReceivedAndSentBytes
- Inherits:
-
Base
- Object
- Base
- Karafka::Web::Management::Migrations::ConsumersStates::FillMissingReceivedAndSentBytes
- Defined in:
- lib/karafka/web/management/migrations/consumers_states/1699543515_fill_missing_received_and_sent_bytes.rb
Overview
Similar to filling in consumers metrics, we initialize this with zeros so it is always present as expected
Instance Method Summary collapse
Methods inherited from Base
applicable?, index, migrate, sorted_descendants
Instance Method Details
#migrate(state) ⇒ Object
16 17 18 19 |
# File 'lib/karafka/web/management/migrations/consumers_states/1699543515_fill_missing_received_and_sent_bytes.rb', line 16 def migrate(state) state[:stats][:bytes_sent] = 0 state[:stats][:bytes_received] = 0 end |