classifyFirewallDomainStatus returns "allowed", "denied", or "mixed" based on request stats
(stats DomainRequestStats)
| 208 | |
| 209 | // classifyFirewallDomainStatus returns "allowed", "denied", or "mixed" based on request stats |
| 210 | func classifyFirewallDomainStatus(stats DomainRequestStats) string { |
| 211 | if stats.Allowed > 0 && stats.Blocked == 0 { |
| 212 | return "allowed" |
| 213 | } |
| 214 | if stats.Blocked > 0 && stats.Allowed == 0 { |
| 215 | return "denied" |
| 216 | } |
| 217 | if stats.Allowed > 0 && stats.Blocked > 0 { |
| 218 | return "mixed" |
| 219 | } |
| 220 | return "unknown" |
| 221 | } |
| 222 | |
| 223 | // MCPToolDiffEntry represents the diff for a single MCP tool between two runs |
| 224 | type MCPToolDiffEntry struct { |
no outgoing calls