From a8e2ef79efc58aaddbe4c1cd8fc824d158892214 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 18 Apr 2024 08:51:07 -0700 Subject: [PATCH] add alert_types to config.yaml --- litellm/proxy/_types.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py index d0c8eac4edb..25a26700203 100644 --- a/litellm/proxy/_types.py +++ b/litellm/proxy/_types.py @@ -697,6 +697,21 @@ class ConfigGeneralSettings(LiteLLMBase): None, description="List of alerting integrations. Today, just slack - `alerting: ['slack']`", ) + alert_types: Optional[ + List[ + Literal[ + "llm_exceptions", + "llm_too_slow", + "llm_requests_hanging", + "budget_alerts", + "db_exceptions", + ] + ] + ] = Field( + None, + description="List of alerting types. By default it is all alerts", + ) + alerting_threshold: Optional[int] = Field( None, description="sends alerts if requests hang for 5min+",