flip_api.model_services.get_metrics
Attributes
Functions
|
Retrieve metrics for a specific model. |
Module Contents
- flip_api.model_services.get_metrics.router
- flip_api.model_services.get_metrics.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.
- Parameters:
model_id (UUID) – The ID of the model to retrieve metrics for.
db (Session) – Database session.
user_id (UUID) – User ID from authentication.
- Returns:
A list of metrics associated with the specified model.
- Return type:
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.