From 958ebd75654e1a8d6b2d154d6c463dc69053ab17 Mon Sep 17 00:00:00 2001 From: Sergey Fomin Date: Wed, 12 Feb 2025 14:13:26 -0800 Subject: [PATCH] add batched sampling --- proto/gnpsi/gnpsi.proto | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proto/gnpsi/gnpsi.proto b/proto/gnpsi/gnpsi.proto index b8f3753..7d89108 100644 --- a/proto/gnpsi/gnpsi.proto +++ b/proto/gnpsi/gnpsi.proto @@ -30,6 +30,7 @@ service gNPSI { // updates from the device. Past updates, i.e., updates before the // subscription is received, will not be presented to the subscribing client. rpc Subscribe(Request) returns (stream Sample); + rpc SubscribeBatch(Request) returns (stream Samples); } message SFlowMetadata { @@ -86,3 +87,7 @@ message Sample { NetFlowMetadata netflow_metadata = 102; IPFIXMetadata ipfix_metadata = 103; } + +message Samples { + repeated Sample samples = 1; +} \ No newline at end of file