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
Methods included from Util::Loggable
included, #logger, #slow_logger
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 |
# File 'lib/logstash/instrument/periodic_poller/pq.rb', line 13 def collect pipeline_id, pipeline = @agent.running_pipelines.first unless pipeline.nil? pipeline.collect_stats end end |