pub async fn get_stats( __arg0: State<ApiState>, ) -> ApiResult<Json<HashMap<String, Value>>>
Get simulation statistics including total stimulations and active scripts.