/openbmc/telemetry/src/ |
H A D | discrete_threshold.cpp | 16 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 D | numeric_threshold.cpp | 13 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 D | numeric_threshold.hpp | 29 Milliseconds dwellTime, numeric::Direction direction, 44 const Milliseconds dwellTime; member in NumericThreshold
|
H A D | discrete_threshold.hpp | 29 Milliseconds dwellTime, const std::string& thresholdValue, 44 const Milliseconds dwellTime; member in DiscreteThreshold
|
H A D | trigger_factory.cpp | 164 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 D | test_discrete_threshold.cpp | 31 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 D | test_numeric_threshold.cpp | 29 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 D | conversion_trigger.cpp | 24 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 D | trigger.hpp | 290 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()
|