Class: Sensu::Plugin::RabbitMQ::Metrics
- Inherits:
-
Metric::CLI::Graphite
- Object
- Metric::CLI::Graphite
- Sensu::Plugin::RabbitMQ::Metrics
- Includes:
- Common
- Defined in:
- lib/sensu-plugins-rabbitmq/metrics.rb
Instance Method Summary collapse
- #dotted_keys(hash, prefix = '', keys = []) ⇒ Object
-
#run ⇒ Object
To avoid complaints from mother class at the end of tests (at_exit handler).
Methods included from Common
#acquire_rabbitmq_info, included, #queue_list_builder
Instance Method Details
#dotted_keys(hash, prefix = '', keys = []) ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# 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 ⇒ Object
To avoid complaints from mother class at the end of tests (at_exit handler)
30 31 32 |
# File 'lib/sensu-plugins-rabbitmq/metrics.rb', line 30 def run ok end |