Searched refs:HealthMetric (Results 1 – 10 of 10) sorted by relevance
/openbmc/phosphor-health-monitor/ |
H A D | health_metric.hpp | 37 class HealthMetric : public MetricIntf class 42 HealthMetric() = delete; 43 HealthMetric(const HealthMetric&) = delete; 44 HealthMetric(HealthMetric&&) = delete; 45 virtual ~HealthMetric() = default; 47 HealthMetric(sdbusplus::bus_t& bus, MType type, in HealthMetric() function in phosphor::health::metric::HealthMetric 48 const config::HealthMetric& config, const paths_t& bmcPaths) : in HealthMetric() 79 const config::HealthMetric config;
|
H A D | health_metric.cpp | 16 auto HealthMetric::getPath(MType type, std::string name, SubType subType) in getPath() 83 void HealthMetric::initProperties() in initProperties() 152 void HealthMetric::checkThreshold(Type type, Bound bound, MValue value) in checkThreshold() 197 void HealthMetric::checkThresholds(MValue value) in checkThresholds() 210 auto HealthMetric::shouldNotify(MValue value) -> bool in shouldNotify() 226 void HealthMetric::update(MValue value) in update() 249 void HealthMetric::create(const paths_t& bmcPaths) in create()
|
H A D | health_metric_config.cpp | 74 void from_json(const json& j, HealthMetric& self) in from_json() 77 j.value("Window_size", HealthMetric::defaults::windowSize); in from_json() 78 self.hysteresis = j.value("Hysteresis", HealthMetric::defaults::hysteresis); in from_json() 136 void printConfig(HealthMetric::map_t& configs) in printConfig() 160 auto getHealthMetricConfigs() -> HealthMetric::map_t in getHealthMetricConfigs() 170 HealthMetric::map_t configs = {}; in getHealthMetricConfigs() 183 auto config = metric.template get<HealthMetric>(); in getHealthMetricConfigs()
|
H A D | health_metric_config.hpp | 68 struct HealthMetric struct 83 using map_t = std::map<Type, std::vector<HealthMetric>>; argument 94 auto getHealthMetricConfigs() -> HealthMetric::map_t;
|
H A D | health_metric_collection.hpp | 10 using configs_t = std::vector<ConfigIntf::HealthMetric>; 28 std::unique_ptr<MetricIntf::HealthMetric>>;
|
H A D | health_monitor.hpp | 38 ConfigIntf::HealthMetric::map_t configs;
|
H A D | health_metric_collection.cpp | 230 metrics[config.name] = std::make_unique<MetricIntf::HealthMetric>( in create()
|
/openbmc/phosphor-health-monitor/test/ |
H A D | test_health_metric.cpp | 33 ConfigIntf::HealthMetric config; 53 auto metric = std::make_unique<HealthMetric>(unmockedBus, Type::cpu, config, in TEST_F() 88 std::make_unique<HealthMetric>(bus, Type::cpu, config, paths_t()); in TEST_F()
|
H A D | test_health_metric_config.cpp | 66 EXPECT_GE(config.windowSize, HealthMetric::defaults::windowSize); in TEST() 67 EXPECT_GE(config.hysteresis, HealthMetric::defaults::hysteresis); in TEST()
|
H A D | test_health_metric_collection.cpp | 33 ConfigIntf::HealthMetric::map_t configs;
|