/openbmc/telemetry/tests/src/ |
H A D | test_numeric_threshold.cpp | 30 double thresholdValue, in makeThreshold() argument 40 std::move(actions), dwellTime, direction, thresholdValue, type, in makeThreshold() 126 NumericParams& ThresholdValue(double val) in ThresholdValue() function 128 thresholdValue = val; in ThresholdValue() 147 *os << ", ThresholdValue: " << o.thresholdValue; in PrintTo() 172 double thresholdValue = 0.0; member 250 makeThreshold(0ms, GetParam().direction, GetParam().thresholdValue); in SetUp() 256 .ThresholdValue(90.0) 262 .ThresholdValue(90.0) 268 .ThresholdValue(90.0) [all …]
|
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() 166 DiscreteParams& ThresholdValue(std::string val) in ThresholdValue() function 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() 265 sut = makeThreshold(0ms, GetParam().thresholdValue); in SetUp() 272 .ThresholdValue("90.0") 276 .ThresholdValue("90.0") [all …]
|
H A D | test_trigger.cpp | 378 EXPECT_THAT(tocheck.at_label<utils::tstring::ThresholdValue>(), in TEST_F() 379 Eq(base.at_label<utils::tstring::ThresholdValue>())); in TEST_F() 404 EXPECT_THAT(tocheck.at_label<utils::tstring::ThresholdValue>(), in TEST_F() 405 Eq(base.at_label<utils::tstring::ThresholdValue>())); in TEST_F() 548 expectedItem0["thresholdValue"] = 0.5; in TEST_F() 554 expectedItem1["thresholdValue"] = 90.2; in TEST_F() 568 expectedItem0["thresholdValue"] = "15.2"; in TEST_F() 574 expectedItem1["thresholdValue"] = "32.7"; in TEST_F()
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Sensor/ |
H A D | Threshold.events.yaml | 30 - name: ThresholdValue 52 - name: ThresholdValue 74 - name: ThresholdValue 96 - name: ThresholdValue 118 - name: ThresholdValue 140 - name: ThresholdValue 162 - name: ThresholdValue 184 - name: ThresholdValue 206 - name: ThresholdValue 228 - name: ThresholdValue [all …]
|
/openbmc/telemetry/src/ |
H A D | numeric_threshold.cpp | 14 thresholdValue(thresholdValueIn), type(typeIn), clock(std::move(clockIn)) in NumericThreshold() 59 bool crossedDecreasing = thresholdValue < prevValue && in sensorUpdated() 60 thresholdValue > value; in sensorUpdated() 61 bool crossedIncreasing = thresholdValue > prevValue && in sensorUpdated() 62 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 166 thresholdParam.at_label<ts::ThresholdValue>(); in makeDiscreteThreshold() 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 | 136 double thresholdValue, boost::asio::io_context& ioc, in fillActions() argument 147 std::make_unique<LogToJournal>(type, thresholdValue)); in fillActions() 153 type, thresholdValue)); in fillActions()
|
H A D | trigger_actions.hpp | 69 double thresholdValue, boost::asio::io_context& ioc,
|
/openbmc/telemetry/src/utils/ |
H A D | conversion_trigger.cpp | 25 thresholdValue] = thresholdParam; in operator ()() 28 thresholdValue); in operator ()() 37 thresholdValue] = thresholdParam; in operator ()() 39 userId, utils::toSeverity(severity), dwellTime, thresholdValue); in operator ()() 53 labeledThresholdParam.at_label<ts::ThresholdValue>()); in operator ()() 66 labeledThresholdParam.at_label<ts::ThresholdValue>()); in operator ()() 107 paramUnpacked->at_label<ts::ThresholdValue>()); in fromLabeledThresholdParam() 126 paramUnpacked->at_label<ts::ThresholdValue>()); in fromLabeledThresholdParam()
|
H A D | tstring.hpp | 83 struct ThresholdValue struct 87 return "thresholdValue"; in str()
|
/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/types/ |
H A D | trigger_types.hpp | 63 utils::tstring::ThresholdValue>; 136 utils::tstring::ThresholdValue>;
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Common/ |
H A D | Threshold.interface.yaml | 12 implementation. map{thresholdType,map{thresholdBound,thresholdValue}}
|
/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()
|
/openbmc/docs/designs/ |
H A D | telemetry.md | 351 | ThresholdValue | variant | Value of reading that will trigger the threshold …
|