Commit 71198a61 authored by Sebastien Merle's avatar Sebastien Merle
Browse files

Use Empty defined in the context to prevent duplication

parent 891e20ac
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -18,13 +18,13 @@ import "context.proto";

service L3Centralizedattackdetector {
  // Analyze single input to the ML model in the CAD component
  rpc AnalyzeConnectionStatistics (L3CentralizedattackdetectorMetrics) returns (Empty) {}
  rpc AnalyzeConnectionStatistics (L3CentralizedattackdetectorMetrics) returns (context.Empty) {}

  // Analyze a batch of inputs to the ML model in the CAD component
  rpc AnalyzeBatchConnectionStatistics (L3CentralizedattackdetectorBatchInput) returns (Empty) {}
  rpc AnalyzeBatchConnectionStatistics (L3CentralizedattackdetectorBatchInput) returns (context.Empty) {}

  // Get the list of features used by the ML model in the CAD component
  rpc GetFeaturesIds (Empty) returns (AutoFeatures) {}
  rpc GetFeaturesIds (context.Empty) returns (AutoFeatures) {}
}

message Feature {
@@ -63,6 +63,6 @@ message L3CentralizedattackdetectorBatchInput {
	repeated L3CentralizedattackdetectorMetrics metrics = 1;
}

message Empty {
	string message = 1;
}
// message Empty {
// 	string message = 1;
// }