Class: StatsD::Instrument::Backend Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/statsd/instrument/backend.rb

Overview

This class is abstract.

This abstract class specifies the interface a backend implementation should conform to.

Instance Method Summary collapse

Instance Method Details

#collect_metric(metric) ⇒ void

This method returns an undefined value.

Collects a metric.

Parameters:

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/statsd/instrument/backend.rb', line 9

def collect_metric(metric)
  raise NotImplementedError, "Use a concerete backend implementation"
end