Home
last modified time | relevance | path

Searched full:readings (Results 1 – 25 of 226) sorted by relevance

12345678910

/openbmc/telemetry/src/metrics/
H A Dcollection_function.cpp11 double calculate(const std::vector<ReadingItem>& readings, in calculate() argument
15 readings.begin(), readings.end(), in calculate()
25 double calculateForStartupInterval(std::vector<ReadingItem>& readings, in calculateForStartupInterval() argument
28 readings.assign( in calculateForStartupInterval()
29 {ReadingItem(timestamp, calculate(readings, timestamp))}); in calculateForStartupInterval()
30 return readings.back().second; in calculateForStartupInterval()
37 double calculate(const std::vector<ReadingItem>& readings, in calculate() argument
41 readings.begin(), readings.end(), in calculate()
51 double calculateForStartupInterval(std::vector<ReadingItem>& readings, in calculateForStartupInterval() argument
54 readings.assign( in calculateForStartupInterval()
[all …]
H A Dcollection_data.cpp49 if (readings.empty()) in update()
56 return function->calculate(readings, timestamp); in update()
61 readings.emplace_back(timestamp, reading); in update()
65 return function->calculate(readings, timestamp); in update()
71 auto it = readings.begin(); in cleanup()
72 for (auto kt = std::next(readings.rbegin()); kt != readings.rend(); in cleanup()
83 readings.erase(readings.begin(), it); in cleanup()
87 readings.front().first = in cleanup()
88 std::max(readings.front().first, timestamp - duration.t); in cleanup()
93 std::vector<ReadingItem> readings; member in metrics::DataInterval
[all …]
H A Dcollection_function.hpp21 virtual double calculate(const std::vector<ReadingItem>& readings,
24 std::vector<ReadingItem>& readings, Milliseconds timestamp) const = 0;
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Telemetry/
H A DReport.interface.yaml10 It triggers update of the Readings property. If ReportingType is not
21 Indicates how readings should be updated. Possible values are
26 Period of time in milliseconds when readings are updated.
33 Configuration contains all Report properties excluding Readings.
40 providing readings. Metadata contains client information; in case of
42 action executed on readings. Metric ID contains name that can be
46 - name: Readings
49 Structure that contains timestamp of readings update in milliseconds
57 description: Defines how readings are updated.
62 description: Defines how Readings array is filled.
[all …]
H A DReportManager.interface.yaml27 Indicates when readings should be updated. Possible values are
32 Indicates how readings should be updated. Possible values are
37 Maximum number of entries in 'Readings' property.
41 Possible additional actions to trigger after readings' update,
47 readings. Minimal interval is defined in MinInterval property.
57 Indicates if readings in report will be updated.
77 Minimal allowed time between readings property updates. It limits
/openbmc/telemetry/src/types/
H A Dreadings.cpp1 #include "types/readings.hpp"
10 LabeledReadings toLabeledReadings(const Readings& readings) in toLabeledReadings() argument
13 std::get<0>(readings), in toLabeledReadings()
14 utils::transform(std::get<1>(readings), [](const auto& readingData) { in toLabeledReadings()
19 Readings toReadings(const LabeledReadings& labeledReadings) in toReadings()
21 return Readings{labeledReadings.at_label<ts::Timestamp>(), in toReadings()
22 utils::transform(labeledReadings.at_label<ts::Readings>(), in toReadings()
H A Dreadings.hpp7 using Readings = std::tuple<uint64_t, std::vector<ReadingData>>; typedef
15 utils::tstring::Timestamp, utils::tstring::Readings>;
20 LabeledReadings toLabeledReadings(const Readings&);
21 Readings toReadings(const LabeledReadings&);
/openbmc/bmcweb/redfish-core/include/
H A Dtelemetry_readings.hpp21 using Readings = std::vector<std::tuple<std::string, double, uint64_t>>; typedef
22 using TimestampReadings = std::tuple<uint64_t, Readings>;
24 inline nlohmann::json toMetricValues(const Readings& readings) in toMetricValues() argument
28 for (const auto& [metadata, sensorValue, timestamp] : readings) in toMetricValues()
52 const auto& [timestamp, readings] = timestampReadings; in fillReport()
54 json["MetricValues"] = toMetricValues(readings); in fillReport()
/openbmc/telemetry/tests/src/
H A Dtest_report.cpp86 std::vector<MetricValue> readings{ in initMetricMocks() local
89 ASSERT_THAT(readings.size(), Ge(metricParameters.size())); in initMetricMocks()
94 .WillByDefault(ReturnRefOfCopy(std::vector({readings[i]}))); in initMetricMocks()
145 params.readings()); in makeReport()
264 EXPECT_THAT(getProperty<Readings>(sut->getPath(), "Readings"), in TEST_F()
265 Eq(Readings{})); in TEST_F()
774 const auto [timestamp, readings] = in TEST_P()
775 getProperty<Readings>(sut->getPath(), "Readings"); in TEST_P()
786 const auto [timestamp, readings] = in TEST_P()
787 getProperty<Readings>(sut->getPath(), "Readings"); in TEST_P()
[all …]
H A Dtest_metric.cpp231 .readings(TestMetricCalculationFunctions::defaultReadings()) in defaultCollectionFunctionParams()
347 for (auto [timestamp, reading] : GetParam().readings()) in TEST_P()
356 const auto readings = sut->getUpdatedReadings(); in TEST_P() local
358 EXPECT_THAT(readings, ElementsAre(MetricValue{"metadata0", expectedReading, in TEST_P()
365 for (auto [timestamp, reading] : GetParam().readings()) in TEST_P()
375 const auto readings = sut->getUpdatedReadings(); in TEST_P() local
377 EXPECT_THAT(readings, ElementsAre(MetricValue{"metadata0", expectedReading, in TEST_P()
/openbmc/telemetry/tests/src/helpers/
H A Dreport_params_helpers.hpp3 #include "types/readings.hpp"
20 inline void PrintTo(const Readings& readings, std::ostream* os) in PrintTo() argument
22 const auto& [timestamp, readingDataVec] = readings; in PrintTo()
/openbmc/telemetry/src/
H A Dmetric.cpp67 if (i < readings.size()) in getUpdatedReadings()
69 readings[i].timestamp = systemTimestamp; in getUpdatedReadings()
70 readings[i].value = *value; in getUpdatedReadings()
74 if (i > readings.size()) in getUpdatedReadings()
76 const auto idx = readings.size(); in getUpdatedReadings()
83 readings.emplace_back(sensors[i]->metadata(), *value, in getUpdatedReadings()
89 return readings; in getUpdatedReadings()
H A Dreport_manager.cpp149 std::move(labeledMetricParams), enabled, Readings{}); in addReport()
158 const bool enabled, Readings readings) in addReport() argument
172 labeledMetricParams, enabled, std::move(readings))); in addReport()
208 Readings readings = {}; in loadFromPersistent() local
213 readings = utils::toReadings(labeledReadings); in loadFromPersistent()
220 std::move(readings)); in loadFromPersistent()
H A Dreport.hpp12 #include "types/readings.hpp"
66 std::unique_ptr<interfaces::Clock> clock, Readings);
124 Readings readings = {}; member in Report
H A Dreport.cpp32 std::unique_ptr<interfaces::Clock> clock, Readings readingsIn) : in Report()
37 reportUpdates(reportUpdatesIn), readings(std::move(readingsIn)), in Report()
38 readingsBuffer(std::get<1>(readings), in Report()
280 dbusIface->register_property_r("Readings", readings, in makeReportInterface()
282 [this](const auto&) { return readings; }); in makeReportInterface()
472 std::get<0>(readings) = in updateReadings()
478 reportIface->signal_property("Readings"); in updateReadings()
513 data["MetricValues"] = utils::toLabeledReadings(readings); in storeConfiguration()
/openbmc/telemetry/tests/src/params/
H A Dreport_params.hpp112 ReportParams& readings(Readings val) in readings() function in ReportParams
118 Readings readings() const in readings() function in ReportParams
137 *os << ", Readings: "; in PrintTo()
167 Readings readingsProperty = {};
H A Dmetric_params.hpp49 MetricParams& readings(std::vector<std::pair<Milliseconds, double>> value) in readings() function in MetricParams
55 const std::vector<std::pair<Milliseconds, double>>& readings() const in readings() function in MetricParams
99 << ", readings: { "; in operator <<()
100 for (auto [timestamp, reading] : mp.readings()) in operator <<()
/openbmc/bmcweb/redfish-core/src/
H A Ddbus_log_watcher.cpp131 return x.first == "Readings"; in getReadingsForReport()
135 BMCWEB_LOG_INFO("Failed to get Readings from Report properties"); in getReadingsForReport()
139 const telemetry::TimestampReadings* readings = in getReadingsForReport() local
141 if (readings == nullptr) in getReadingsForReport()
143 BMCWEB_LOG_INFO("Failed to get Readings from Report properties"); in getReadingsForReport()
146 EventServiceManager::sendTelemetryReportToSubs(id, *readings); in getReadingsForReport()
/openbmc/linux/drivers/hwmon/peci/
DKconfig
/openbmc/openbmc-test-automation/redfish/systems/
H A Dtest_powersupply_readings.robot2 Documentation Get the system power supply voltage readings.
70 # reading_type The power watt readings (e.g. "PowerInputWatts")
82 # reading_type The power voltage readings (e.g. "ReadingVolts")
H A Dtest_power_control_metrics.robot2 Documentation Get the system power supply voltage readings.
35 # reading_type The power metric readings (e.g. "PowerConsumedWatts")
/openbmc/linux/Documentation/hwmon/
Demc2103.rst
/openbmc/telemetry/src/interfaces/
H A Dreport_factory.hpp7 #include "types/readings.hpp"
45 Readings) const = 0;
/openbmc/linux/include/linux/spi/
Dads7846.h
/openbmc/openpower-occ-control/
H A DREADME.md4 processors. The OCC provides processor and memory temperatures, power readings,
7 readings, updating the system power mode, setting power caps, and idle power

12345678910