Lines Matching full:threshold

162     /** @brief The critical threshold interface object */
163 std::unique_ptr<Threshold<CriticalObject>> criticalIface;
164 /** @brief The warning threshold interface object */
165 std::unique_ptr<Threshold<WarningObject>> warningIface;
166 /** @brief The soft shutdown threshold interface object */
167 std::unique_ptr<Threshold<SoftShutdownObject>> softShutdownIface;
168 /** @brief The hard shutdown threshold interface object */
169 std::unique_ptr<Threshold<HardShutdownObject>> hardShutdownIface;
170 /** @brief The performance loss threshold interface object */
171 std::unique_ptr<Threshold<PerformanceLossObject>> perfLossIface;
197 /** @brief create threshold objects from json config */
198 void createThresholds(const Json& threshold, const std::string& objPath);
204 /** @brief Check Sensor threshold and update alarm and log */
206 void checkThresholds(V value, T& threshold) in checkThresholds() argument
208 if (!threshold) in checkThresholds()
213 auto alarmHigh = threshold->alarmHigh(); in checkThresholds()
214 auto highHysteresis = threshold->getHighHysteresis(); in checkThresholds()
215 if ((!alarmHigh && value >= threshold->high()) || in checkThresholds()
216 (alarmHigh && value < (threshold->high() - highHysteresis))) in checkThresholds()
220 error("ASSERT: sensor {SENSOR} is above the upper threshold " in checkThresholds()
221 "{THRESHOLD}.", in checkThresholds()
222 "SENSOR", name, "THRESHOLD", tname); in checkThresholds()
223 threshold->alarmHighSignalAsserted(value); in checkThresholds()
227 info("DEASSERT: sensor {SENSOR} is under the upper threshold " in checkThresholds()
228 "{THRESHOLD}.", in checkThresholds()
229 "SENSOR", name, "THRESHOLD", tname); in checkThresholds()
230 threshold->alarmHighSignalDeasserted(value); in checkThresholds()
232 threshold->alarmHigh(!alarmHigh); in checkThresholds()
235 auto alarmLow = threshold->alarmLow(); in checkThresholds()
236 auto lowHysteresis = threshold->getLowHysteresis(); in checkThresholds()
237 if ((!alarmLow && value <= threshold->low()) || in checkThresholds()
238 (alarmLow && value > (threshold->low() + lowHysteresis))) in checkThresholds()
242 error("ASSERT: sensor {SENSOR} is below the lower threshold " in checkThresholds()
243 "{THRESHOLD}.", in checkThresholds()
244 "SENSOR", name, "THRESHOLD", tname); in checkThresholds()
245 threshold->alarmLowSignalAsserted(value); in checkThresholds()
249 info("DEASSERT: sensor {SENSOR} is above the lower threshold " in checkThresholds()
250 "{THRESHOLD}.", in checkThresholds()
251 "SENSOR", name, "THRESHOLD", tname); in checkThresholds()
252 threshold->alarmLowSignalDeasserted(value); in checkThresholds()
254 threshold->alarmLow(!alarmLow); in checkThresholds()