class Deimos::Metrics::Provider
Base class for all metrics providers.
Public Instance Methods
gauge(metric_name, count, options={})
click to toggle source
Send an counter increment metric @param metric_name [String] The name of the counter metric @param options [Hash] Any additional options, e.g. :tags
# File lib/deimos/metrics/provider.rb, line 17 def gauge(metric_name, count, options={}) raise NotImplementedError end
histogram(metric_name, count, options={})
click to toggle source
Send an counter increment metric @param metric_name [String] The name of the counter metric @param options [Hash] Any additional options, e.g. :tags
# File lib/deimos/metrics/provider.rb, line 24 def histogram(metric_name, count, options={}) raise NotImplementedError end
increment(metric_name, options={})
click to toggle source
Send an counter increment metric @param metric_name [String] The name of the counter metric @param options [Hash] Any additional options, e.g. :tags
# File lib/deimos/metrics/provider.rb, line 10 def increment(metric_name, options={}) raise NotImplementedError end
time(metric_name, options={})
click to toggle source
Time a yielded block, and send a timer metric @param metric_name [String] The name of the metric @param options [Hash] Any additional options, e.g. :tags
# File lib/deimos/metrics/provider.rb, line 31 def time(metric_name, options={}) raise NotImplementedError end