grpc added simple throughputs stream events
This commit is contained in:
parent
5542dbbce2
commit
4c1d7bfb22
4 changed files with 109 additions and 2 deletions
|
@ -26,9 +26,11 @@ service CoreApi {
|
|||
rpc SetSessionState (SetSessionStateRequest) returns (SetSessionStateResponse) {
|
||||
}
|
||||
|
||||
// event streams
|
||||
// streams
|
||||
rpc Events (EventsRequest) returns (stream Event) {
|
||||
}
|
||||
rpc Throughputs (ThroughputsRequest) returns (stream ThroughputsEvent) {
|
||||
}
|
||||
|
||||
// node rpc
|
||||
rpc AddNode (AddNodeRequest) returns (AddNodeResponse) {
|
||||
|
@ -195,6 +197,25 @@ message EventsRequest {
|
|||
int32 session_id = 1;
|
||||
}
|
||||
|
||||
message ThroughputsRequest {
|
||||
}
|
||||
|
||||
message ThroughputsEvent {
|
||||
repeated BridgeThroughput bridge_throughputs = 1;
|
||||
repeated InterfaceThroughput interface_throughputs = 2;
|
||||
}
|
||||
|
||||
message InterfaceThroughput {
|
||||
int32 node_id = 1;
|
||||
int32 interface_id = 2;
|
||||
double throughput = 3;
|
||||
}
|
||||
|
||||
message BridgeThroughput {
|
||||
int32 node_id = 1;
|
||||
double throughput = 2;
|
||||
}
|
||||
|
||||
message Event {
|
||||
oneof event_type {
|
||||
SessionEvent session_event = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue