added property SupportedOperationTypes
- removed OperationType::single
- for backward compatibility incomming OperationType::single alted to
produce same output functionality
- added property SupportedOperationTypes to ReportManager interface
Tested:
- In cases where OperationType::single is used same MetricValues are
produced
- New property is visible on dbus
Change-Id: I838581c954abc0d8401e0ed530ce7e9c8013860b
Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
diff --git a/src/report_factory.cpp b/src/report_factory.cpp
index df71fa0..261fc75 100644
--- a/src/report_factory.cpp
+++ b/src/report_factory.cpp
@@ -97,6 +97,12 @@
{
operationType = utils::enumToString(OperationType::avg);
}
+ else if (operationType == "SINGLE")
+ {
+ operationType = utils::enumToString(OperationType::avg);
+ collectionTimeScope =
+ utils::enumToString(CollectionTimeScope::point);
+ }
if (collectionTimeScope.empty())
{