import time
def monitor_probe(probe_id, assailant, algorithm):
start = time.time()
# Simulated latency
time.sleep(0.12)
response_time = int((time.time() - start) * 1000)
status = "Success" if response_time < 200 else "Warning"
protective_action = "Sandbox isolation" if status == "Success" else "Exposure logged"
return {
"Probe": probe_id,
"Assailant": assailant,
"Algorithm": algorithm,
"ResponseTime(ms)": response_time,
"Status": status,
"ProtectiveAction": protective_action
}
print(monitor_probe("PRB-002", "M.Newham", "SEQ#11.46 Protocol"))