Home
last modified time | relevance | path

Searched refs:dwellTime (Results 1 – 9 of 9) sorted by relevance

/openbmc/telemetry/src/
H A Ddiscrete_threshold.cpp16 dwellTime(dwellTimeIn), thresholdValue(thresholdValueIn), in DiscreteThreshold()
74 if (dwellTime == Milliseconds::zero()) in startTimer()
81 timer.expires_after(dwellTime); in startTimer()
108 return discrete::LabeledThresholdParam(name, severity, dwellTime.count(), in getThresholdParam()
H A Dnumeric_threshold.cpp13 dwellTime(dwellTimeIn), direction(directionIn), in NumericThreshold()
98 if (dwellTime == Milliseconds::zero()) in startTimer()
105 timer.expires_after(dwellTime); in startTimer()
131 return numeric::LabeledThresholdParam(type, dwellTime.count(), direction, in getThresholdParam()
H A Dnumeric_threshold.hpp29 Milliseconds dwellTime, numeric::Direction direction,
44 const Milliseconds dwellTime; member in NumericThreshold
H A Ddiscrete_threshold.hpp29 Milliseconds dwellTime, const std::string& thresholdValue,
44 const Milliseconds dwellTime; member in DiscreteThreshold
H A Dtrigger_factory.cpp164 auto dwellTime = Milliseconds(thresholdParam.at_label<ts::DwellTime>()); in makeDiscreteThreshold() local
173 Milliseconds(dwellTime), thresholdValue, thresholdName, severity, in makeDiscreteThreshold()
188 auto dwellTime = Milliseconds(thresholdParam.at_label<ts::DwellTime>()); in makeNumericThreshold() local
197 dwellTime, direction, thresholdValue, type, std::make_unique<Clock>())); in makeNumericThreshold()
/openbmc/telemetry/tests/src/
H A Dtest_discrete_threshold.cpp31 makeThreshold(Milliseconds dwellTime, std::string thresholdValue, in makeThreshold() argument
42 std::move(actions), dwellTime, thresholdValue, thresholdName, in makeThreshold()
174 dwellTime = std::move(val); in DwellTime()
180 *os << "{ DwellTime: " << o.dwellTime.count() << "ms "; in PrintTo()
200 Milliseconds dwellTime = 0ms; member
300 sut = makeThreshold(GetParam().dwellTime, GetParam().thresholdValue); in SetUp()
H A Dtest_numeric_threshold.cpp29 void makeThreshold(Milliseconds dwellTime, numeric::Direction direction, in makeThreshold() argument
40 std::move(actions), dwellTime, direction, thresholdValue, type, in makeThreshold()
134 dwellTime = std::move(val); in DwellTime()
146 *os << "{ DwellTime: " << o.dwellTime.count() << "ms "; in PrintTo()
173 Milliseconds dwellTime = 0ms; member
374 makeThreshold(GetParam().dwellTime, GetParam().direction, in SetUp()
/openbmc/telemetry/src/utils/
H A Dconversion_trigger.cpp24 const auto& [type, dwellTime, direction, in operator ()()
26 return numeric::LabeledThresholdParam(numeric::toType(type), dwellTime, in operator ()()
36 const auto& [userId, severity, dwellTime, in operator ()()
39 userId, utils::toSeverity(severity), dwellTime, thresholdValue); in operator ()()
/openbmc/bmcweb/redfish-core/lib/
H A Dtrigger.hpp290 std::optional<std::chrono::milliseconds> dwellTime = in parseThreshold() local
292 if (!dwellTime) in parseThreshold()
299 static_cast<uint64_t>(dwellTime->count()), in parseThreshold()
397 std::optional<std::chrono::milliseconds> dwellTime = in parseDiscreteTriggers() local
399 if (!dwellTime) in parseDiscreteTriggers()
413 static_cast<uint64_t>(dwellTime->count()), in parseDiscreteTriggers()
735 for (const auto& [name, severity, dwellTime, value] : discreteParams) in getDiscreteTriggers()
738 time_utils::toDurationStringFromUint(dwellTime); in getDiscreteTriggers()
760 for (const auto& [type, dwellTime, activation, reading] : numericParams) in getNumericThresholds()
763 time_utils::toDurationStringFromUint(dwellTime); in getNumericThresholds()