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

Function get_traffic_alerts

webapp_modern.py:17109–17125  ·  view source on GitHub ↗

Get traffic alerts

()

Source from the content-addressed store, hash-verified

17107 return {
17108 'id': finding_id,
17109 'target': target,
17110 'risk_score': risk_score,
17111 'threat_context': threat_context,
17112 'attribution': attribution,
17113 'last_updated': last_seen,
17114 'summary': summary,
17115 'last_seen': last_seen
17116 }
17117
17118
17119@app.route('/api/threat-intelligence/status')
17120def get_threat_intelligence_status():
17121 """Get threat intelligence system status"""
17122 with _network_context_from_request():
17123 try:
17124 if not threat_intelligence:
17125 return jsonify({'error': 'Threat intelligence system not available'}), 503
17126
17127 summary = threat_intelligence.get_enriched_findings_summary() or {}
17128 default_last_update = summary.get('last_intelligence_update')

Callers

nothing calls this directly

Calls 4

get_alertsMethod · 0.80
errorMethod · 0.80
get_traffic_analyzerFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected