Class: Yabeda::Kafka::Proxy::Histogram

Inherits:
Object
  • Object
show all
Defined in:
lib/yabeda/kafka/proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_histogramObject (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