Skip to content
Snippets Groups Projects
Commit c2e535a0 authored by Ricard Vilalta's avatar Ricard Vilalta
Browse files

Preparing for proto freeze

parent 55e5ee56
No related branches found
No related tags found
1 merge request!54Release 2.0.0
#!/bin/bash #!/bin/bash
python3 -m grpc_tools.protoc -I=./ --python_out=src/ --grpc_python_out=src/ *.proto python3 -m grpc_tools.protoc -I=./ --python_out=../src/ --grpc_python_out=../src/ *.proto
#requires installation of protoc-gen-uml #requires installation of protoc-gen-uml
export PATH=${HOME}/protoc-gen-uml/target/universal/stage/bin:$PATH export PATH=${HOME}/protoc-gen-uml/target/universal/stage/bin:$PATH
protoc --uml_out=uml/ -I ./ *.proto protoc --uml_out=uml/ -I ./ *.proto
......
syntax = "proto3"; syntax = "proto3";
import "context.proto";
service L3Attackmitigator{ service L3Attackmitigator{
// Sends a greeting // Sends a greeting
rpc SendOutput (Output) returns (EmptyMitigator) {} rpc SendOutput (L3AttackmitigatorOutput) returns (context.Empty) {}
// Sends another greeting // Sends another greeting
rpc GetMitigation (EmptyMitigator) returns (EmptyMitigator) {} rpc GetMitigation (context.Empty) returns (context.Empty) {}
}
message EmptyMitigator {
optional string message = 1;
} }
message Output { message L3AttackmitigatorOutput {
float confidence = 1; float confidence = 1;
string timestamp = 2; string timestamp = 2;
string ip_o = 3; string ip_o = 3;
...@@ -22,7 +19,7 @@ message Output { ...@@ -22,7 +19,7 @@ message Output {
string flow_id = 6; string flow_id = 6;
string protocol = 7; string protocol = 7;
string port_d = 8; string port_d = 8;
optional string ml_id = 9; string ml_id = 9;
optional float time_start = 10; float time_start = 10;
optional float time_end = 11; float time_end = 11;
} }
...@@ -2,12 +2,12 @@ syntax = "proto3"; ...@@ -2,12 +2,12 @@ syntax = "proto3";
service L3Centralizedattackdetector { service L3Centralizedattackdetector {
// Sends a greeting // Sends a greeting
rpc SendInput (ModelInput) returns (Empty) {} rpc SendInput (L3CentralizedattackdetectorMetrics) returns (Empty) {}
// Sends another greeting // Sends another greeting
rpc GetOutput (Empty) returns (ModelOutput) {} rpc GetOutput (Empty) returns (L3CentralizedattackdetectorModelOutput) {}
} }
message ModelInput { message L3CentralizedattackdetectorMetrics {
/* /*
Model input sent to the Inferencer by the client Model input sent to the Inferencer by the client
There are currently 9 values and There are currently 9 values and
...@@ -30,15 +30,15 @@ message ModelInput { ...@@ -30,15 +30,15 @@ message ModelInput {
string port_d = 12; string port_d = 12;
string flow_id = 13; string flow_id = 13;
string protocol = 14; string protocol = 14;
optional float time_start = 15; float time_start = 15;
optional float time_end = 16; float time_end = 16;
} }
message Empty { message Empty {
optional string message = 1; string message = 1;
} }
message ModelOutput { message L3CentralizedattackdetectorModelOutput {
float confidence = 1; float confidence = 1;
string timestamp = 2; string timestamp = 2;
string ip_o = 3; string ip_o = 3;
...@@ -47,9 +47,9 @@ message ModelOutput { ...@@ -47,9 +47,9 @@ message ModelOutput {
string flow_id = 6; string flow_id = 6;
string protocol = 7; string protocol = 7;
string port_d = 8; string port_d = 8;
optional string ml_id = 9; string ml_id = 9;
optional float time_start = 10; float time_start = 10;
optional float time_end = 11; float time_end = 11;
} }
// Collections or streams? // Collections or streams?
......
proto/uml/Empty.png

4.28 KiB

proto/uml/L3AttackmitigatorOutput.png

9.82 KiB

proto/uml/L3CentralizedattackdetectorMetrics.png

12.7 KiB

proto/uml/L3CentralizedattackdetectorModelOutput.png

11.1 KiB

proto/uml/automation.png

31 KiB | W: | H:

proto/uml/automation.png

32.6 KiB | W: | H:

proto/uml/automation.png
proto/uml/automation.png
proto/uml/automation.png
proto/uml/automation.png
  • 2-up
  • Swipe
  • Onion skin
proto/uml/context.png

93.2 KiB | W: | H:

proto/uml/context.png

310 KiB | W: | H:

proto/uml/context.png
proto/uml/context.png
proto/uml/context.png
proto/uml/context.png
  • 2-up
  • Swipe
  • Onion skin
proto/uml/device.png

12.3 KiB

proto/uml/kpi_sample_types.png

7.16 KiB

proto/uml/monitoring.png

32.1 KiB | W: | H:

proto/uml/monitoring.png

61.6 KiB | W: | H:

proto/uml/monitoring.png
proto/uml/monitoring.png
proto/uml/monitoring.png
proto/uml/monitoring.png
  • 2-up
  • Swipe
  • Onion skin
proto/uml/policy.png

61 KiB | W: | H:

proto/uml/policy.png

77.1 KiB | W: | H:

proto/uml/policy.png
proto/uml/policy.png
proto/uml/policy.png
proto/uml/policy.png
  • 2-up
  • Swipe
  • Onion skin
proto/uml/service.png

76.5 KiB

proto/uml/slice.png

45.1 KiB | W: | H:

proto/uml/slice.png

44.4 KiB | W: | H:

proto/uml/slice.png
proto/uml/slice.png
proto/uml/slice.png
proto/uml/slice.png
  • 2-up
  • Swipe
  • Onion skin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment