Class: LogStash::Instrument::PeriodicPoller::LoadAverage

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/instrument/periodic_poller/load_average.rb

Defined Under Namespace

Classes: Linux, Other, Windows

Class Method Summary collapse

Class Method Details

.createObject



37
38
39
40
41
42
43
44
45
# File 'lib/logstash/instrument/periodic_poller/load_average.rb', line 37

def self.create
  if LogStash::Environment.windows?
    Windows
  elsif LogStash::Environment.linux?
    Linux
  else
    Other
  end
end