Get current configuration
()
| 4882 | if start and not running: |
| 4883 | _threat_monitor_state['enabled'] = True |
| 4884 | _threat_monitor_state['findings'] = [] |
| 4885 | _threat_monitor_state['sweep_count'] = 0 |
| 4886 | _threat_monitor_state['last_sweep'] = None |
| 4887 | t = threading.Thread(target=_threat_monitor_loop, daemon=True, |
| 4888 | name='threat-monitor') |
| 4889 | _threat_monitor_state['thread'] = t |
| 4890 | t.start() |
| 4891 | running = True |
| 4892 | elif not start and running: |
| 4893 | _threat_monitor_state['enabled'] = False |