@@ -43,10 +43,16 @@ class Metric
4343 Metric (double value, const std::string& name, std::chrono::time_point<std::chrono::system_clock> timestamp = Metric::getCurrentTimestamp());
4444
4545 // / Initialize class variables
46- // / \param value metric value (uint64_t )
46+ // / \param value metric value (int64_t )
4747 // / \param name metric name
4848 // / \param timestamp metric timestamp in milliseconds
49- Metric (uint64_t value, const std::string& name, std::chrono::time_point<std::chrono::system_clock> timestamp = Metric::getCurrentTimestamp());
49+ Metric (int64_t value, const std::string& name, std::chrono::time_point<std::chrono::system_clock> timestamp = Metric::getCurrentTimestamp());
50+
51+ // / Initialize class variables, required by derived metrics logic
52+ // / \param value metric value (boost variant)
53+ // / \param name metric name
54+ // / \param timestamp metric timestamp in milliseconds
55+ Metric (boost::variant< int , std::string, double , int64_t >, const std::string& name, std::chrono::time_point<std::chrono::system_clock> timestamp = Metric::getCurrentTimestamp());
5056
5157 // / Default destructor
5258 ~Metric () = default ;
@@ -61,7 +67,7 @@ class Metric
6167
6268 // / Value getter
6369 // / \return metric value
64- boost::variant< int , std::string, double , uint64_t > getValue () const ;
70+ boost::variant< int , std::string, double , int64_t > getValue () const ;
6571
6672 // / Value type getter
6773 // / \return type of value stores inside metric : 0 - int, 1 - std::string, 2 - double
@@ -87,7 +93,7 @@ class Metric
8793
8894 private:
8995 // / Metric value
90- boost::variant< int , std::string, double , uint64_t > mValue ;
96+ boost::variant< int , std::string, double , int64_t > mValue ;
9197
9298 // / Metric name
9399 std::string mName ;
0 commit comments