Class: LogStash::Instrument::PeriodicPoller::PersistentQueue
- Defined in:
- lib/logstash/instrument/periodic_poller/pq.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #collect ⇒ Object
-
#initialize(metric, queue_type, agent, options = {}) ⇒ PersistentQueue
constructor
A new instance of PersistentQueue.
Methods inherited from Base
Constructor Details
#initialize(metric, queue_type, agent, options = {}) ⇒ PersistentQueue
Returns a new instance of PersistentQueue.
6 7 8 9 10 11 |
# File 'lib/logstash/instrument/periodic_poller/pq.rb', line 6 def initialize(metric, queue_type, agent, = {}) super(metric, ) @metric = metric @queue_type = queue_type @agent = agent end |
Instance Method Details
#collect ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/logstash/instrument/periodic_poller/pq.rb', line 13 def collect pipelines = @agent.running_user_defined_pipelines pipelines.each do |_, pipeline| unless pipeline.nil? pipeline.collect_stats end end end |