Added Periodic reportingType support to Report
When report interval expires report will collect readings from
metrics and update timestamp.
Tested:
- Added new units tests covering added code
- All existing unit tests are passing
Change-Id: I7f23ca05d77efb0f18d2c0d0f138c524ffb4f6af
Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
diff --git a/tests/src/params/report_params.hpp b/tests/src/params/report_params.hpp
new file mode 100644
index 0000000..908fb5d
--- /dev/null
+++ b/tests/src/params/report_params.hpp
@@ -0,0 +1,34 @@
+#pragma once
+
+#include <chrono>
+#include <string>
+
+class ReportParams final
+{
+ public:
+ ReportParams& reportName(std::string val)
+ {
+ reportNameProperty = std::move(val);
+ return *this;
+ }
+
+ const std::string& reportName() const
+ {
+ return reportNameProperty;
+ }
+
+ ReportParams& reportingType(std::string val)
+ {
+ reportingTypeProperty = std::move(val);
+ return *this;
+ }
+
+ const std::string& reportingType() const
+ {
+ return reportingTypeProperty;
+ }
+
+ protected:
+ std::string reportNameProperty = "TestReport";
+ std::string reportingTypeProperty = "OnRequest";
+};
\ No newline at end of file