mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-10 18:30:25 +08:00
实现集群CC防护策略设置
This commit is contained in:
@@ -173,6 +173,9 @@ service NodeService {
|
||||
// 查找节点的UAM策略
|
||||
rpc findNodeUAMPolicies(FindNodeUAMPoliciesRequest) returns (FindNodeUAMPoliciesResponse);
|
||||
|
||||
// 查找节点的HTTP CC策略
|
||||
rpc findNodeHTTPCCPolicies(FindNodeHTTPCCPoliciesRequest) returns (FindNodeHTTPCCPoliciesResponse);
|
||||
|
||||
// 查找节点的自定义页面策略
|
||||
rpc findNodeHTTPPagesPolicies(FindNodeHTTPPagesPoliciesRequest) returns (FindNodeHTTPPagesPoliciesResponse);
|
||||
|
||||
@@ -701,6 +704,20 @@ message FindNodeUAMPoliciesResponse {
|
||||
}
|
||||
}
|
||||
|
||||
// 查找节点的HTTP CC策略
|
||||
message FindNodeHTTPCCPoliciesRequest {
|
||||
int64 nodeId = 1; // 节点ID
|
||||
}
|
||||
|
||||
message FindNodeHTTPCCPoliciesResponse {
|
||||
repeated HTTPCCPolicy httpCCPolicies = 1; // HTTP CC策略列表
|
||||
|
||||
message HTTPCCPolicy {
|
||||
int64 nodeClusterId = 1; // 集群ID
|
||||
bytes httpCCPolicyJSON = 2; // HTTP CC策略配置
|
||||
}
|
||||
}
|
||||
|
||||
// 查找节点的自定义页面策略
|
||||
message FindNodeHTTPPagesPoliciesRequest {
|
||||
int64 nodeId = 1; // 节点ID
|
||||
|
||||
@@ -129,6 +129,12 @@ service NodeClusterService {
|
||||
// 设置集群的UAM策略
|
||||
rpc updateNodeClusterUAMPolicy(UpdateNodeClusterUAMPolicyRequest) returns (RPCSuccess);
|
||||
|
||||
// 读取集群的HTTP CC策略
|
||||
rpc findEnabledNodeClusterHTTPCCPolicy(FindEnabledNodeClusterHTTPCCPolicyRequest) returns (FindEnabledNodeClusterHTTPCCPolicyResponse);
|
||||
|
||||
// 设置集群的HTTP CC策略
|
||||
rpc updateNodeClusterHTTPCCPolicy(UpdateNodeClusterHTTPCCPolicyRequest) returns (RPCSuccess);
|
||||
|
||||
// 获取集群的DDoS设置
|
||||
rpc findNodeClusterDDoSProtection(FindNodeClusterDDoSProtectionRequest) returns (FindNodeClusterDDoSProtectionResponse);
|
||||
|
||||
@@ -464,6 +470,7 @@ message FindEnabledNodeClusterConfigInfoResponse {
|
||||
bool hasMetricItems = 6;
|
||||
bool webpIsOn = 7; // 是否定义了WebP策略
|
||||
bool uamIsOn = 10; // 是否定义了UAM策略
|
||||
bool httpCCIsOn = 12; // 是否定义了CC策略
|
||||
bool hasSystemServices = 8;
|
||||
bool hasDDoSProtection = 9;
|
||||
bool hasHTTPPagesPolicy = 11; // 是否设置了自定义页面策略
|
||||
@@ -505,6 +512,21 @@ message UpdateNodeClusterUAMPolicyRequest {
|
||||
bytes uamPolicyJSON = 2;
|
||||
}
|
||||
|
||||
// 读取集群的HTTP CC策略
|
||||
message FindEnabledNodeClusterHTTPCCPolicyRequest {
|
||||
int64 nodeClusterId = 1;
|
||||
}
|
||||
|
||||
message FindEnabledNodeClusterHTTPCCPolicyResponse {
|
||||
bytes httpCCPolicyJSON = 1;
|
||||
}
|
||||
|
||||
// 设置集群的HTTP CC策略
|
||||
message UpdateNodeClusterHTTPCCPolicyRequest {
|
||||
int64 nodeClusterId = 1;
|
||||
bytes httpCCPolicyJSON = 2;
|
||||
}
|
||||
|
||||
// 获取集群的DDoS设置
|
||||
message FindNodeClusterDDoSProtectionRequest {
|
||||
int64 nodeClusterId = 1;
|
||||
|
||||
Reference in New Issue
Block a user