Module: LogStash::Instrument::MetricType
- Defined in:
- lib/logstash/instrument/metric_type.rb,
lib/logstash/instrument/metric_type/base.rb,
lib/logstash/instrument/metric_type/mean.rb,
lib/logstash/instrument/metric_type/gauge.rb,
lib/logstash/instrument/metric_type/counter.rb
Defined Under Namespace
Classes: Base, Counter, Gauge, Mean
Constant Summary collapse
- METRIC_TYPE_LIST =
{ :counter => LogStash::Instrument::MetricType::Counter, :mean => LogStash::Instrument::MetricType::Mean, :gauge => LogStash::Instrument::MetricType::Gauge }.freeze
Class Method Summary collapse
-
.create(type, namespaces, key) ⇒ Object
Use the string to generate a concrete class for this metrics.
Class Method Details
.create(type, namespaces, key) ⇒ Object
Use the string to generate a concrete class for this metrics
20 21 22 |
# File 'lib/logstash/instrument/metric_type.rb', line 20 def self.create(type, namespaces, key) METRIC_TYPE_LIST[type].new(namespaces, key) end |