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

Version Path
mrcooper-logstash-output-azuresearch-0.2.2 vendor/jruby/2.5.0/gems/logstash-core-5.0.0-java/lib/logstash/instrument/metric_type/base.rb
logstash-core-5.0.2-java lib/logstash/instrument/metric_type/base.rb
logstash-core-5.0.1-java lib/logstash/instrument/metric_type/base.rb
logstash-core-5.0.0-java lib/logstash/instrument/metric_type/base.rb
logstash-core-5.0.0.pre.rc1-java lib/logstash/instrument/metric_type/base.rb
logstash-core-5.0.0.pre.beta1-java lib/logstash/instrument/metric_type/base.rb
logstash-filter-delta-1.1.0 vendor/bundle/jruby/2.2.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/lib/logstash/instrument/metric_type/base.rb
logstash-filter-delta-1.0.1 vendor/bundle/jruby/2.2.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/lib/logstash/instrument/metric_type/base.rb
logstash-filter-base64-1.0.4 vendor/bundle/jruby/2.2.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/lib/logstash/instrument/metric_type/base.rb
logstash-filter-base64-1.0.3 vendor/bundle/jruby/2.2.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/lib/logstash/instrument/metric_type/base.rb
logstash-filter-delta-1.0.0 vendor/bundle/jruby/2.2.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/lib/logstash/instrument/metric_type/base.rb
logstash-filter-base64-1.0.2 vendor/bundle/jruby/2.3.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/lib/logstash/instrument/metric_type/base.rb
logstash-filter-base64-1.0.1 vendor/bundle/jruby/2.3.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/lib/logstash/instrument/metric_type/base.rb
logstash-filter-base64-1.0.0 vendor/bundle/jruby/2.3.0/gems/logstash-core-5.0.0.alpha6.snapshot5-java/lib/logstash/instrument/metric_type/base.rb
logstash-core-5.0.0.alpha6.snapshot5-java lib/logstash/instrument/metric_type/base.rb
logstash-core-5.0.0.alpha6.snapshot4-java lib/logstash/instrument/metric_type/base.rb
logstash-core-5.0.0.alpha6.snapshot3-java lib/logstash/instrument/metric_type/base.rb
logstash-core-5.0.0.alpha6.snapshot2-java lib/logstash/instrument/metric_type/base.rb
logstash-core-5.0.0.alpha6.snapshot1-java lib/logstash/instrument/metric_type/base.rb
logstash-core-5.0.0.alpha5.snapshot1-java lib/logstash/instrument/metric_type/base.rb