Sha256: a5902d6eddf3952eb8425222d4ed2614a2c0ed4a6274922f5e4728bafc934f3d
Contents?: true
Size: 1.35 KB
Versions: 20
Compression:
Stored size: 1.35 KB
Contents
# frozen_string_literal: true module Deimos module Metrics # Base class for all metrics providers. class Provider # Send an counter increment metric # @param metric_name [String] The name of the counter metric # @param options [Hash] Any additional options, e.g. :tags # @return [void] def increment(metric_name, options={}) raise MissingImplementationError end # Send an counter increment metric # @param metric_name [String] The name of the counter metric # @param count [Integer] # @param options [Hash] Any additional options, e.g. :tags # @return [void] def gauge(metric_name, count, options={}) raise MissingImplementationError end # Send an counter increment metric # @param metric_name [String] The name of the counter metric # @param count [Integer] # @param options [Hash] Any additional options, e.g. :tags # @return [void] def histogram(metric_name, count, options={}) raise MissingImplementationError end # 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 # @return [void] def time(metric_name, options={}) raise MissingImplementationError end end end end
Version data entries
20 entries across 20 versions & 1 rubygems