/openbmc/telemetry/src/ |
H A D | numeric_threshold.cpp | 14 thresholdValue(thresholdValueIn), type(typeIn), clock(std::move(clockIn)) in NumericThreshold() 60 thresholdValue < prevValue && thresholdValue > value; in sensorUpdated() 62 thresholdValue > prevValue && thresholdValue < value; in sensorUpdated() 64 if (!crossedDecreasing && !crossedIncreasing && thresholdValue == prevValue) in sensorUpdated() 67 thresholdValue > value; in sensorUpdated() 69 thresholdValue < value; in sensorUpdated() 132 thresholdValue); in getThresholdParam()
|
H A D | discrete_threshold.cpp | 16 dwellTime(dwellTimeIn), thresholdValue(thresholdValueIn), in DiscreteThreshold() 17 numericThresholdValue(utils::stodStrict(thresholdValue)), in DiscreteThreshold() 102 thresholdValue); in commit() 109 thresholdValue); in getThresholdParam()
|
H A D | trigger_factory.cpp | 165 const std::string& thresholdValue = in makeDiscreteThreshold() local 173 Milliseconds(dwellTime), thresholdValue, thresholdName, severity, in makeDiscreteThreshold() 190 auto thresholdValue = double{thresholdParam.at_label<ts::ThresholdValue>()}; in makeNumericThreshold() 192 action::numeric::fillActions(actions, triggerActions, type, thresholdValue, in makeNumericThreshold() 197 dwellTime, direction, thresholdValue, type, std::make_unique<Clock>())); in makeNumericThreshold()
|
H A D | numeric_threshold.hpp | 30 double thresholdValue, numeric::Type type, 46 const double thresholdValue; member in NumericThreshold
|
H A D | discrete_threshold.hpp | 29 Milliseconds dwellTime, const std::string& thresholdValue, 45 const std::string thresholdValue; member in DiscreteThreshold
|
H A D | trigger_actions.cpp | 134 double thresholdValue, boost::asio::io_context& ioc, in fillActions() argument 145 std::make_unique<LogToJournal>(type, thresholdValue)); in fillActions() 151 type, thresholdValue)); in fillActions()
|
H A D | trigger_actions.hpp | 69 double thresholdValue, boost::asio::io_context& ioc,
|
/openbmc/telemetry/tests/src/ |
H A D | test_discrete_threshold.cpp | 31 Milliseconds dwellTime, std::string thresholdValue, in makeThreshold() argument 42 std::move(actions), dwellTime, thresholdValue, thresholdName, in makeThreshold() 168 thresholdValue = std::move(val); in ThresholdValue() 181 *os << ", ThresholdValue: " << o.thresholdValue; in PrintTo() 199 std::string thresholdValue = "0.0"; member 230 TriggerValue(GetParam().thresholdValue))) in testBodySensorIsUpdatedMultipleTimes() 266 sut = makeThreshold(0ms, GetParam().thresholdValue); in SetUp() 301 sut = makeThreshold(GetParam().dwellTime, GetParam().thresholdValue); in SetUp()
|
H A D | test_numeric_threshold.cpp | 30 double thresholdValue, in makeThreshold() argument 40 std::move(actions), dwellTime, direction, thresholdValue, type, in makeThreshold() 128 thresholdValue = val; in ThresholdValue() 147 *os << ", ThresholdValue: " << o.thresholdValue; in PrintTo() 172 double thresholdValue = 0.0; member 251 makeThreshold(0ms, GetParam().direction, GetParam().thresholdValue); in SetUp() 378 GetParam().thresholdValue); in SetUp()
|
/openbmc/phosphor-health-monitor/ |
H A D | health_metric.cpp | 131 bool didThresholdViolate(ThresholdIntf::Bound bound, double thresholdValue, in didThresholdViolate() argument 138 return (value < thresholdValue); in didThresholdViolate() 142 return (value > thresholdValue); in didThresholdViolate() 160 auto thresholdValue = tConfig.value / 100 * value.total; in checkThreshold() local 161 thresholds[type][bound] = thresholdValue; in checkThreshold() 164 if (didThresholdViolate(bound, thresholdValue, value.current)) in checkThreshold()
|
/openbmc/telemetry/src/utils/ |
H A D | conversion_trigger.cpp | 24 const auto& [type, dwellTime, direction, thresholdValue] = in operator ()() 28 thresholdValue); in operator ()() 36 const auto& [userId, severity, dwellTime, thresholdValue] = in operator ()() 39 userId, utils::toSeverity(severity), dwellTime, thresholdValue); in operator ()()
|
/openbmc/phosphor-fan-presence/sensor-monitor/ |
H A D | threshold_alarm_logger.cpp | 343 auto thresholdValue = in createEventLog() local 346 ad.emplace("THRESHOLD_VALUE", std::to_string(thresholdValue)); in createEventLog() 350 sensorPath, alarmProperty, alarmValue, thresholdValue) in createEventLog()
|
/openbmc/phosphor-host-ipmid/ |
H A D | sensorhandler.cpp | 949 constexpr uint8_t thresholdValue = 1; in ipmiSenSetSensorThresholds() local 1016 ((info.coefficientM * std::get<thresholdValue>(property)) + in ipmiSenSetSensorThresholds()
|
/openbmc/phosphor-host-ipmid/dbus-sdr/ |
H A D | sensorcommands.cpp | 1181 constexpr uint8_t thresholdValue = 1; in ipmiSenSetSensorThresholds() local 1245 double valueToSet = ((mValue * std::get<thresholdValue>(property)) + in ipmiSenSetSensorThresholds()
|