Files
waf-platform/EdgeCommon/pkg/rpc/pb/service_firewall.pb.go
2026-03-22 17:37:40 +08:00

918 lines
34 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v3.19.6
// source: service_firewall.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 组合看板数据
type ComposeFirewallGlobalBoardRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ComposeFirewallGlobalBoardRequest) Reset() {
*x = ComposeFirewallGlobalBoardRequest{}
mi := &file_service_firewall_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ComposeFirewallGlobalBoardRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ComposeFirewallGlobalBoardRequest) ProtoMessage() {}
func (x *ComposeFirewallGlobalBoardRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_firewall_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ComposeFirewallGlobalBoardRequest.ProtoReflect.Descriptor instead.
func (*ComposeFirewallGlobalBoardRequest) Descriptor() ([]byte, []int) {
return file_service_firewall_proto_rawDescGZIP(), []int{0}
}
type ComposeFirewallGlobalBoardResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
CountDailyLogs int64 `protobuf:"varint,1,opt,name=countDailyLogs,proto3" json:"countDailyLogs,omitempty"`
CountDailyBlocks int64 `protobuf:"varint,2,opt,name=countDailyBlocks,proto3" json:"countDailyBlocks,omitempty"`
CountDailyCaptcha int64 `protobuf:"varint,3,opt,name=countDailyCaptcha,proto3" json:"countDailyCaptcha,omitempty"`
CountWeeklyBlocks int64 `protobuf:"varint,4,opt,name=countWeeklyBlocks,proto3" json:"countWeeklyBlocks,omitempty"`
HttpFirewallRuleGroups []*ComposeFirewallGlobalBoardResponse_HTTPFirewallRuleGroupStat `protobuf:"bytes,30,rep,name=httpFirewallRuleGroups,proto3" json:"httpFirewallRuleGroups,omitempty"`
DailyStats []*ComposeFirewallGlobalBoardResponse_DailyStat `protobuf:"bytes,31,rep,name=dailyStats,proto3" json:"dailyStats,omitempty"`
HourlyStats []*ComposeFirewallGlobalBoardResponse_HourlyStat `protobuf:"bytes,32,rep,name=hourlyStats,proto3" json:"hourlyStats,omitempty"`
TopNodeStats []*ComposeFirewallGlobalBoardResponse_NodeStat `protobuf:"bytes,33,rep,name=topNodeStats,proto3" json:"topNodeStats,omitempty"`
TopDomainStats []*ComposeFirewallGlobalBoardResponse_DomainStat `protobuf:"bytes,34,rep,name=topDomainStats,proto3" json:"topDomainStats,omitempty"`
TopCountryStats []*ComposeFirewallGlobalBoardResponse_CountryStat `protobuf:"bytes,35,rep,name=topCountryStats,proto3" json:"topCountryStats,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ComposeFirewallGlobalBoardResponse) Reset() {
*x = ComposeFirewallGlobalBoardResponse{}
mi := &file_service_firewall_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ComposeFirewallGlobalBoardResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ComposeFirewallGlobalBoardResponse) ProtoMessage() {}
func (x *ComposeFirewallGlobalBoardResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_firewall_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ComposeFirewallGlobalBoardResponse.ProtoReflect.Descriptor instead.
func (*ComposeFirewallGlobalBoardResponse) Descriptor() ([]byte, []int) {
return file_service_firewall_proto_rawDescGZIP(), []int{1}
}
func (x *ComposeFirewallGlobalBoardResponse) GetCountDailyLogs() int64 {
if x != nil {
return x.CountDailyLogs
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse) GetCountDailyBlocks() int64 {
if x != nil {
return x.CountDailyBlocks
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse) GetCountDailyCaptcha() int64 {
if x != nil {
return x.CountDailyCaptcha
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse) GetCountWeeklyBlocks() int64 {
if x != nil {
return x.CountWeeklyBlocks
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse) GetHttpFirewallRuleGroups() []*ComposeFirewallGlobalBoardResponse_HTTPFirewallRuleGroupStat {
if x != nil {
return x.HttpFirewallRuleGroups
}
return nil
}
func (x *ComposeFirewallGlobalBoardResponse) GetDailyStats() []*ComposeFirewallGlobalBoardResponse_DailyStat {
if x != nil {
return x.DailyStats
}
return nil
}
func (x *ComposeFirewallGlobalBoardResponse) GetHourlyStats() []*ComposeFirewallGlobalBoardResponse_HourlyStat {
if x != nil {
return x.HourlyStats
}
return nil
}
func (x *ComposeFirewallGlobalBoardResponse) GetTopNodeStats() []*ComposeFirewallGlobalBoardResponse_NodeStat {
if x != nil {
return x.TopNodeStats
}
return nil
}
func (x *ComposeFirewallGlobalBoardResponse) GetTopDomainStats() []*ComposeFirewallGlobalBoardResponse_DomainStat {
if x != nil {
return x.TopDomainStats
}
return nil
}
func (x *ComposeFirewallGlobalBoardResponse) GetTopCountryStats() []*ComposeFirewallGlobalBoardResponse_CountryStat {
if x != nil {
return x.TopCountryStats
}
return nil
}
// 发送告警(notify)消息
type NotifyHTTPFirewallEventRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
ServerId int64 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"`
HttpFirewallPolicyId int64 `protobuf:"varint,2,opt,name=httpFirewallPolicyId,proto3" json:"httpFirewallPolicyId,omitempty"`
HttpFirewallRuleGroupId int64 `protobuf:"varint,3,opt,name=httpFirewallRuleGroupId,proto3" json:"httpFirewallRuleGroupId,omitempty"`
HttpFirewallRuleSetId int64 `protobuf:"varint,4,opt,name=httpFirewallRuleSetId,proto3" json:"httpFirewallRuleSetId,omitempty"`
CreatedAt int64 `protobuf:"varint,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NotifyHTTPFirewallEventRequest) Reset() {
*x = NotifyHTTPFirewallEventRequest{}
mi := &file_service_firewall_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NotifyHTTPFirewallEventRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NotifyHTTPFirewallEventRequest) ProtoMessage() {}
func (x *NotifyHTTPFirewallEventRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_firewall_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NotifyHTTPFirewallEventRequest.ProtoReflect.Descriptor instead.
func (*NotifyHTTPFirewallEventRequest) Descriptor() ([]byte, []int) {
return file_service_firewall_proto_rawDescGZIP(), []int{2}
}
func (x *NotifyHTTPFirewallEventRequest) GetServerId() int64 {
if x != nil {
return x.ServerId
}
return 0
}
func (x *NotifyHTTPFirewallEventRequest) GetHttpFirewallPolicyId() int64 {
if x != nil {
return x.HttpFirewallPolicyId
}
return 0
}
func (x *NotifyHTTPFirewallEventRequest) GetHttpFirewallRuleGroupId() int64 {
if x != nil {
return x.HttpFirewallRuleGroupId
}
return 0
}
func (x *NotifyHTTPFirewallEventRequest) GetHttpFirewallRuleSetId() int64 {
if x != nil {
return x.HttpFirewallRuleSetId
}
return 0
}
func (x *NotifyHTTPFirewallEventRequest) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
// 读取当前Block动作次数
type CountFirewallDailyBlocksRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CountFirewallDailyBlocksRequest) Reset() {
*x = CountFirewallDailyBlocksRequest{}
mi := &file_service_firewall_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CountFirewallDailyBlocksRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CountFirewallDailyBlocksRequest) ProtoMessage() {}
func (x *CountFirewallDailyBlocksRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_firewall_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CountFirewallDailyBlocksRequest.ProtoReflect.Descriptor instead.
func (*CountFirewallDailyBlocksRequest) Descriptor() ([]byte, []int) {
return file_service_firewall_proto_rawDescGZIP(), []int{3}
}
type CountFirewallDailyBlocksResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
CountBlocks int64 `protobuf:"varint,1,opt,name=countBlocks,proto3" json:"countBlocks,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CountFirewallDailyBlocksResponse) Reset() {
*x = CountFirewallDailyBlocksResponse{}
mi := &file_service_firewall_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CountFirewallDailyBlocksResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CountFirewallDailyBlocksResponse) ProtoMessage() {}
func (x *CountFirewallDailyBlocksResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_firewall_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CountFirewallDailyBlocksResponse.ProtoReflect.Descriptor instead.
func (*CountFirewallDailyBlocksResponse) Descriptor() ([]byte, []int) {
return file_service_firewall_proto_rawDescGZIP(), []int{4}
}
func (x *CountFirewallDailyBlocksResponse) GetCountBlocks() int64 {
if x != nil {
return x.CountBlocks
}
return 0
}
type ComposeFirewallGlobalBoardResponse_HTTPFirewallRuleGroupStat struct {
state protoimpl.MessageState `protogen:"open.v1"`
HttpFirewallRuleGroup *HTTPFirewallRuleGroup `protobuf:"bytes,1,opt,name=httpFirewallRuleGroup,proto3" json:"httpFirewallRuleGroup,omitempty"`
Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ComposeFirewallGlobalBoardResponse_HTTPFirewallRuleGroupStat) Reset() {
*x = ComposeFirewallGlobalBoardResponse_HTTPFirewallRuleGroupStat{}
mi := &file_service_firewall_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ComposeFirewallGlobalBoardResponse_HTTPFirewallRuleGroupStat) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ComposeFirewallGlobalBoardResponse_HTTPFirewallRuleGroupStat) ProtoMessage() {}
func (x *ComposeFirewallGlobalBoardResponse_HTTPFirewallRuleGroupStat) ProtoReflect() protoreflect.Message {
mi := &file_service_firewall_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ComposeFirewallGlobalBoardResponse_HTTPFirewallRuleGroupStat.ProtoReflect.Descriptor instead.
func (*ComposeFirewallGlobalBoardResponse_HTTPFirewallRuleGroupStat) Descriptor() ([]byte, []int) {
return file_service_firewall_proto_rawDescGZIP(), []int{1, 0}
}
func (x *ComposeFirewallGlobalBoardResponse_HTTPFirewallRuleGroupStat) GetHttpFirewallRuleGroup() *HTTPFirewallRuleGroup {
if x != nil {
return x.HttpFirewallRuleGroup
}
return nil
}
func (x *ComposeFirewallGlobalBoardResponse_HTTPFirewallRuleGroupStat) GetCount() int64 {
if x != nil {
return x.Count
}
return 0
}
type ComposeFirewallGlobalBoardResponse_HourlyStat struct {
state protoimpl.MessageState `protogen:"open.v1"`
Hour string `protobuf:"bytes,1,opt,name=hour,proto3" json:"hour,omitempty"`
CountLogs int64 `protobuf:"varint,2,opt,name=countLogs,proto3" json:"countLogs,omitempty"`
CountCaptcha int64 `protobuf:"varint,3,opt,name=countCaptcha,proto3" json:"countCaptcha,omitempty"`
CountBlocks int64 `protobuf:"varint,4,opt,name=countBlocks,proto3" json:"countBlocks,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ComposeFirewallGlobalBoardResponse_HourlyStat) Reset() {
*x = ComposeFirewallGlobalBoardResponse_HourlyStat{}
mi := &file_service_firewall_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ComposeFirewallGlobalBoardResponse_HourlyStat) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ComposeFirewallGlobalBoardResponse_HourlyStat) ProtoMessage() {}
func (x *ComposeFirewallGlobalBoardResponse_HourlyStat) ProtoReflect() protoreflect.Message {
mi := &file_service_firewall_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ComposeFirewallGlobalBoardResponse_HourlyStat.ProtoReflect.Descriptor instead.
func (*ComposeFirewallGlobalBoardResponse_HourlyStat) Descriptor() ([]byte, []int) {
return file_service_firewall_proto_rawDescGZIP(), []int{1, 1}
}
func (x *ComposeFirewallGlobalBoardResponse_HourlyStat) GetHour() string {
if x != nil {
return x.Hour
}
return ""
}
func (x *ComposeFirewallGlobalBoardResponse_HourlyStat) GetCountLogs() int64 {
if x != nil {
return x.CountLogs
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse_HourlyStat) GetCountCaptcha() int64 {
if x != nil {
return x.CountCaptcha
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse_HourlyStat) GetCountBlocks() int64 {
if x != nil {
return x.CountBlocks
}
return 0
}
type ComposeFirewallGlobalBoardResponse_DailyStat struct {
state protoimpl.MessageState `protogen:"open.v1"`
Day string `protobuf:"bytes,1,opt,name=day,proto3" json:"day,omitempty"`
CountLogs int64 `protobuf:"varint,2,opt,name=countLogs,proto3" json:"countLogs,omitempty"`
CountCaptcha int64 `protobuf:"varint,3,opt,name=countCaptcha,proto3" json:"countCaptcha,omitempty"`
CountBlocks int64 `protobuf:"varint,4,opt,name=countBlocks,proto3" json:"countBlocks,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ComposeFirewallGlobalBoardResponse_DailyStat) Reset() {
*x = ComposeFirewallGlobalBoardResponse_DailyStat{}
mi := &file_service_firewall_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ComposeFirewallGlobalBoardResponse_DailyStat) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ComposeFirewallGlobalBoardResponse_DailyStat) ProtoMessage() {}
func (x *ComposeFirewallGlobalBoardResponse_DailyStat) ProtoReflect() protoreflect.Message {
mi := &file_service_firewall_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ComposeFirewallGlobalBoardResponse_DailyStat.ProtoReflect.Descriptor instead.
func (*ComposeFirewallGlobalBoardResponse_DailyStat) Descriptor() ([]byte, []int) {
return file_service_firewall_proto_rawDescGZIP(), []int{1, 2}
}
func (x *ComposeFirewallGlobalBoardResponse_DailyStat) GetDay() string {
if x != nil {
return x.Day
}
return ""
}
func (x *ComposeFirewallGlobalBoardResponse_DailyStat) GetCountLogs() int64 {
if x != nil {
return x.CountLogs
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse_DailyStat) GetCountCaptcha() int64 {
if x != nil {
return x.CountCaptcha
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse_DailyStat) GetCountBlocks() int64 {
if x != nil {
return x.CountBlocks
}
return 0
}
type ComposeFirewallGlobalBoardResponse_NodeStat struct {
state protoimpl.MessageState `protogen:"open.v1"`
NodeId int64 `protobuf:"varint,1,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
NodeName string `protobuf:"bytes,2,opt,name=nodeName,proto3" json:"nodeName,omitempty"`
CountRequests int64 `protobuf:"varint,3,opt,name=countRequests,proto3" json:"countRequests,omitempty"`
Bytes int64 `protobuf:"varint,4,opt,name=bytes,proto3" json:"bytes,omitempty"`
CountAttackRequests int64 `protobuf:"varint,6,opt,name=countAttackRequests,proto3" json:"countAttackRequests,omitempty"`
AttackBytes int64 `protobuf:"varint,7,opt,name=attackBytes,proto3" json:"attackBytes,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ComposeFirewallGlobalBoardResponse_NodeStat) Reset() {
*x = ComposeFirewallGlobalBoardResponse_NodeStat{}
mi := &file_service_firewall_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ComposeFirewallGlobalBoardResponse_NodeStat) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ComposeFirewallGlobalBoardResponse_NodeStat) ProtoMessage() {}
func (x *ComposeFirewallGlobalBoardResponse_NodeStat) ProtoReflect() protoreflect.Message {
mi := &file_service_firewall_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ComposeFirewallGlobalBoardResponse_NodeStat.ProtoReflect.Descriptor instead.
func (*ComposeFirewallGlobalBoardResponse_NodeStat) Descriptor() ([]byte, []int) {
return file_service_firewall_proto_rawDescGZIP(), []int{1, 3}
}
func (x *ComposeFirewallGlobalBoardResponse_NodeStat) GetNodeId() int64 {
if x != nil {
return x.NodeId
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse_NodeStat) GetNodeName() string {
if x != nil {
return x.NodeName
}
return ""
}
func (x *ComposeFirewallGlobalBoardResponse_NodeStat) GetCountRequests() int64 {
if x != nil {
return x.CountRequests
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse_NodeStat) GetBytes() int64 {
if x != nil {
return x.Bytes
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse_NodeStat) GetCountAttackRequests() int64 {
if x != nil {
return x.CountAttackRequests
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse_NodeStat) GetAttackBytes() int64 {
if x != nil {
return x.AttackBytes
}
return 0
}
type ComposeFirewallGlobalBoardResponse_DomainStat struct {
state protoimpl.MessageState `protogen:"open.v1"`
ServerId int64 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"`
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
CountRequests int64 `protobuf:"varint,3,opt,name=countRequests,proto3" json:"countRequests,omitempty"`
Bytes int64 `protobuf:"varint,4,opt,name=bytes,proto3" json:"bytes,omitempty"`
CountAttackRequests int64 `protobuf:"varint,6,opt,name=countAttackRequests,proto3" json:"countAttackRequests,omitempty"`
AttackBytes int64 `protobuf:"varint,7,opt,name=attackBytes,proto3" json:"attackBytes,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ComposeFirewallGlobalBoardResponse_DomainStat) Reset() {
*x = ComposeFirewallGlobalBoardResponse_DomainStat{}
mi := &file_service_firewall_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ComposeFirewallGlobalBoardResponse_DomainStat) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ComposeFirewallGlobalBoardResponse_DomainStat) ProtoMessage() {}
func (x *ComposeFirewallGlobalBoardResponse_DomainStat) ProtoReflect() protoreflect.Message {
mi := &file_service_firewall_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ComposeFirewallGlobalBoardResponse_DomainStat.ProtoReflect.Descriptor instead.
func (*ComposeFirewallGlobalBoardResponse_DomainStat) Descriptor() ([]byte, []int) {
return file_service_firewall_proto_rawDescGZIP(), []int{1, 4}
}
func (x *ComposeFirewallGlobalBoardResponse_DomainStat) GetServerId() int64 {
if x != nil {
return x.ServerId
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse_DomainStat) GetDomain() string {
if x != nil {
return x.Domain
}
return ""
}
func (x *ComposeFirewallGlobalBoardResponse_DomainStat) GetCountRequests() int64 {
if x != nil {
return x.CountRequests
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse_DomainStat) GetBytes() int64 {
if x != nil {
return x.Bytes
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse_DomainStat) GetCountAttackRequests() int64 {
if x != nil {
return x.CountAttackRequests
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse_DomainStat) GetAttackBytes() int64 {
if x != nil {
return x.AttackBytes
}
return 0
}
type ComposeFirewallGlobalBoardResponse_CountryStat struct {
state protoimpl.MessageState `protogen:"open.v1"`
CountryName string `protobuf:"bytes,1,opt,name=countryName,proto3" json:"countryName,omitempty"`
Bytes int64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
CountRequests int64 `protobuf:"varint,3,opt,name=countRequests,proto3" json:"countRequests,omitempty"`
Percent float32 `protobuf:"fixed32,4,opt,name=percent,proto3" json:"percent,omitempty"` // 流量占比
CountAttackRequests int64 `protobuf:"varint,6,opt,name=countAttackRequests,proto3" json:"countAttackRequests,omitempty"`
AttackBytes int64 `protobuf:"varint,7,opt,name=attackBytes,proto3" json:"attackBytes,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ComposeFirewallGlobalBoardResponse_CountryStat) Reset() {
*x = ComposeFirewallGlobalBoardResponse_CountryStat{}
mi := &file_service_firewall_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ComposeFirewallGlobalBoardResponse_CountryStat) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ComposeFirewallGlobalBoardResponse_CountryStat) ProtoMessage() {}
func (x *ComposeFirewallGlobalBoardResponse_CountryStat) ProtoReflect() protoreflect.Message {
mi := &file_service_firewall_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ComposeFirewallGlobalBoardResponse_CountryStat.ProtoReflect.Descriptor instead.
func (*ComposeFirewallGlobalBoardResponse_CountryStat) Descriptor() ([]byte, []int) {
return file_service_firewall_proto_rawDescGZIP(), []int{1, 5}
}
func (x *ComposeFirewallGlobalBoardResponse_CountryStat) GetCountryName() string {
if x != nil {
return x.CountryName
}
return ""
}
func (x *ComposeFirewallGlobalBoardResponse_CountryStat) GetBytes() int64 {
if x != nil {
return x.Bytes
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse_CountryStat) GetCountRequests() int64 {
if x != nil {
return x.CountRequests
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse_CountryStat) GetPercent() float32 {
if x != nil {
return x.Percent
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse_CountryStat) GetCountAttackRequests() int64 {
if x != nil {
return x.CountAttackRequests
}
return 0
}
func (x *ComposeFirewallGlobalBoardResponse_CountryStat) GetAttackBytes() int64 {
if x != nil {
return x.AttackBytes
}
return 0
}
var File_service_firewall_proto protoreflect.FileDescriptor
const file_service_firewall_proto_rawDesc = "" +
"\n" +
"\x16service_firewall.proto\x12\x02pb\x1a\x19models/rpc_messages.proto\x1a+models/model_http_firewall_rule_group.proto\"#\n" +
"!ComposeFirewallGlobalBoardRequest\"\x93\x0e\n" +
"\"ComposeFirewallGlobalBoardResponse\x12&\n" +
"\x0ecountDailyLogs\x18\x01 \x01(\x03R\x0ecountDailyLogs\x12*\n" +
"\x10countDailyBlocks\x18\x02 \x01(\x03R\x10countDailyBlocks\x12,\n" +
"\x11countDailyCaptcha\x18\x03 \x01(\x03R\x11countDailyCaptcha\x12,\n" +
"\x11countWeeklyBlocks\x18\x04 \x01(\x03R\x11countWeeklyBlocks\x12x\n" +
"\x16httpFirewallRuleGroups\x18\x1e \x03(\v2@.pb.ComposeFirewallGlobalBoardResponse.HTTPFirewallRuleGroupStatR\x16httpFirewallRuleGroups\x12P\n" +
"\n" +
"dailyStats\x18\x1f \x03(\v20.pb.ComposeFirewallGlobalBoardResponse.DailyStatR\n" +
"dailyStats\x12S\n" +
"\vhourlyStats\x18 \x03(\v21.pb.ComposeFirewallGlobalBoardResponse.HourlyStatR\vhourlyStats\x12S\n" +
"\ftopNodeStats\x18! \x03(\v2/.pb.ComposeFirewallGlobalBoardResponse.NodeStatR\ftopNodeStats\x12Y\n" +
"\x0etopDomainStats\x18\" \x03(\v21.pb.ComposeFirewallGlobalBoardResponse.DomainStatR\x0etopDomainStats\x12\\\n" +
"\x0ftopCountryStats\x18# \x03(\v22.pb.ComposeFirewallGlobalBoardResponse.CountryStatR\x0ftopCountryStats\x1a\x82\x01\n" +
"\x19HTTPFirewallRuleGroupStat\x12O\n" +
"\x15httpFirewallRuleGroup\x18\x01 \x01(\v2\x19.pb.HTTPFirewallRuleGroupR\x15httpFirewallRuleGroup\x12\x14\n" +
"\x05count\x18\x02 \x01(\x03R\x05count\x1a\x84\x01\n" +
"\n" +
"HourlyStat\x12\x12\n" +
"\x04hour\x18\x01 \x01(\tR\x04hour\x12\x1c\n" +
"\tcountLogs\x18\x02 \x01(\x03R\tcountLogs\x12\"\n" +
"\fcountCaptcha\x18\x03 \x01(\x03R\fcountCaptcha\x12 \n" +
"\vcountBlocks\x18\x04 \x01(\x03R\vcountBlocks\x1a\x81\x01\n" +
"\tDailyStat\x12\x10\n" +
"\x03day\x18\x01 \x01(\tR\x03day\x12\x1c\n" +
"\tcountLogs\x18\x02 \x01(\x03R\tcountLogs\x12\"\n" +
"\fcountCaptcha\x18\x03 \x01(\x03R\fcountCaptcha\x12 \n" +
"\vcountBlocks\x18\x04 \x01(\x03R\vcountBlocks\x1a\xce\x01\n" +
"\bNodeStat\x12\x16\n" +
"\x06nodeId\x18\x01 \x01(\x03R\x06nodeId\x12\x1a\n" +
"\bnodeName\x18\x02 \x01(\tR\bnodeName\x12$\n" +
"\rcountRequests\x18\x03 \x01(\x03R\rcountRequests\x12\x14\n" +
"\x05bytes\x18\x04 \x01(\x03R\x05bytes\x120\n" +
"\x13countAttackRequests\x18\x06 \x01(\x03R\x13countAttackRequests\x12 \n" +
"\vattackBytes\x18\a \x01(\x03R\vattackBytes\x1a\xd0\x01\n" +
"\n" +
"DomainStat\x12\x1a\n" +
"\bserverId\x18\x01 \x01(\x03R\bserverId\x12\x16\n" +
"\x06domain\x18\x02 \x01(\tR\x06domain\x12$\n" +
"\rcountRequests\x18\x03 \x01(\x03R\rcountRequests\x12\x14\n" +
"\x05bytes\x18\x04 \x01(\x03R\x05bytes\x120\n" +
"\x13countAttackRequests\x18\x06 \x01(\x03R\x13countAttackRequests\x12 \n" +
"\vattackBytes\x18\a \x01(\x03R\vattackBytes\x1a\xd9\x01\n" +
"\vCountryStat\x12 \n" +
"\vcountryName\x18\x01 \x01(\tR\vcountryName\x12\x14\n" +
"\x05bytes\x18\x02 \x01(\x03R\x05bytes\x12$\n" +
"\rcountRequests\x18\x03 \x01(\x03R\rcountRequests\x12\x18\n" +
"\apercent\x18\x04 \x01(\x02R\apercent\x120\n" +
"\x13countAttackRequests\x18\x06 \x01(\x03R\x13countAttackRequests\x12 \n" +
"\vattackBytes\x18\a \x01(\x03R\vattackBytes\"\xfe\x01\n" +
"\x1eNotifyHTTPFirewallEventRequest\x12\x1a\n" +
"\bserverId\x18\x01 \x01(\x03R\bserverId\x122\n" +
"\x14httpFirewallPolicyId\x18\x02 \x01(\x03R\x14httpFirewallPolicyId\x128\n" +
"\x17httpFirewallRuleGroupId\x18\x03 \x01(\x03R\x17httpFirewallRuleGroupId\x124\n" +
"\x15httpFirewallRuleSetId\x18\x04 \x01(\x03R\x15httpFirewallRuleSetId\x12\x1c\n" +
"\tcreatedAt\x18\x05 \x01(\x03R\tcreatedAt\"!\n" +
"\x1fCountFirewallDailyBlocksRequest\"D\n" +
" CountFirewallDailyBlocksResponse\x12 \n" +
"\vcountBlocks\x18\x01 \x01(\x03R\vcountBlocks2\xb4\x02\n" +
"\x0fFirewallService\x12k\n" +
"\x1acomposeFirewallGlobalBoard\x12%.pb.ComposeFirewallGlobalBoardRequest\x1a&.pb.ComposeFirewallGlobalBoardResponse\x12M\n" +
"\x17notifyHTTPFirewallEvent\x12\".pb.NotifyHTTPFirewallEventRequest\x1a\x0e.pb.RPCSuccess\x12e\n" +
"\x18countFirewallDailyBlocks\x12#.pb.CountFirewallDailyBlocksRequest\x1a$.pb.CountFirewallDailyBlocksResponseB\x06Z\x04./pbb\x06proto3"
var (
file_service_firewall_proto_rawDescOnce sync.Once
file_service_firewall_proto_rawDescData []byte
)
func file_service_firewall_proto_rawDescGZIP() []byte {
file_service_firewall_proto_rawDescOnce.Do(func() {
file_service_firewall_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_firewall_proto_rawDesc), len(file_service_firewall_proto_rawDesc)))
})
return file_service_firewall_proto_rawDescData
}
var file_service_firewall_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_service_firewall_proto_goTypes = []any{
(*ComposeFirewallGlobalBoardRequest)(nil), // 0: pb.ComposeFirewallGlobalBoardRequest
(*ComposeFirewallGlobalBoardResponse)(nil), // 1: pb.ComposeFirewallGlobalBoardResponse
(*NotifyHTTPFirewallEventRequest)(nil), // 2: pb.NotifyHTTPFirewallEventRequest
(*CountFirewallDailyBlocksRequest)(nil), // 3: pb.CountFirewallDailyBlocksRequest
(*CountFirewallDailyBlocksResponse)(nil), // 4: pb.CountFirewallDailyBlocksResponse
(*ComposeFirewallGlobalBoardResponse_HTTPFirewallRuleGroupStat)(nil), // 5: pb.ComposeFirewallGlobalBoardResponse.HTTPFirewallRuleGroupStat
(*ComposeFirewallGlobalBoardResponse_HourlyStat)(nil), // 6: pb.ComposeFirewallGlobalBoardResponse.HourlyStat
(*ComposeFirewallGlobalBoardResponse_DailyStat)(nil), // 7: pb.ComposeFirewallGlobalBoardResponse.DailyStat
(*ComposeFirewallGlobalBoardResponse_NodeStat)(nil), // 8: pb.ComposeFirewallGlobalBoardResponse.NodeStat
(*ComposeFirewallGlobalBoardResponse_DomainStat)(nil), // 9: pb.ComposeFirewallGlobalBoardResponse.DomainStat
(*ComposeFirewallGlobalBoardResponse_CountryStat)(nil), // 10: pb.ComposeFirewallGlobalBoardResponse.CountryStat
(*HTTPFirewallRuleGroup)(nil), // 11: pb.HTTPFirewallRuleGroup
(*RPCSuccess)(nil), // 12: pb.RPCSuccess
}
var file_service_firewall_proto_depIdxs = []int32{
5, // 0: pb.ComposeFirewallGlobalBoardResponse.httpFirewallRuleGroups:type_name -> pb.ComposeFirewallGlobalBoardResponse.HTTPFirewallRuleGroupStat
7, // 1: pb.ComposeFirewallGlobalBoardResponse.dailyStats:type_name -> pb.ComposeFirewallGlobalBoardResponse.DailyStat
6, // 2: pb.ComposeFirewallGlobalBoardResponse.hourlyStats:type_name -> pb.ComposeFirewallGlobalBoardResponse.HourlyStat
8, // 3: pb.ComposeFirewallGlobalBoardResponse.topNodeStats:type_name -> pb.ComposeFirewallGlobalBoardResponse.NodeStat
9, // 4: pb.ComposeFirewallGlobalBoardResponse.topDomainStats:type_name -> pb.ComposeFirewallGlobalBoardResponse.DomainStat
10, // 5: pb.ComposeFirewallGlobalBoardResponse.topCountryStats:type_name -> pb.ComposeFirewallGlobalBoardResponse.CountryStat
11, // 6: pb.ComposeFirewallGlobalBoardResponse.HTTPFirewallRuleGroupStat.httpFirewallRuleGroup:type_name -> pb.HTTPFirewallRuleGroup
0, // 7: pb.FirewallService.composeFirewallGlobalBoard:input_type -> pb.ComposeFirewallGlobalBoardRequest
2, // 8: pb.FirewallService.notifyHTTPFirewallEvent:input_type -> pb.NotifyHTTPFirewallEventRequest
3, // 9: pb.FirewallService.countFirewallDailyBlocks:input_type -> pb.CountFirewallDailyBlocksRequest
1, // 10: pb.FirewallService.composeFirewallGlobalBoard:output_type -> pb.ComposeFirewallGlobalBoardResponse
12, // 11: pb.FirewallService.notifyHTTPFirewallEvent:output_type -> pb.RPCSuccess
4, // 12: pb.FirewallService.countFirewallDailyBlocks:output_type -> pb.CountFirewallDailyBlocksResponse
10, // [10:13] is the sub-list for method output_type
7, // [7:10] is the sub-list for method input_type
7, // [7:7] is the sub-list for extension type_name
7, // [7:7] is the sub-list for extension extendee
0, // [0:7] is the sub-list for field type_name
}
func init() { file_service_firewall_proto_init() }
func file_service_firewall_proto_init() {
if File_service_firewall_proto != nil {
return
}
file_models_rpc_messages_proto_init()
file_models_model_http_firewall_rule_group_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_firewall_proto_rawDesc), len(file_service_firewall_proto_rawDesc)),
NumEnums: 0,
NumMessages: 11,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_service_firewall_proto_goTypes,
DependencyIndexes: file_service_firewall_proto_depIdxs,
MessageInfos: file_service_firewall_proto_msgTypes,
}.Build()
File_service_firewall_proto = out.File
file_service_firewall_proto_goTypes = nil
file_service_firewall_proto_depIdxs = nil
}