Skip to content

Commit

Permalink
add getOverview
Browse files Browse the repository at this point in the history
  • Loading branch information
Time Hoo committed Nov 18, 2022
1 parent 95c9e8f commit 629c248
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions hstream.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@ service HStreamApi {
// Shard APIs
rpc ListShards(ListShardsRequest) returns (ListShardsResponse) {}

rpc ListSubscriptions(ListSubscriptionsRequest)
returns (ListSubscriptionsResponse) {}
rpc CreateShardReader(CreateShardReaderRequest)
returns (CreateShardReaderResponse) {}
rpc LookupShardReader(LookupShardReaderRequest)
returns (LookupShardReaderResponse) {}
rpc ListShardReaders(ListShardReadersRequest)
returns (ListShardReadersResponse) {}
rpc ReadShard(ReadShardRequest) returns (ReadShardResponse) {}
rpc DeleteShardReader(DeleteShardReaderRequest)
returns (google.protobuf.Empty) {}
Expand All @@ -58,6 +62,7 @@ service HStreamApi {
rpc DescribeCluster(google.protobuf.Empty) returns (DescribeClusterResponse) {
}
rpc LookupResource(LookupResourceRequest) returns (ServerNode) {}
rpc GetOverview(GetOverviewRequest) returns (GetOverviewResponse) {}

// Admin Command
rpc SendAdminCommand(AdminCommandRequest) returns (AdminCommandResponse);
Expand Down Expand Up @@ -105,8 +110,6 @@ service HStreamApi {
rpc GetView(GetViewRequest) returns (View) {}
rpc DeleteView(DeleteViewRequest) returns (google.protobuf.Empty) {}

// overvew related apis
// rpc GetOverview(GetOverviewRequest) returns (GetOverviewResponse) {}

// FIXME: (store)node related apis
rpc ListNodes(ListNodesRequest) returns (ListNodesResponse) {}
Expand Down Expand Up @@ -308,8 +311,13 @@ message ReadShardRequest {
uint32 maxRecords = 2;
}

message ListShardReadersRequest {}
message ListShardReadersResponse { repeated ShardReader shardReaders = 1; }

message DeleteShardReaderRequest { string readerId = 1; }

message ShardReader { string id = 1; }

message ReadShardResponse { repeated ReceivedRecord receivedRecords = 1; }

message TerminateQueriesRequest {
Expand Down Expand Up @@ -390,6 +398,23 @@ message View {
repeated string schema = 5;
}

// Overview related
message GetOverviewRequest {}

message GetOverviewResponse {
string protocolVersion = 1;
string serverVersion = 2;
repeated ServerNodeStatus serverNodesStatus = 3;
uint64 clusterUpTime = 4;
repeated Stream allStreams = 5;
repeated Subscription allSubscriptions = 6;
repeated Shard allShards = 7;
repeated ShardReader allShardReaders = 8;
repeated Connector allConnectors = 9;
repeated View allViews = 10;
repeated Query allQueries = 11;
}

// Nodes related Request and Response
message GetNodeRequest { int32 id = 1; }

Expand Down

0 comments on commit 629c248

Please sign in to comment.