Sha256: 28661230ac1a0059865188a5cb21a99d2e8138f17a409e29995368b17f582a60
Contents?: true
Size: 685 Bytes
Versions: 79
Compression:
Stored size: 685 Bytes
Contents
# encoding: utf-8 require "logstash/instrument/metric_type/counter" require "logstash/instrument/metric_type/gauge" module LogStash module Instrument module MetricType METRIC_TYPE_LIST = { :counter => LogStash::Instrument::MetricType::Counter, :gauge => LogStash::Instrument::MetricType::Gauge }.freeze # Use the string to generate a concrete class for this metrics # # @param [String] The name of the class # @param [Array] Namespaces list # @param [String] The metric key # @raise [NameError] If the class is not found def self.create(type, namespaces, key) METRIC_TYPE_LIST[type].new(namespaces, key) end end end; end
Version data entries
79 entries across 79 versions & 1 rubygems