Sha256: c7a7c2b35c406f11897cfc99f71335d5440eec7d2b0d8df54ca6700f72019960
Contents?: true
Size: 864 Bytes
Versions: 1
Compression:
Stored size: 864 Bytes
Contents
# encoding: utf-8 require "logstash/api/modules/base" module LogStash module Api module Modules class Node < ::LogStash::Api::Modules::Base def node factory.build(:node) end get "/hot_threads" do ignore_idle_threads = params["ignore_idle_threads"] || true options = { :ignore_idle_threads => as_boolean(ignore_idle_threads), :human => params.has_key?("human") } options[:threads] = params["threads"].to_i if params.has_key?("threads") as = options[:human] ? :string : :json respond_with(node.hot_threads(options), {:as => as}) end get "/?:filter?" do selected_fields = extract_fields(params["filter"].to_s.strip) respond_with node.all(selected_fields) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logstash-core-5.0.0.alpha5.snapshot1-java | lib/logstash/api/modules/node.rb |