Sha256: e89d3cc3455fa7ec2ada5d57fc432429e986abffb640885bb6c9c6ed46d9d786

Contents?: true

Size: 550 Bytes

Versions: 47

Compression:

Stored size: 550 Bytes

Contents

# encoding: utf-8
require "logstash/instrument/periodic_poller/base"

module LogStash module Instrument module PeriodicPoller
  class PersistentQueue < Base
    def initialize(metric, queue_type, agent, options = {})
      super(metric, options)
      @metric = metric
      @queue_type = queue_type
      @agent = agent
    end

    def collect
      pipelines = @agent.running_user_defined_pipelines
      pipelines.each do |_, pipeline|
        unless pipeline.nil?
          pipeline.collect_stats
        end
      end
    end
  end
end end end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
logstash-core-6.8.23-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.22-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.21-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.20-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.19-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.18-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.17-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.16-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.15-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.14-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.13-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.12-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.11-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.10-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.9-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.8-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.7-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-7.5.2-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-7.5.1-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-6.8.6-java lib/logstash/instrument/periodic_poller/pq.rb