Sha256: 11ad54c2c3c363e1788c480f8d62f4ee7453df31b2c6bb16dc6cc6ad03c623a6
Contents?: true
Size: 682 Bytes
Versions: 27
Compression:
Stored size: 682 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 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
27 entries across 26 versions & 5 rubygems