add alert_types to config.yaml

This commit is contained in:
Ishaan Jaff 2024-04-18 08:51:07 -07:00
parent 29b1002b3b
commit a8e2ef79ef

View file

@ -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+",