test - weekly / monthly spend report alerts on /health/services

This commit is contained in:
Ishaan Jaff 2024-05-13 10:50:26 -07:00
parent 197eb44832
commit aac81c59b5

View file

@ -9555,6 +9555,14 @@ async def health_services_endpoint(
level="Low",
alert_type="budget_alerts",
)
if prisma_client is not None:
asyncio.create_task(
proxy_logging_obj.slack_alerting_instance.send_monthly_spend_report()
)
asyncio.create_task(
proxy_logging_obj.slack_alerting_instance.send_weekly_spend_report()
)
return {
"status": "success",
"message": "Mock Slack Alert sent, verify Slack Alert Received on your channel",