From 53ae4654c4cb8eab61d6631349013e33ed299f16 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 16 May 2024 16:57:54 -0700 Subject: [PATCH] docs - setting alert types --- docs/my-website/docs/proxy/alerting.md | 31 +++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/docs/my-website/docs/proxy/alerting.md b/docs/my-website/docs/proxy/alerting.md index 230a3a22e91..068d1fff860 100644 --- a/docs/my-website/docs/proxy/alerting.md +++ b/docs/my-website/docs/proxy/alerting.md @@ -61,8 +61,37 @@ curl -X GET 'http://localhost:4000/health/services?service=slack' \ -H 'Authorization: Bearer sk-1234' ``` +## Advanced +### Opting into specific alert types + +Set `alert_types` if you want to Opt into only specific alert types + +```shell +general_settings: + alerting: ["slack"] + alert_types: ["spend_reports"] +``` + +All Possible Alert Types + +```python +alert_types: +Optional[ +List[ + Literal[ + "llm_exceptions", + "llm_too_slow", + "llm_requests_hanging", + "budget_alerts", + "db_exceptions", + "daily_reports", + "spend_reports", + "cooldown_deployment", + "new_model_added", + ] +] +``` -## Extras ### Using Discord Webhooks