in pipelines/iot_analytics/scripts/create_data.py [0:0]
def generate_vehicle_data(vehicle_id):
return {
"vehicle_id": vehicle_id,
"timestamp": datetime.datetime.now().isoformat(timespec="seconds") + "Z",
"temperature": random.randint(65, 85),
"rpm": random.randint(1500, 3500),
"vibration": round(random.uniform(0.1, 0.5), 2),
"fuel_level": random.randint(50, 90),
"mileage": random.randint(40000, 60000)
}