flip_api.private_services.add_log ================================= .. py:module:: flip_api.private_services.add_log Attributes ---------- .. autoapisummary:: flip_api.private_services.add_log.router Functions --------- .. autoapisummary:: flip_api.private_services.add_log.add_log_endpoint Module Contents --------------- .. py:data:: router .. py:function:: add_log_endpoint(model_id: uuid.UUID, training_log: flip_api.domain.schemas.private.TrainingLog, db: sqlmodel.Session = Depends(get_session), _: None = Depends(authenticate_internal_service)) -> dict[str, str] Add a log entry to the database for a specific model. This endpoint is internal-only: it accepts requests from the fl-server on the Central Hub (authenticated via INTERNAL_SERVICE_KEY_HEADER). :param model_id: The ID of the model. :type model_id: UUID :param training_log: The log entry to be added. :type training_log: TrainingLog :param db: The database session. :type db: Session :returns: A confirmation message indicating the log entry was created. :rtype: dict[str, str] :raises HTTPException: If the trust is not associated with the model or if there is an internal server error.