157caa923SMatthew Barth# deviation
257caa923SMatthew Barth
357caa923SMatthew Barth## Description
4*a49e3f19SPatrick Williams
54c4de263SMatthew BarthThe +/- percentage allowed for the sensors of a fan to deviate from any
6*a49e3f19SPatrick Williamsrequested target before being deemed out-of-spec and not functioning as expected
7*a49e3f19SPatrick Williamsaccording to the target requested.
857caa923SMatthew Barth
957caa923SMatthew Barth## Attribute Value(s)
10*a49e3f19SPatrick Williams
114c4de263SMatthew Barthinteger (0 - 100)
1257caa923SMatthew Barth
134c4de263SMatthew BarthDeviation is represented as a percentage, so only 0 to 100 are valid values.
1457caa923SMatthew Barth
1557caa923SMatthew Barth## Example
16*a49e3f19SPatrick Williams
174c4de263SMatthew Barth<pre><code>
184c4de263SMatthew Barth{
194c4de263SMatthew Barth  "fans": [
204c4de263SMatthew Barth    {
214c4de263SMatthew Barth      "inventory": "/system/chassis/motherboard/fan0",
224c4de263SMatthew Barth      "allowed_out_of_range_time": 30,
234c4de263SMatthew Barth      "functional_delay": 5,
244c4de263SMatthew Barth      <b><i>"deviation": 15</i></b>,
254c4de263SMatthew Barth      "num_sensors_nonfunc_for_fan_nonfunc": 1,
264c4de263SMatthew Barth      "monitor_start_delay": 30,
274c4de263SMatthew Barth      "fan_missing_error_delay": 20,
284c4de263SMatthew Barth      "nonfunc_rotor_error_delay": 0,
294c4de263SMatthew Barth      "sensors": [
304c4de263SMatthew Barth        {
314c4de263SMatthew Barth          "name": "fan0_0",
324c4de263SMatthew Barth          "has_target": true
334c4de263SMatthew Barth        },
344c4de263SMatthew Barth        {
354c4de263SMatthew Barth          "name": "fan0_1",
364c4de263SMatthew Barth          "has_target": false,
374c4de263SMatthew Barth          "factor": 1.45,
384c4de263SMatthew Barth          "offset": -909
394c4de263SMatthew Barth        }
404c4de263SMatthew Barth      ]
414c4de263SMatthew Barth    }
424c4de263SMatthew Barth  ]
434c4de263SMatthew Barth}
444c4de263SMatthew Barth</code></pre>
45