Sha256: be452a06351a0b088bd2fbf2248325020c3f9d5899117b8ac2a1ddc3c31faa9a

Contents?: true

Size: 599 Bytes

Versions: 7

Compression:

Stored size: 599 Bytes

Contents

# frozen_string_literal: true

# 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

7 entries across 7 versions & 1 rubygems

Version Path
statsd-instrument-2.8.0 lib/statsd/instrument/backend.rb
statsd-instrument-2.7.1 lib/statsd/instrument/backend.rb
statsd-instrument-2.7.0 lib/statsd/instrument/backend.rb
statsd-instrument-2.6.0 lib/statsd/instrument/backend.rb
statsd-instrument-2.5.1 lib/statsd/instrument/backend.rb
statsd-instrument-2.5.0 lib/statsd/instrument/backend.rb
statsd-instrument-2.4.0 lib/statsd/instrument/backend.rb