Class: GraylogAPI::System

Inherits:
Object
  • Object
show all
Defined in:
lib/graylogapi/system.rb,
lib/graylogapi/system/inputs.rb,
lib/graylogapi/system/cluster.rb,
lib/graylogapi/system/index_sets.rb,
lib/graylogapi/system/inputs/types.rb

Overview

class for manage system

Defined Under Namespace

Classes: Cluster, IndexSets, Inputs

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ System

Returns a new instance of System.



8
9
10
# File 'lib/graylogapi/system.rb', line 8

def initialize(client)
  @client = client
end

Instance Method Details

#clusterObject



35
36
37
# File 'lib/graylogapi/system.rb', line 35

def cluster
  @cluster ||= Cluster.new(@client)
end

#index_setsObject



31
32
33
# File 'lib/graylogapi/system.rb', line 31

def index_sets
  @index_sets ||= IndexSets.new(@client)
end

#inputsObject

object for manage System/Inputs

Returns:

  • GraylogAPI::System::Inputs



27
28
29
# File 'lib/graylogapi/system.rb', line 27

def inputs
  @inputs ||= Inputs.new(@client)
end

#jvmObject



16
17
18
# File 'lib/graylogapi/system.rb', line 16

def jvm
  @client.request(:get, '/system/jvm')
end

#overviewObject



12
13
14
# File 'lib/graylogapi/system.rb', line 12

def overview
  @client.request(:get, '/system')
end

#thread_dumpObject



20
21
22
# File 'lib/graylogapi/system.rb', line 20

def thread_dump
  @client.request(:get, '/system/threaddump')
end