MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_protocol_distribution

Method get_protocol_distribution

traffic_analyzer.py:1662–1669  ·  view source on GitHub ↗

Get protocol distribution across all hosts

(self)

Source from the content-addressed store, hash-verified

1660 self._alert_counter += 1
1661 alert = TrafficAlert(
1662 alert_id=f"TA-{self._alert_counter:06d}",
1663 level=level,
1664 category=category,
1665 message=message,
1666 src_ip=src_ip,
1667 dst_ip=dst_ip,
1668 details=details or {}
1669 )
1670
1671 self.alerts.append(alert)
1672

Callers 1

get_traffic_summaryFunction · 0.80

Calls 2

valuesMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected