class Sensu::Plugin::RabbitMQ::Metrics

Public Instance Methods

dotted_keys(hash, prefix = '', keys = []) click to toggle source
# File lib/sensu-plugins-rabbitmq/metrics.rb, line 18
def dotted_keys(hash, prefix = '', keys = [])
  hash.each do |k, v|
    if v.is_a? Hash
      keys = dotted_keys(v, prefix + k + '.', keys)
    else
      keys << prefix + k
    end
  end
  keys
end
run() click to toggle source

To avoid complaints from mother class at the end of tests (at_exit handler)

# File lib/sensu-plugins-rabbitmq/metrics.rb, line 30
def run
  ok
end