Sha256: 435d8f3ac6469f3b4e0760253cfef2ce3c1ad3aa501c2fd94d2a009408cd9b5e
Contents?: true
Size: 571 Bytes
Versions: 20
Compression:
Stored size: 571 Bytes
Contents
# encoding: utf-8 require "logstash/event" require "logstash/util" module LogStash module Instrument module MetricType class Base attr_reader :namespaces, :key def initialize(namespaces, key) @namespaces = namespaces @key = key end def inspect "#{self.class.name} - namespaces: #{namespaces} key: #{key} value: #{value}" end def to_hash { key => value } end def to_json_data value end def type @type ||= LogStash::Util.class_name(self).downcase end end end; end; end
Version data entries
20 entries across 20 versions & 4 rubygems