Skip to content

Latest commit

 

History

History
38 lines (35 loc) · 959 Bytes

class.md

File metadata and controls

38 lines (35 loc) · 959 Bytes

class

Description

A trust group determination class that implements a way to check a group of fan sensors trust state. Each of these 'classes' override a required function that determines if the group is trusted by checking each fan sensors listed within the trust group against an algorithm that returns whether they can be trusted or not.

Attribute Value(s)

  • NonzeroSpeed
    • Determines if the group is trusted by checking if any sensors in the group has a nonzero speed. If all sensors report zero, then no sensors in the group are trusted and therefore monitoring of all the sensors in the group is canceled.

Example


{
  "sensor_trust_groups": [
    {
      "class": "NonzeroSpeed",
      "group": [
        {
          "name": "fan0_0"
        },
        {
          "name": "fan1_0"
        },
        {
          "name": "fan2_0",
          "in_trust": false
        }
      ]
    }
  ]
}