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



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

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