Docs/alerts

Alerts

Receive notifications when monitoring issues are detected.

Supported Alert Types

  • Webhooks
  • Custom Callbacks

Example

python
from mlwatch import Monitor
from mlwatch.alerts import AlertConfig

monitor = Monitor(
    name="purchase_model",
    alerts=AlertConfig(
        on_drift=lambda d: print("Drift detected"),
        on_degradation=lambda d: print("Model degraded"),
    )
)