flip_api.model_services.retrieve_logs_for_model

Attributes

router

Functions

retrieve_logs_for_model_endpoint([model_id, db, user_id])

Retrieve logs for a specific model.

Module Contents

flip_api.model_services.retrieve_logs_for_model.router
flip_api.model_services.retrieve_logs_for_model.retrieve_logs_for_model_endpoint(model_id: uuid.UUID = Path(..., title='Model ID'), db: sqlmodel.Session = Depends(get_session), user_id: uuid.UUID = Depends(verify_token))

Retrieve logs for a specific model.

Parameters:
  • model_id (UUID) – The ID of the model to retrieve logs for.

  • db (Session) – Database session.

  • user_id (UUID) – User ID from authentication.

Returns:

A list of log objects associated with the specified model.

Return type:

list[ILog]

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.