MCPcopy Create free account
hub / github.com/TheSecuredAnalyst/security-suite / _should_send

Method _should_send

modules/siem/webhook.py:49–53  ·  view source on GitHub ↗

Check if event meets severity threshold.

(self, event: SIEMEvent)

Source from the content-addressed store, hash-verified

47 def _should_send(self, event: SIEMEvent) -> bool:
48 """Check if event meets severity threshold."""
49 event_idx = self._severity_order.index(event.severity.lower())
50 min_idx = self._severity_order.index(self.min_severity)
51 return event_idx >= min_idx
52
53 def _get_headers(self) -> dict:
54 """Get request headers."""
55 headers = {
56 "Content-Type": "application/json",

Callers 1

exportMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected