Searched refs:ThresholdIntf (Results 1 – 6 of 6) sorted by relevance
/openbmc/phosphor-health-monitor/ |
H A D | health_metric.cpp | 128 ThresholdIntf::value(thresholds, true); in initProperties() 131 bool didThresholdViolate(ThresholdIntf::Bound bound, double thresholdValue, in didThresholdViolate() 136 case ThresholdIntf::Bound::Lower: in didThresholdViolate() 140 case ThresholdIntf::Bound::Upper: in didThresholdViolate() 155 auto thresholds = ThresholdIntf::value(); in checkThreshold() 162 ThresholdIntf::value(thresholds); in checkThreshold() 163 auto assertions = ThresholdIntf::asserted(); in checkThreshold() 169 ThresholdIntf::asserted(assertions); in checkThreshold() 170 ThresholdIntf::assertionChanged(type, bound, true, in checkThreshold() 185 ThresholdIntf::asserted(assertions); in checkThreshold() [all …]
|
H A D | health_metric_config.cpp | 33 std::unordered_map<std::string, ThresholdIntf::Bound>{ 34 {"Lower", ThresholdIntf::Bound::Lower}, 35 {"Upper", ThresholdIntf::Bound::Upper}}; 38 std::unordered_map<std::string, ThresholdIntf::Type>{ 39 {"HardShutdown", ThresholdIntf::Type::HardShutdown}, 40 {"SoftShutdown", ThresholdIntf::Type::SoftShutdown}, 41 {"PerformanceLoss", ThresholdIntf::Type::PerformanceLoss}, 42 {"Critical", ThresholdIntf::Type::Critical}, 43 {"Warning", ThresholdIntf::Type::Warning}}; 152 "TYPE", get<ThresholdIntf::Type>(key), "BOUND", in printConfig() [all …]
|
H A D | health_metric_config.hpp | 15 using ThresholdIntf = typedef 58 std::map<std::tuple<ThresholdIntf::Type, ThresholdIntf::Bound>,
|
H A D | health_metric.hpp | 27 sdbusplus::server::object_t<ValueIntf, ThresholdIntf, AssociationIntf>;
|
/openbmc/phosphor-health-monitor/test/ |
H A D | test_health_metric.cpp | 41 {{ThresholdIntf::Type::Critical, ThresholdIntf::Bound::Upper}, in SetUp() 43 {{ThresholdIntf::Type::Warning, ThresholdIntf::Bound::Upper}, in SetUp() 74 StrEq(ThresholdIntf::interface), NotNull())) in TEST_F() 83 StrEq(ThresholdIntf::interface), in TEST_F()
|
H A D | test_health_metric_collection.cpp | 14 using ThresholdIntf = typedef 56 void updateThreshold(ThresholdIntf::Bound bound, double value) in updateThreshold() 64 if (get<ThresholdIntf::Bound>(threshold.first) == bound) in updateThreshold() 92 updateThreshold(ThresholdIntf::Bound::Upper, 100); in TEST_F() 93 updateThreshold(ThresholdIntf::Bound::Lower, 0); in TEST_F() 131 updateThreshold(ThresholdIntf::Bound::Upper, 0); in TEST_F() 132 updateThreshold(ThresholdIntf::Bound::Lower, 100); in TEST_F()
|