diff --git a/health_probe_simulator.py b/health_probe_simulator.py index 87a6d86..143a2e3 100644 --- a/health_probe_simulator.py +++ b/health_probe_simulator.py @@ -64,16 +64,8 @@ class DeviceProbeSimulator: try: payload = { - 'device_id': device_id, - 'timestamp': int(time.time()), - 'status': 'online', - 'system_info': { - 'cpu_usage': random.randint(20, 80), - 'memory_usage': random.randint(30, 90), - 'disk_usage': random.randint(40, 85), - 'temperature': random.randint(25, 65), - 'uptime': random.randint(3600, 86400) # 1 hour to 1 day - } + 'type': 'heartbeat', + 'key': device['unique_key'] # Use the device's unique key } response = self.session.post(