logstash/logstash-core/spec/api
Pier-Hugues Pellerin 9c9b4a42bb Monitor the load average of the machine and display it in the api
This PR add new information in the /_node/stats api and will return the
load average of the machine in the following formats depending of the
platforms that logstash is running on:

**Linux**
```json
{
    "cpu" : {
      "percent" : 26,
      "load_average" : {
        "1m" : 2.826171875,
        "5m": 1.8261718,
        "15m": 1.56566
      }
    }
}
```

**MacOS and other platform that the OperatingMXBean understand**
```json
{
    "cpu" : {
      "percent" : 26,
      "load_average" : {
        "1m" : 2.826171875,
      }
    }
}
```

Load average is not available on Windows

Fixes: #6214

Fixes #6240
2016-11-14 08:59:39 -05:00
..
lib Monitor the load average of the machine and display it in the api 2016-11-14 08:59:39 -05:00
spec_helper.rb fixing the tests 2016-11-11 09:43:44 -05:00