提供查询某集群未安装的节点数量的API

This commit is contained in:
刘祥超
2021-01-31 16:01:15 +08:00
parent 67db2783ba
commit a1ce71d9ad
2 changed files with 578 additions and 456 deletions

View File

@@ -73,6 +73,9 @@ service NodeService {
// 查找使用某个认证的所有节点
rpc findAllEnabledNodesWithGrantId (FindAllEnabledNodesWithGrantIdRequest) returns (FindAllEnabledNodesWithGrantIdResponse);
// 计算没有安装的节点数量
rpc countAllNotInstalledNodesWithClusterId (CountAllNotInstalledNodesWithClusterIdRequest) returns (RPCCountResponse);
// 列出所有未安装的节点
rpc findAllNotInstalledNodesWithClusterId (FindAllNotInstalledNodesWithClusterIdRequest) returns (FindAllNotInstalledNodesWithClusterIdResponse);
@@ -303,6 +306,11 @@ message FindAllNotInstalledNodesWithClusterIdResponse {
repeated Node nodes = 1;
}
// 计算未安装的节点数量
message CountAllNotInstalledNodesWithClusterIdRequest {
int64 nodeClusterId = 1;
}
// 计算需要升级的节点数量
message CountAllUpgradeNodesWithClusterIdRequest {
int64 nodeClusterId = 1;