report.hpp (3a1c297a36bcd78d33ee45c603cb1b46e4619f49) | report.hpp (cff70c14ef8cadb7fffd0cd41e06b972fa240e56) |
---|---|
1#pragma once 2 3#include "interfaces/clock.hpp" 4#include "interfaces/json_storage.hpp" 5#include "interfaces/metric.hpp" 6#include "interfaces/metric_listener.hpp" 7#include "interfaces/report.hpp" 8#include "interfaces/report_factory.hpp" --- 94 unchanged lines hidden (view full) --- 103 const std::vector<std::shared_ptr<interfaces::Metric>>& metrics); 104 interfaces::JsonStorage::FilePath reportFileName() const; 105 std::unordered_set<std::string> 106 collectTriggerIds(boost::asio::io_context& ioc) const; 107 bool storeConfiguration() const; 108 bool shouldStoreMetricValues() const; 109 void updateReadings(); 110 void scheduleTimer(); | 1#pragma once 2 3#include "interfaces/clock.hpp" 4#include "interfaces/json_storage.hpp" 5#include "interfaces/metric.hpp" 6#include "interfaces/metric_listener.hpp" 7#include "interfaces/report.hpp" 8#include "interfaces/report_factory.hpp" --- 94 unchanged lines hidden (view full) --- 103 const std::vector<std::shared_ptr<interfaces::Metric>>& metrics); 104 interfaces::JsonStorage::FilePath reportFileName() const; 105 std::unordered_set<std::string> 106 collectTriggerIds(boost::asio::io_context& ioc) const; 107 bool storeConfiguration() const; 108 bool shouldStoreMetricValues() const; 109 void updateReadings(); 110 void scheduleTimer(); |
111 std::vector<ErrorMessage> verify() const; | 111 static std::vector<ErrorMessage> verify(ReportingType, Milliseconds); |
112 113 std::string id; 114 const sdbusplus::message::object_path path; 115 std::string name; 116 ReportingType reportingType; 117 Milliseconds interval; 118 std::unordered_set<ReportAction> reportActions; | 112 113 std::string id; 114 const sdbusplus::message::object_path path; 115 std::string name; 116 ReportingType reportingType; 117 Milliseconds interval; 118 std::unordered_set<ReportAction> reportActions; |
119 ReadingParametersPastVersion readingParametersPastVersion; | |
120 ReadingParameters readingParameters; 121 bool persistency = false; 122 uint64_t metricCount; 123 uint64_t appendLimit; 124 ReportUpdates reportUpdates; 125 Readings readings = {}; 126 CircularVector<ReadingData> readingsBuffer; 127 std::shared_ptr<sdbusplus::asio::object_server> objServer; --- 5 unchanged lines hidden (view full) --- 133 134 interfaces::JsonStorage& reportStorage; 135 std::unique_ptr<interfaces::Clock> clock; 136 utils::Messanger messanger; 137 std::optional<OnChangeContext> onChangeContext; 138 utils::Ensure<std::function<void()>> unregisterFromMetrics; 139 State<ReportFlags, Report, ReportFlags::enabled, ReportFlags::valid> state{ 140 *this}; | 119 ReadingParameters readingParameters; 120 bool persistency = false; 121 uint64_t metricCount; 122 uint64_t appendLimit; 123 ReportUpdates reportUpdates; 124 Readings readings = {}; 125 CircularVector<ReadingData> readingsBuffer; 126 std::shared_ptr<sdbusplus::asio::object_server> objServer; --- 5 unchanged lines hidden (view full) --- 132 133 interfaces::JsonStorage& reportStorage; 134 std::unique_ptr<interfaces::Clock> clock; 135 utils::Messanger messanger; 136 std::optional<OnChangeContext> onChangeContext; 137 utils::Ensure<std::function<void()>> unregisterFromMetrics; 138 State<ReportFlags, Report, ReportFlags::enabled, ReportFlags::valid> state{ 139 *this}; |
141 std::vector<ErrorMessage> errorMessages; | |
142 143 public: 144 static constexpr const char* reportIfaceName = 145 "xyz.openbmc_project.Telemetry.Report"; 146 static constexpr const char* deleteIfaceName = 147 "xyz.openbmc_project.Object.Delete"; 148 static constexpr size_t reportVersion = 7; 149}; | 140 141 public: 142 static constexpr const char* reportIfaceName = 143 "xyz.openbmc_project.Telemetry.Report"; 144 static constexpr const char* deleteIfaceName = 145 "xyz.openbmc_project.Object.Delete"; 146 static constexpr size_t reportVersion = 7; 147}; |