[VOL-5527] New metrics message to represent 64 bit precision counters and floating type values
Change-Id: Ib53ff5b1bfa63da611fab37b3a17aadb0628ca47
Signed-off-by: pnalmas <praneeth.nalmas@radisys.com>
diff --git a/protos/voltha_protos/events.proto b/protos/voltha_protos/events.proto
index 6f180c5..17b83a3 100755
--- a/protos/voltha_protos/events.proto
+++ b/protos/voltha_protos/events.proto
@@ -108,12 +108,13 @@
/*
* Struct to group metadata for a metric (or group of metrics) with the key-value
- * pairs of collected metrics using 64-bit unsigned integers.
- * This is used for counters that can exceed the precision of float (e.g., FEC, GEM counters).
+ * pairs of collected metrics using 64-bit double precision floating point.
+ * This supports both floating-point metrics and large integer counters up to 2^53
+ * (e.g., FEC counters, GEM counters, optical power levels).
*/
message MetricInformation64 {
MetricMetaData metadata = 1;
- map<string, uint64> metrics = 2;
+ map<string, double> metrics = 2;
}
/*