Class: Deimos::Metrics::Provider
- Inherits:
-
Object
- Object
- Deimos::Metrics::Provider
- Defined in:
- lib/deimos/metrics/provider.rb
Overview
Base class for all metrics providers.
Direct Known Subclasses
Instance Method Summary collapse
-
#gauge(metric_name, count, options = {}) ⇒ Object
Send an counter increment metric.
-
#histogram(metric_name, count, options = {}) ⇒ Object
Send an counter increment metric.
-
#increment(metric_name, options = {}) ⇒ Object
Send an counter increment metric.
-
#time(metric_name, options = {}) ⇒ Object
Time a yielded block, and send a timer metric.
Instance Method Details
#gauge(metric_name, count, options = {}) ⇒ Object
Send an counter increment metric
17 18 19 |
# File 'lib/deimos/metrics/provider.rb', line 17 def gauge(metric_name, count, ={}) raise NotImplementedError end |
#histogram(metric_name, count, options = {}) ⇒ Object
Send an counter increment metric
24 25 26 |
# File 'lib/deimos/metrics/provider.rb', line 24 def histogram(metric_name, count, ={}) raise NotImplementedError end |
#increment(metric_name, options = {}) ⇒ Object
Send an counter increment metric
10 11 12 |
# File 'lib/deimos/metrics/provider.rb', line 10 def increment(metric_name, ={}) raise NotImplementedError end |
#time(metric_name, options = {}) ⇒ Object
Time a yielded block, and send a timer metric
31 32 33 |
# File 'lib/deimos/metrics/provider.rb', line 31 def time(metric_name, ={}) raise NotImplementedError end |