Get traffic alerts
()
| 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') |
| 17120 | def 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') |
nothing calls this directly
no test coverage detected