/openbmc/telemetry/src/metrics/ |
H A D | collection_function.cpp | 11 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 D | collection_data.cpp | 49 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 D | collection_function.hpp | 21 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 D | Report.interface.yaml | 10 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 D | ReportManager.interface.yaml | 27 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 D | readings.cpp | 1 #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 D | readings.hpp | 7 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/telemetry/tests/src/ |
H A D | test_report.cpp | 86 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 D | test_metric.cpp | 231 .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/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | adc128d818.txt | 6 - Mode 0: 7 single-ended voltage readings (IN0-IN6), 8 - Mode 1: 8 single-ended voltage readings (IN0-IN7), 10 - Mode 2: 4 pseudo-differential voltage readings 13 - Mode 3: 4 single-ended voltage readings (IN0-IN3), 14 2 pseudo-differential voltage readings
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | metric_report.hpp | 40 using Readings = std::vector<std::tuple<std::string, double, uint64_t>>; typedef 41 using TimestampReadings = std::tuple<uint64_t, Readings>; 43 inline nlohmann::json toMetricValues(const Readings& readings) in toMetricValues() argument 47 for (const auto& [metadata, sensorValue, timestamp] : readings) in toMetricValues() 71 const auto& [timestamp, readings] = timestampReadings; in fillReport() 73 json["MetricValues"] = toMetricValues(readings); in fillReport() 139 reportPath, telemetry::reportInterface, "Readings", in requestRoutesMetricReport()
|
/openbmc/telemetry/src/ |
H A D | metric.cpp | 67 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 D | report_manager.cpp | 149 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 D | report.hpp | 12 #include "types/readings.hpp" 66 std::unique_ptr<interfaces::Clock> clock, Readings); 124 Readings readings = {}; member in Report
|
H A D | report.cpp | 32 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 D | report_params.hpp | 112 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 D | metric_params.hpp | 49 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/linux/tools/bpf/bpftool/skeleton/ |
H A D | profiler.bpf.c | 20 /* readings at fentry */ 27 /* accumulated readings */ 102 struct bpf_perf_event_value___local readings[MAX_NUM_MATRICS]; in BPF_PROG() local 111 (void *)(readings + i), in BPF_PROG() 112 sizeof(*readings)); in BPF_PROG() 120 fexit_update_maps(i, &readings[i]); in BPF_PROG()
|
/openbmc/telemetry/tests/src/helpers/ |
H A D | report_params_helpers.hpp | 3 #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/bmcweb/redfish-core/src/ |
H A D | dbus_log_watcher.cpp | 131 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/Documentation/hwmon/ |
H A D | asus_ec_sensors.rst | 45 4. Readings from the T_Sensor header 50 9. Readings from the "Water flow meter" header (RPM) 51 10. Readings from the "Water In" and "Water Out" temperature headers
|
H A D | aquacomputer_d5next.rst | 57 The High Flow Next exposes +5V voltages, water quality, conductivity and flow readings. 62 target readings). It also exposes the estimated reservoir volume and how much of it is 66 The Aquastream XT pump exposes temperature readings for the coolant, external sensor 72 It also exposes pressure and flow speed readings.
|
/openbmc/openbmc-test-automation/redfish/systems/ |
H A D | test_powersupply_readings.robot | 2 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")
|
/openbmc/linux/drivers/firmware/arm_scmi/ |
H A D | sensors.c | 198 struct scmi_sensor_reading_resp readings[]; member 210 struct scmi_sensor_reading_resp readings[]; member 890 * @count: The length of the provided @readings array 891 * @readings: An array of elements each representing a timestamped per-axis 893 * Returned readings are ordered as the @axis descriptors array 903 struct scmi_sensor_reading *readings) in scmi_sensor_reading_get_timestamped() argument 915 if (!count || !readings || in scmi_sensor_reading_get_timestamped() 937 scmi_parse_sensor_readings(&readings[i], in scmi_sensor_reading_get_timestamped() 938 &resp->readings[i]); in scmi_sensor_reading_get_timestamped() 951 scmi_parse_sensor_readings(&readings[i], in scmi_sensor_reading_get_timestamped() [all …]
|
/openbmc/linux/drivers/hwmon/peci/ |
H A D | Kconfig | 11 readings of the CPU package and CPU cores that are accessible via 24 driver which provides Temperature Sensor on DIMM readings that are
|