mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-16 00:45:13 +00:00
feat: Mark unused context parameters with underscore and refactor fraud metrics status handling
- Mark unused context parameters with underscore in analyzeCompetitors, identifyOpportunities, and PredictFailure - Replace if-else chain with switch statement for fraud alert status handling in GetFraudMetrics - Add OptimizationResult, PricingMetrics, RatePlan, and HistoricalDataPoint types to pricing/types.go
This commit is contained in:
@@ -113,9 +113,10 @@ func (s *FraudDetectionService) GetFraudMetrics(_ context.Context, period string
|
||||
m.TotalAlerts++
|
||||
m.ByType[a.Type]++
|
||||
m.BySeverity[a.Severity]++
|
||||
if a.Status == "resolved" {
|
||||
switch a.Status {
|
||||
case "resolved":
|
||||
m.ResolvedAlerts++
|
||||
} else if a.Status == "false_positive" {
|
||||
case "false_positive":
|
||||
m.FalsePositives++
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user