mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-07 23:30:25 +08:00
WAF增加多个动作
This commit is contained in:
@@ -3,12 +3,16 @@ option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/rpc_messages.proto";
|
||||
import "models/model_http_firewall_rule_group.proto";
|
||||
|
||||
// 防火墙全局服务
|
||||
service FirewallService {
|
||||
// 组合看板数据
|
||||
rpc composeFirewallGlobalBoard (ComposeFirewallGlobalBoardRequest) returns (ComposeFirewallGlobalBoardResponse);
|
||||
|
||||
// 发送告警(notify)消息
|
||||
rpc notifyHTTPFirewallEvent (NotifyHTTPFirewallEventRequest) returns (RPCSuccess);
|
||||
}
|
||||
|
||||
// 组合看板数据
|
||||
@@ -44,4 +48,13 @@ message ComposeFirewallGlobalBoardResponse {
|
||||
int64 countCaptcha = 3;
|
||||
int64 countBlocks = 4;
|
||||
}
|
||||
}
|
||||
|
||||
// 发送告警(notify)消息
|
||||
message NotifyHTTPFirewallEventRequest {
|
||||
int64 serverId = 1;
|
||||
int64 httpFirewallPolicyId = 2;
|
||||
int64 httpFirewallRuleGroupId = 3;
|
||||
int64 httpFirewallRuleSetId = 4;
|
||||
int64 createdAt = 5;
|
||||
}
|
||||
Reference in New Issue
Block a user