Sha256: 2ca679789f028696ec548941bce392af057e33750c7bd1a4048947c91234c7ac
Contents?: true
Size: 986 Bytes
Versions: 77
Compression:
Stored size: 986 Bytes
Contents
# encoding: utf-8 module LogStash module Api module Modules class NodeStats < ::LogStash::Api::Modules::Base before do @stats = factory.build(:stats) end get "/?:filter?" do payload = { :jvm => jvm_payload, :process => process_payload, :pipeline => pipeline_payload, :reloads => reloads, :os => os_payload } respond_with(payload, {:filter => params["filter"]}) end private def os_payload @stats.os end def events_payload @stats.events end def jvm_payload @stats.jvm end def reloads @stats.reloads end def process_payload @stats.process end def mem_payload @stats.memory end def pipeline_payload @stats.pipeline end end end end end
Version data entries
77 entries across 74 versions & 8 rubygems