23
interface/proto/sq/v1/health.proto
Normal file
23
interface/proto/sq/v1/health.proto
Normal file
@@ -0,0 +1,23 @@
|
||||
syntax = "proto3";
|
||||
package sq.v1;
|
||||
|
||||
service StatusService {
|
||||
rpc Status(GetStatusRequest) returns (GetStatusResponse) {}
|
||||
}
|
||||
|
||||
message GetStatusRequest {}
|
||||
|
||||
message GetStatusResponse {
|
||||
string node_id = 1;
|
||||
ClusterStatus cluster = 2;
|
||||
}
|
||||
|
||||
message ClusterStatus {
|
||||
repeated NodeInfo nodes = 1;
|
||||
}
|
||||
|
||||
message NodeInfo {
|
||||
string node_id = 1;
|
||||
string address = 2;
|
||||
string status = 3;
|
||||
}
|
||||
Reference in New Issue
Block a user