Class: PromMultiProc::Proxy
- Inherits:
-
Object
- Object
- PromMultiProc::Proxy
- Defined in:
- lib/prom_multi_proc/proxy.rb
Instance Attribute Summary collapse
-
#multis ⇒ Object
readonly
Returns the value of attribute multis.
Instance Method Summary collapse
- #add_multi(collector, method, value, labels) ⇒ Object
-
#initialize(base) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
#initialize(base) ⇒ Proxy
Returns a new instance of Proxy.
7 8 9 10 11 12 13 |
# File 'lib/prom_multi_proc/proxy.rb', line 7 def initialize(base) @base = base @proxies = {} @multis = [] add_proxy_methods end |
Instance Attribute Details
#multis ⇒ Object (readonly)
Returns the value of attribute multis.
5 6 7 |
# File 'lib/prom_multi_proc/proxy.rb', line 5 def multis @multis end |
Instance Method Details
#add_multi(collector, method, value, labels) ⇒ Object
15 16 17 |
# File 'lib/prom_multi_proc/proxy.rb', line 15 def add_multi(collector, method, value, labels) @multis << [collector, method, value, labels] end |