class Metrux::Commands::PeriodicGauge
Attributes
registry[R]
reporter[R]
Public Class Methods
new(config, connection)
click to toggle source
Calls superclass method
Metrux::Commands::Base::new
# File lib/metrux/commands/periodic_gauge.rb, line 11 def initialize(config, connection) super @registry = Registry.new(config) @reporter = Reporter.new(self, registry, config) end
Public Instance Methods
execute(key, params = {}) { || ... }
click to toggle source
# File lib/metrux/commands/periodic_gauge.rb, line 17 def execute(key, params = {}) registry.add(key, params) { yield } reporter.start true end