flip_api.model_services.get_metrics =================================== .. py:module:: flip_api.model_services.get_metrics Attributes ---------- .. autoapisummary:: flip_api.model_services.get_metrics.router Functions --------- .. autoapisummary:: flip_api.model_services.get_metrics.get_metrics_endpoint Module Contents --------------- .. py:data:: router .. py:function:: get_metrics_endpoint(model_id: uuid.UUID = Path(..., title='Model ID'), db: sqlmodel.Session = Depends(get_session), user_id: uuid.UUID = Depends(verify_token)) Retrieve metrics for a specific model. :param model_id: The ID of the model to retrieve metrics for. :type model_id: UUID :param db: Database session. :type db: Session :param user_id: User ID from authentication. :type user_id: UUID :returns: A list of metrics associated with the specified model. :rtype: list[IModelMetrics] :raises HTTPException: If the user does not have access to the model, if the model does not exist, or if there is a database error.