From 15e26a4596bf2ffa431fa6c2d3348644da77f0bd Mon Sep 17 00:00:00 2001
From: Ricard Vilalta <ricard.vilalta@cttc.es>
Date: Tue, 12 Jul 2022 07:49:26 +0000
Subject: [PATCH] Update forecaster.proto

---
 proto/forecaster.proto | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/proto/forecaster.proto b/proto/forecaster.proto
index d88b4b644..739add18d 100644
--- a/proto/forecaster.proto
+++ b/proto/forecaster.proto
@@ -18,18 +18,22 @@ package forecaster;
 import "context.proto";
 
 service ForecasterService {
-  rpc GetForecastOfLink(context.LinkId) returns (context.Empty) {}
+  rpc GetForecastOfTopology (context.TopologyId) returns (Forecast) {}
+  rpc GetForecastOfLink(context.LinkId) returns (Forecast) {}
   rpc CheckService (context.ServiceId) returns (ForecastPrediction) {}
 }
 
-Forecast {
+message SingleForecast {
   context.Timestamp = 1;
   double value = 2;    
 }
 
-message LinkForecast {
-    LinkId link_id = 1;
-    repeated Forecast forecast = 2;
+message Forecast {
+    oneof uuid {
+      context.TopologyId = 1;
+      context.LinkId = 2;
+    }
+    repeated SingleForecast forecast = 3;
 }
 
 enum AvailabilityPredictionEnum {
-- 
GitLab