Home
last modified time | relevance | path

Searched refs:metricParams (Results 1 – 7 of 7) sorted by relevance

/openbmc/telemetry/src/types/
H A Dreport_types.cpp11 [](const LabeledMetricParameters& metricParams) { in toReadingParameters() argument
13 utils::transform(metricParams.at_label<ts::SensorPath>(), in toReadingParameters()
19 utils::enumToString(metricParams.at_label<ts::OperationType>()), in toReadingParameters()
21 metricParams.at_label<ts::CollectionTimeScope>()), in toReadingParameters()
22 metricParams.at_label<ts::CollectionDuration>().t.count()); in toReadingParameters()
/openbmc/telemetry/src/
H A Dreport_factory.cpp110 const ReadingParameters& metricParams) const in convertMetricParams()
112 if (metricParams.empty()) in convertMetricParams()
118 return getMetricParamsFromSensorTree(metricParams, tree); in convertMetricParams()
122 const ReadingParameters& metricParams) const in convertMetricParams()
124 if (metricParams.empty()) in convertMetricParams()
130 return getMetricParamsFromSensorTree(metricParams, tree); in convertMetricParams()
135 const ReadingParameters& metricParams, in getMetricParamsFromSensorTree() argument
140 return utils::transform(metricParams, [&tree](const auto& item) { in getMetricParamsFromSensorTree()
H A Dreport_factory.hpp22 const ReadingParameters& metricParams) const override;
25 const ReadingParameters& metricParams) const override;
46 const ReadingParameters& metricParams,
H A Dreport_manager.hpp37 const std::vector<LabeledMetricParameters>& metricParams);
56 ReadingParameters metricParams, const bool enabled);
63 std::vector<LabeledMetricParameters> metricParams,
H A Dreport_manager.cpp136 ReadingParameters metricParams, const bool enabled) in addReport() argument
139 metricParams); in addReport()
230 const std::vector<LabeledMetricParameters>& metricParams) in verifyMetricParams() argument
233 for (const auto& metricParam : metricParams) in verifyMetricParams()
240 if (metricParams.size() > ReportManager::maxNumberMetrics || in verifyMetricParams()
/openbmc/telemetry/src/interfaces/
H A Dreport_factory.hpp29 const ReadingParameters& metricParams) const = 0;
31 convertMetricParams(const ReadingParameters& metricParams) const = 0;
/openbmc/telemetry/tests/src/
H A Dtest_report_manager.cpp365 auto metricParams = reportParams.metricParameters(); in TEST_F() local
367 metricParams[0].at_label<utils::tstring::SensorPath>(); in TEST_F()
375 reportParams.metricParameters(std::move(metricParams)); in TEST_F()
388 auto metricParams = std::vector<LabeledMetricParameters>{}; in TEST_F()
392 metricParams.emplace_back( in TEST_F()
399 reportParams.metricParameters(std::move(metricParams)); in TEST_F()