From 9eebde9a39586b12502ad478e70117b220803d70 Mon Sep 17 00:00:00 2001 From: ashu-ciena <100347291+ashu-ciena@users.noreply.github.com> Date: Thu, 30 Jul 2026 11:48:41 +0530 Subject: [PATCH] Added a single snapshot time for GetResponse The data collected for each individual path in the notification, may carry a different timestamp from other paths. In that case, there is no single view of the complete data for the list of paths in the GetRequest. From a target's perspective the collection for a Subscribe request and a Get request is identical and only the mode of transport of those notification is different. The individual notification gives the timestamp of the collected data of the relevant path in a distributed environment. The target waits for all the individual collections to complete, pack it into a single Get response and send it. With this change, we introduce a timestamp for the entire snapshot, attached when the collection is complete for all the paths and the packet is ready to be sent to the client. --- proto/gnmi/gnmi.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/proto/gnmi/gnmi.proto b/proto/gnmi/gnmi.proto index da0fed3f..de5a7b80 100644 --- a/proto/gnmi/gnmi.proto +++ b/proto/gnmi/gnmi.proto @@ -433,6 +433,7 @@ message GetResponse { // Extension messages associated with the GetResponse. See the // gNMI extension specification for further definition. repeated gnmi_ext.Extension extension = 3; + optional int64 timestamp = 4; // snapshot time when data collection is complete. } // CapabilityRequest is sent by the client in the Capabilities RPC to request