Sha256: cd3b841f46b5683666ca76c73bd952e87b844363936b7554c680c8c073f10c49

Contents?: true

Size: 553 Bytes

Versions: 6

Compression:

Stored size: 553 Bytes

Contents

# encoding: utf-8
# This file is distributed under Ting Yun's license terms.

require 'ting_yun/agent/collector/transaction_sampler/transaction_sample_buffer_base'
module TingYun
  module Agent
    module Collector
      class TransactionSampler
        class SlowestSampleBuffer < TransactionSampleBufferBase

          CAPACITY = 1

          def capacity
            CAPACITY
          end

          def allow_sample?(sample)
            sample.threshold && sample.duration >= sample.threshold
          end

        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tingyun_rpm-1.1.3 lib/ting_yun/agent/collector/transaction_sampler/slowest_sample_buffer.rb
tingyun_rpm-1.1.2 lib/ting_yun/agent/collector/transaction_sampler/slowest_sample_buffer.rb
tingyun_rpm-1.1.1 lib/ting_yun/agent/collector/transaction_sampler/slowest_sample_buffer.rb
tingyun_rpm-1.1.0 lib/ting_yun/agent/collector/transaction_sampler/slowest_sample_buffer.rb
tingyun_rpm-1.0.7 lib/ting_yun/agent/collector/transaction_sampler/slowest_sample_buffer.rb
tingyun_rpm-1.0.6 lib/ting_yun/agent/collector/transaction_sampler/slowest_sample_buffer.rb