@@ -18,7 +18,7 @@ namespace AliceO2
1818namespace Monitoring
1919{
2020
21- enum MetricType { INT = 0 , STRING = 1 , DOUBLE = 2 , UNSIGNEDLONGLONG = 3 };
21+ enum MetricType { INT = 0 , STRING = 1 , DOUBLE = 2 , UINT64_T = 3 };
2222
2323// / \brief Represents metric parameters except (value, name, entity and timestamp)
2424class Metric
@@ -29,6 +29,7 @@ class Metric
2929 // / \param name metric name
3030 // / \param timestamp metric timestamp in milliseconds
3131 Metric (int value, const std::string& name, std::chrono::time_point<std::chrono::system_clock> timestamp = Metric::getCurrentTimestamp());
32+
3233 // / Initialize class variables
3334 // / \param value metric value (string)
3435 // / \param name the metric name
@@ -42,10 +43,10 @@ class Metric
4243 Metric (double value, const std::string& name, std::chrono::time_point<std::chrono::system_clock> timestamp = Metric::getCurrentTimestamp());
4344
4445 // / Initialize class variables
45- // / \param value metric value (unsigned long long )
46+ // / \param value metric value (uint64_t )
4647 // / \param name metric name
4748 // / \param timestamp metric timestamp in milliseconds
48- Metric (unsigned long long value, const std::string& name, std::chrono::time_point<std::chrono::system_clock> timestamp = Metric::getCurrentTimestamp());
49+ Metric (uint64_t value, const std::string& name, std::chrono::time_point<std::chrono::system_clock> timestamp = Metric::getCurrentTimestamp());
4950
5051 // / Default destructor
5152 ~Metric () = default ;
@@ -60,7 +61,7 @@ class Metric
6061
6162 // / Value getter
6263 // / \return metric value
63- boost::variant< int , std::string, double , unsigned long long > getValue () const ;
64+ boost::variant< int , std::string, double , uint64_t > getValue () const ;
6465
6566 // / Value type getter
6667 // / \return type of value stores inside metric : 0 - int, 1 - std::string, 2 - double
@@ -86,7 +87,7 @@ class Metric
8687
8788 private:
8889 // / Metric value
89- boost::variant< int , std::string, double , unsigned long long > mValue ;
90+ boost::variant< int , std::string, double , uint64_t > mValue ;
9091
9192 // / Metric name
9293 std::string mName ;
0 commit comments