Permalink
Browse files

Removed frequency option

  • Loading branch information...
1 parent 29d1851 commit 205bbcaef3cf86e3885a9b17ce3aee1762c963cf @itsderek23 itsderek23 committed Jan 5, 2012
Showing with 1 addition and 19 deletions.
  1. +1 −10 rabbitmq_overall/rabbitmq_overall.rb
  2. +0 −9 rabbitmq_queue_details/rabbitmq_queue_details.rb
@@ -17,18 +17,9 @@ class RabbitmqOverall < Scout::Plugin
password:
default: guest
attributes: password
- frequency:
- default: minute
- notes: The frequency at which sample rates should be calculated (ie "7 failures per minute"). Valid options are minute and second.
- EOS
+ EOS
def build_report
- if option(:frequency) == "second"
- frequency = :second
- else
- frequency = :minute
- end
-
overview = get('overview')
nodes = get('nodes')
@@ -20,18 +20,9 @@ class RabbitmqQueueDetails < Scout::Plugin
notes: The name of the queue to collect detailed metrics for
vhost:
notes: The virtual host containing the queue.
- frequency:
- default: minute
- notes: The frequency at which sample rates should be calculated (ie "7 failures per minute"). Valid options are minute and second.
EOS
def build_report
- if option(:frequency) == "second"
- frequency = :second
- else
- frequency = :minute
- end
-
if option(:queue).nil?
return error("Queue Required", "Specificy the queue you wish to monitor in the plugin settings.")
end

0 comments on commit 205bbca

Please sign in to comment.