Home
last modified time | relevance | path

Searched refs:thresholdValue (Results 1 – 14 of 14) sorted by relevance

/openbmc/telemetry/src/
H A Dnumeric_threshold.cpp14 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 Ddiscrete_threshold.cpp16 dwellTime(dwellTimeIn), thresholdValue(thresholdValueIn), in DiscreteThreshold()
17 numericThresholdValue(utils::stodStrict(thresholdValue)), in DiscreteThreshold()
102 thresholdValue); in commit()
109 thresholdValue); in getThresholdParam()
H A Dtrigger_factory.cpp165 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 Dnumeric_threshold.hpp30 double thresholdValue, numeric::Type type,
46 const double thresholdValue; member in NumericThreshold
H A Ddiscrete_threshold.hpp29 Milliseconds dwellTime, const std::string& thresholdValue,
45 const std::string thresholdValue; member in DiscreteThreshold
H A Dtrigger_actions.cpp134 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 Dtrigger_actions.hpp69 double thresholdValue, boost::asio::io_context& ioc,
/openbmc/telemetry/tests/src/
H A Dtest_discrete_threshold.cpp31 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 Dtest_numeric_threshold.cpp30 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 Dhealth_metric.cpp131 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 Dconversion_trigger.cpp24 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 Dthreshold_alarm_logger.cpp343 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 Dsensorhandler.cpp949 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 Dsensorcommands.cpp1181 constexpr uint8_t thresholdValue = 1; in ipmiSenSetSensorThresholds() local
1245 double valueToSet = ((mValue * std::get<thresholdValue>(property)) + in ipmiSenSetSensorThresholds()