WAF增加多个动作

This commit is contained in:
GoEdgeLab
2021-07-18 16:26:45 +08:00
parent 9291406262
commit 1812fe7b09
14 changed files with 326 additions and 123 deletions

View File

@@ -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;
}