Sha256: ab7b793feaabb94baf2fea3344f77b661d25c4e7344cf68b7a1690876740c5ba

Contents?: true

Size: 438 Bytes

Versions: 7

Compression:

Stored size: 438 Bytes

Contents

# encoding: utf-8
require 'logstash/api/commands/base'
require "logstash/util/duration_formatter"

module LogStash
  module Api
    module Commands
      module System
        class BasicInfo < Commands::Base

          def run
            {
              "hostname" => hostname,
              "version" => {
                "number" => LOGSTASH_VERSION
              }
            }
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
logstash-core-5.0.0.alpha4.snapshot3-java lib/logstash/api/commands/system/basicinfo_command.rb
logstash-core-5.0.0.alpha4.snapshot2-java lib/logstash/api/commands/system/basicinfo_command.rb
logstash-core-5.0.0.alpha4.snapshot1-java lib/logstash/api/commands/system/basicinfo_command.rb
logstash-core-5.0.0.alpha3-java lib/logstash/api/commands/system/basicinfo_command.rb
logstash-core-5.0.0.alpha3.snapshot8-java lib/logstash/api/commands/system/basicinfo_command.rb
logstash-core-5.0.0.alpha3.snapshot7-java lib/logstash/api/commands/system/basicinfo_command.rb
logstash-core-5.0.0.alpha3.snapshot6-java lib/logstash/api/commands/system/basicinfo_command.rb