x-pack/lib/monitoring/inputs/metrics/stats_event_factory.rb
# OS stats are not available on all platforms
# TODO: replace exception logic with has_keys? when it is implemented in MetricStore
OS stats are not available on all platforms
TODO: replace exception logic with has_keys. when it is implemented in MetricStore
OS stats are not available on all platforms TODO : replace exception logic with has_keys . when it is implemented in MetricStore
def os_stats?(stats)
      stats.get_shallow(:os)
      true
    rescue LogStash::Instrument::MetricStore::MetricNotFound
      false
    end
def os_stats? ( stats ) stats . get_shallow ( :os ) true rescue LogStash :: Instrument :: MetricStore :: MetricNotFound false end
OS stats are not available on all platforms
TODO: replace exception logic with has_keys?
OS stats are not available on all platforms TODO : replace exception logic with has_keys?
stats
<not_specific>