Class: Karafka::Web::Tracking::Helpers::Ttls::Windows
- Inherits:
-
Struct
- Object
- Struct
- Karafka::Web::Tracking::Helpers::Ttls::Windows
- Defined in:
- lib/karafka/web/tracking/helpers/ttls/windows.rb
Overview
Object used to track process metrics in time windows. Those are shared, meaning they do not refer to particular metric type but allow us to store whatever we want.
We have following time windows: - m1 - one minute big - m5 - five minute big
Instance Attribute Summary collapse
-
#m1 ⇒ Object
Returns the value of attribute m1.
-
#m5 ⇒ Object
Returns the value of attribute m5.
Instance Method Summary collapse
-
#clear ⇒ Object
Clears the TTLs windows.
- #initialize ⇒ Ttls::Windows constructor
Constructor Details
Instance Attribute Details
#m1 ⇒ Object
Returns the value of attribute m1
14 15 16 |
# File 'lib/karafka/web/tracking/helpers/ttls/windows.rb', line 14 def m1 @m1 end |
#m5 ⇒ Object
Returns the value of attribute m5
14 15 16 |
# File 'lib/karafka/web/tracking/helpers/ttls/windows.rb', line 14 def m5 @m5 end |
Instance Method Details
#clear ⇒ Object
Clears the TTLs windows
24 25 26 |
# File 'lib/karafka/web/tracking/helpers/ttls/windows.rb', line 24 def clear values.each(&:clear) end |