Class: Yabeda::Kafka::Proxy::Histogram
- Inherits:
-
Object
- Object
- Yabeda::Kafka::Proxy::Histogram
- Defined in:
- lib/yabeda/kafka/proxy.rb
Instance Attribute Summary collapse
-
#yabeda_histogram ⇒ Object
readonly
Returns the value of attribute yabeda_histogram.
Instance Method Summary collapse
-
#initialize(yabeda_histogram) ⇒ Histogram
constructor
A new instance of Histogram.
- #observe(value, labels:) ⇒ Object
Constructor Details
#initialize(yabeda_histogram) ⇒ Histogram
Returns a new instance of Histogram.
56 57 58 |
# File 'lib/yabeda/kafka/proxy.rb', line 56 def initialize(yabeda_histogram) @yabeda_histogram = yabeda_histogram end |
Instance Attribute Details
#yabeda_histogram ⇒ Object (readonly)
Returns the value of attribute yabeda_histogram.
54 55 56 |
# File 'lib/yabeda/kafka/proxy.rb', line 54 def yabeda_histogram @yabeda_histogram end |
Instance Method Details
#observe(value, labels:) ⇒ Object
60 61 62 |
# File 'lib/yabeda/kafka/proxy.rb', line 60 def observe(value, labels:) yabeda_histogram.measure(labels, value) end |