Class: LogStash::Instrument::PeriodicPoller::LoadAverage
- Inherits:
-
Object
- Object
- LogStash::Instrument::PeriodicPoller::LoadAverage
- Defined in:
- lib/logstash/instrument/periodic_poller/load_average.rb
Defined Under Namespace
Classes: Linux, Other, Windows
Class Method Summary collapse
Class Method Details
.create ⇒ Object
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 |