Sha256: 279c59e1e13d96ee93a7dbe124b5107bd515ab4ced78bc78a57f8949760f2214
Contents?: true
Size: 787 Bytes
Versions: 122
Compression:
Stored size: 787 Bytes
Contents
# encoding: utf-8 require "logstash/instrument/metric_type/counter" require "logstash/instrument/metric_type/mean" require "logstash/instrument/metric_type/gauge" module LogStash module Instrument module MetricType METRIC_TYPE_LIST = { :counter => LogStash::Instrument::MetricType::Counter, :mean => LogStash::Instrument::MetricType::Mean, :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
122 entries across 119 versions & 14 rubygems