Searched refs:MetricIntf (Results 1 – 8 of 8) sorted by relevance
/openbmc/phosphor-health-monitor/ |
H A D | health_metric_collection.cpp | 71 if (config.subType == MetricIntf::SubType::cpuTotal) in readCPU() 82 else if (config.subType == MetricIntf::SubType::cpuKernel) in readCPU() 86 else if (config.subType == MetricIntf::SubType::cpuUser) in readCPU() 121 std::unordered_map<MetricIntf::SubType, double> memoryValues; in readMemory() 135 memoryValues[MetricIntf::SubType::memoryAvailable] = value; in readMemory() 139 memoryValues[MetricIntf::SubType::memoryFree] = value; in readMemory() 147 memoryValues[MetricIntf::SubType::memoryTotal] = value; in readMemory() 151 memoryValues[MetricIntf::SubType::memoryShared] += value; in readMemory() 192 case MetricIntf::Type::cpu: in read() 200 case MetricIntf::Type::memory: in read() [all …]
|
H A D | health_metric_collection.hpp | 8 namespace MetricIntf = phosphor::health::metric; 15 HealthMetricCollection(sdbusplus::bus_t& bus, MetricIntf::Type type, in HealthMetricCollection() 17 MetricIntf::paths_t& bmcPaths) : in HealthMetricCollection() 28 std::unique_ptr<MetricIntf::HealthMetric>>; 29 using time_map_t = std::unordered_map<MetricIntf::SubType, uint64_t>; 31 void create(const MetricIntf::paths_t& bmcPaths); 41 MetricIntf::Type type;
|
H A D | health_metric.hpp | 26 using MetricIntf = typedef 37 class HealthMetric : public MetricIntf 49 MetricIntf(bus, getPath(type, config.name, config.subType).c_str(), in HealthMetric()
|
H A D | health_monitor.hpp | 12 namespace MetricIntf = phosphor::health::metric; 32 MetricIntf::Type,
|
H A D | health_monitor.cpp | 60 constexpr auto path = MetricIntf::ValueIntf::Value::namespace_path::value; in main()
|
/openbmc/phosphor-health-monitor/test/ |
H A D | test_health_metric_collection.cpp | 9 namespace MetricIntf = phosphor::health::metric; 48 if (key == MetricIntf::Type::storage) in SetUp() 75 std::map<MetricIntf::Type, in createCollection() 78 MetricIntf::paths_t bmcPaths = {}; in createCollection()
|
/openbmc/pldm/platform-mc/ |
H A D | numeric_sensor.hpp | 33 using MetricIntf = sdbusplus::server::object_t< typedef 234 std::unique_ptr<MetricIntf> metricIntf = nullptr;
|
H A D | numeric_sensor.cpp | 344 metricIntf = std::make_unique<MetricIntf>(bus, path.c_str()); in NumericSensor() 604 metricIntf = std::make_unique<MetricIntf>(bus, path.c_str()); in NumericSensor()
|