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