Class: Deimos::Metrics::Provider
- Inherits:
-
Object
- Object
- Deimos::Metrics::Provider
- Defined in:
- lib/deimos/metrics/provider.rb
Overview
Base class for all metrics providers.
Instance Method Summary collapse
-
#gauge(metric_name, count, options = {}) ⇒ void
Send an counter increment metric.
-
#histogram(metric_name, count, options = {}) ⇒ void
Send an counter increment metric.
-
#increment(metric_name, options = {}) ⇒ void
Send an counter increment metric.
-
#time(metric_name, options = {}) ⇒ void
Time a yielded block, and send a timer metric.
Instance Method Details
#gauge(metric_name, count, options = {}) ⇒ void
This method returns an undefined value.
Send an counter increment metric
20 21 22 |
# File 'lib/deimos/metrics/provider.rb', line 20 def gauge(metric_name, count, ={}) raise MissingImplementationError end |
#histogram(metric_name, count, options = {}) ⇒ void
This method returns an undefined value.
Send an counter increment metric
29 30 31 |
# File 'lib/deimos/metrics/provider.rb', line 29 def histogram(metric_name, count, ={}) raise MissingImplementationError end |
#increment(metric_name, options = {}) ⇒ void
This method returns an undefined value.
Send an counter increment metric
11 12 13 |
# File 'lib/deimos/metrics/provider.rb', line 11 def increment(metric_name, ={}) raise MissingImplementationError end |
#time(metric_name, options = {}) ⇒ void
This method returns an undefined value.
Time a yielded block, and send a timer metric
37 38 39 |
# File 'lib/deimos/metrics/provider.rb', line 37 def time(metric_name, ={}) raise MissingImplementationError end |