File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ func GetProtectionResult(ctx context.Context) *ProtectionResult {
4343func RuleActionToString (action RuleAction ) string {
4444 switch action {
4545 case RuleActionLog :
46- return "RuleActionLog "
46+ return "Log "
4747 case RuleActionBlock :
48- return "RuleActionBlock "
48+ return "Block "
4949 default :
50- return "Unknown RuleAction "
50+ return "Unknown"
5151 }
5252}
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ type MetricsRangeQueryLogging struct {
6161 // Protection fields
6262 ProtectionTriggered bool `json:"protectionTriggered"` // Whether a protection rule was triggered
6363 ProtectionRuleName string `json:"protectionRuleName"` // Name of the rule that triggered
64- ProtectionAction string `json:"protectionAction"` // "RuleActionLog " or "RuleActionBlock "
64+ ProtectionAction string `json:"protectionAction"` // "Log " or "Block "
6565}
6666
6767// RangeQueryLogConfig holds configuration for range query logging.
You can’t perform that action at this time.
0 commit comments