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/types/operation_type.hpp b/src/types/operation_type.hpp
index 29bceb4..6d19620 100644
--- a/src/types/operation_type.hpp
+++ b/src/types/operation_type.hpp
@@ -8,7 +8,6 @@
enum class OperationType : uint32_t
{
- single,
max,
min,
avg,
@@ -18,18 +17,15 @@
namespace utils
{
-constexpr std::array<std::pair<std::string_view, OperationType>, 5>
- convDataOperationType = {
- {std::make_pair<std::string_view, OperationType>("SINGLE",
- OperationType::single),
- std::make_pair<std::string_view, OperationType>("Maximum",
- OperationType::max),
- std::make_pair<std::string_view, OperationType>("Minimum",
- OperationType::min),
- std::make_pair<std::string_view, OperationType>("Average",
- OperationType::avg),
- std::make_pair<std::string_view, OperationType>("Summation",
- OperationType::sum)}};
+constexpr std::array<std::pair<std::string_view, OperationType>, 4>
+ convDataOperationType = {{std::make_pair<std::string_view, OperationType>(
+ "Maximum", OperationType::max),
+ std::make_pair<std::string_view, OperationType>(
+ "Minimum", OperationType::min),
+ std::make_pair<std::string_view, OperationType>(
+ "Average", OperationType::avg),
+ std::make_pair<std::string_view, OperationType>(
+ "Summation", OperationType::sum)}};
inline OperationType
toOperationType(std::underlying_type_t<OperationType> value)