增加服务分组管理

This commit is contained in:
刘祥超
2020-10-29 20:53:47 +08:00
parent 9ce56697de
commit a6e7a48125
6 changed files with 1531 additions and 181 deletions

View File

@@ -78,6 +78,9 @@ service ServerService {
// 计算运行在某个集群上的所有服务数量
rpc countAllEnabledServersWithNodeClusterId (CountAllEnabledServersWithNodeClusterIdRequest) returns (CountAllEnabledServersWithNodeClusterIdResponse);
// 计算使用某个分组的服务数量
rpc countAllEnabledServersWithGroupId (CountAllEnabledServersWithGroupIdRequest) returns (CountAllEnabledServersWithGroupIdResponse);
}
// 创建服务
@@ -280,4 +283,14 @@ message CountAllEnabledServersWithNodeClusterIdRequest {
message CountAllEnabledServersWithNodeClusterIdResponse {
int64 count = 1;
}
}
// 计算使用某个分组的服务数量
message CountAllEnabledServersWithGroupIdRequest {
int64 groupId = 1;
}
message CountAllEnabledServersWithGroupIdResponse {
int64 count = 1;
}