Sha256: a94285570032ba4b831cea424e0a0acf0eec67f5e76022159b366cf743a15b20

Contents?: true

Size: 568 Bytes

Versions: 28

Compression:

Stored size: 568 Bytes

Contents

# This abstract class specifies the interface a backend implementation should conform to.
# @abstract
class StatsD::Instrument::Backend

  # Collects a metric.
  #
  # @param metric [StatsD::Instrument::Metric] The metric to collect
  # @return [void]
  def collect_metric(metric)
    raise NotImplementedError, "Use a concerete backend implementation"
  end
end

require 'statsd/instrument/backends/logger_backend'
require 'statsd/instrument/backends/null_backend'
require 'statsd/instrument/backends/capture_backend'
require 'statsd/instrument/backends/udp_backend'

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
qubole-statsd-instrument-2.1.6 lib/statsd/instrument/backend.rb
statsd-instrument-2.3.5 lib/statsd/instrument/backend.rb
statsd-instrument-2.3.4 lib/statsd/instrument/backend.rb
qubole-statsd-instrument-2.1.5 lib/statsd/instrument/backend.rb
statsd-instrument-2.3.2 lib/statsd/instrument/backend.rb
statsd-instrument-2.3.1 lib/statsd/instrument/backend.rb
qubole-statsd-instrument-2.1.4 lib/statsd/instrument/backend.rb
statsd-instrument-2.3.0 lib/statsd/instrument/backend.rb
statsd-instrument-2.3.0.beta6 lib/statsd/instrument/backend.rb
statsd-instrument-2.3.0.beta5 lib/statsd/instrument/backend.rb
statsd-instrument-2.3.0.beta4 lib/statsd/instrument/backend.rb
statsd-instrument-2.3.0.beta3 lib/statsd/instrument/backend.rb
statsd-instrument-2.3.0.beta2 lib/statsd/instrument/backend.rb
statsd-instrument-2.3.0.beta lib/statsd/instrument/backend.rb
statsd-instrument-2.2.1 lib/statsd/instrument/backend.rb
statsd-instrument-2.2.0 lib/statsd/instrument/backend.rb
statsd-instrument-2.1.4 lib/statsd/instrument/backend.rb
statsd-instrument-2.1.3 lib/statsd/instrument/backend.rb
statsd-instrument-2.1.2 lib/statsd/instrument/backend.rb
statsd-instrument-2.1.1 lib/statsd/instrument/backend.rb