Sha256: 1dc8a56e5288ea810b631f0d2cd845d305cfef65c9ea6effffa682a90262cbb1
Contents?: true
Size: 693 Bytes
Versions: 118
Compression:
Stored size: 693 Bytes
Contents
# encoding: utf-8 require "logstash/api/commands/base" module LogStash module Api module Commands class DefaultMetadata < Commands::Base def all {:host => host, :version => version, :http_address => http_address, :id => service.agent.id, :name => service.agent.name} end def host @@host ||= Socket.gethostname end def version LOGSTASH_CORE_VERSION end def http_address @http_address ||= service.get_shallow(:http_address).value rescue ::LogStash::Instrument::MetricStore::MetricNotFound, NoMethodError => e nil end end end end end
Version data entries
118 entries across 118 versions & 5 rubygems