Skip to content

Commit

Permalink
[Model Monitoring] Add warning for empty alert config list (mlrun#7214)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomerm-iguazio authored Feb 2, 2025
1 parent 5cb7253 commit f8cc4c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mlrun/projects/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -2222,6 +2222,12 @@ def create_model_monitoring_alert_configs(
reset_policy=reset_policy,
)
)
if not alerts:
warnings.warn(
"No alert config has been created. "
"Try specifying a result name explicitly or verifying that results are available"
)

return alerts

def set_model_monitoring_function(
Expand Down

0 comments on commit f8cc4c2

Please sign in to comment.