made MetricValues persistent
MetricValues are persistent for reportUpdates AppendStopsWhenFull and
reportingType different than OnRequest.
Tested:
- New unit tests are passing
- Confirmed MetricValues are preserved after restarting telemetry
service
Change-Id: I7e1990fb391da9debb0d7df2f1dbda86473350cc
Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
diff --git a/src/report_manager.hpp b/src/report_manager.hpp
index 96e7cab..d5653b2 100644
--- a/src/report_manager.hpp
+++ b/src/report_manager.hpp
@@ -50,12 +50,14 @@
const std::vector<ReportAction>& reportActions, Milliseconds interval,
const uint64_t appendLimit, const ReportUpdates reportUpdates,
ReadingParameters metricParams, const bool enabled);
- interfaces::Report& addReport(
- const std::string& reportId, const std::string& reportName,
- const ReportingType reportingType,
- const std::vector<ReportAction>& reportActions, Milliseconds interval,
- const uint64_t appendLimit, const ReportUpdates reportUpdates,
- std::vector<LabeledMetricParameters> metricParams, const bool enabled);
+ interfaces::Report&
+ addReport(const std::string& reportId, const std::string& reportName,
+ const ReportingType reportingType,
+ const std::vector<ReportAction>& reportActions,
+ Milliseconds interval, const uint64_t appendLimit,
+ const ReportUpdates reportUpdates,
+ std::vector<LabeledMetricParameters> metricParams,
+ const bool enabled, Readings);
void loadFromPersistent();
public: