Sha256: a9bbc0e1502a5d103c8a0bb6a115d938c4272253b732123e820a053919b580b7

Contents?: true

Size: 503 Bytes

Versions: 32

Compression:

Stored size: 503 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
      pipeline_id, pipeline = @agent.running_pipelines.first
      unless pipeline.nil?
        pipeline.collect_stats
      end
    end
  end
end; end; end

Version data entries

32 entries across 31 versions & 5 rubygems

Version Path
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/logstash-core-5.2.1-java/lib/logstash/instrument/periodic_poller/pq.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/logstash-core-5.2.1-java/lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-5.6.3-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-output-icinga-1.1.0 vendor/jruby/2.3.0/gems/logstash-core-5.2.1-java/lib/logstash/instrument/periodic_poller/pq.rb
logstash-output-icinga-1.1.0 vendor/jruby/1.9/gems/logstash-core-5.2.1-java/lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-5.6.2-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-5.6.1-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-5.5.3-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-5.6.0-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-5.5.2-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-5.5.1-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/logstash-core-5.5.1.snapshot1-java/lib/logstash/instrument/periodic_poller/pq.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/logstash-core-5.5.1.snapshot1-java/lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-5.5.1.snapshot1-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/logstash-core-5.5.0-java/lib/logstash/instrument/periodic_poller/pq.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/logstash-core-5.4.0-java/lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-5.5.0-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-5.4.3-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-core-5.4.2-java lib/logstash/instrument/periodic_poller/pq.rb
logstash-filter-csharp-0.1.0 vendor/bundle/jruby/2.3.0/gems/logstash-core-5.2.1-java/lib/logstash/instrument/periodic_poller/pq.rb