Home
last modified time | relevance | path

Searched refs:MetricIntf (Results 1 – 8 of 8) sorted by relevance

/openbmc/phosphor-health-monitor/
H A Dhealth_metric_collection.cpp71 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 Dhealth_metric_collection.hpp8 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 Dhealth_metric.hpp26 using MetricIntf = typedef
37 class HealthMetric : public MetricIntf
49 MetricIntf(bus, getPath(type, config.name, config.subType).c_str(), in HealthMetric()
H A Dhealth_monitor.hpp12 namespace MetricIntf = phosphor::health::metric;
32 MetricIntf::Type,
H A Dhealth_monitor.cpp60 constexpr auto path = MetricIntf::ValueIntf::Value::namespace_path::value; in main()
/openbmc/phosphor-health-monitor/test/
H A Dtest_health_metric_collection.cpp9 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 Dnumeric_sensor.hpp33 using MetricIntf = sdbusplus::server::object_t< typedef
234 std::unique_ptr<MetricIntf> metricIntf = nullptr;
H A Dnumeric_sensor.cpp344 metricIntf = std::make_unique<MetricIntf>(bus, path.c_str()); in NumericSensor()
604 metricIntf = std::make_unique<MetricIntf>(bus, path.c_str()); in NumericSensor()