New alert system and panel de control page
This commit is contained in:
@@ -247,6 +247,13 @@ async def proxy_tenant_notifications(request: Request, tenant_id: str = Path(...
|
||||
# TENANT-SCOPED ALERT ANALYTICS ENDPOINTS (Must come BEFORE inventory alerts)
|
||||
# ================================================================
|
||||
|
||||
# Exact match for /alerts endpoint (without additional path)
|
||||
@router.api_route("/{tenant_id}/alerts", methods=["GET", "POST", "PUT", "DELETE", "OPTIONS"])
|
||||
async def proxy_tenant_alerts_list(request: Request, tenant_id: str = Path(...)):
|
||||
"""Proxy tenant alerts list requests to alert processor service"""
|
||||
target_path = f"/api/v1/tenants/{tenant_id}/alerts"
|
||||
return await _proxy_to_alert_processor_service(request, target_path, tenant_id=tenant_id)
|
||||
|
||||
@router.api_route("/{tenant_id}/alerts/{path:path}", methods=["GET", "POST", "PUT", "DELETE", "OPTIONS"])
|
||||
async def proxy_tenant_alert_analytics(request: Request, tenant_id: str = Path(...), path: str = ""):
|
||||
"""Proxy tenant alert analytics requests to alert processor service"""
|
||||
|
||||
Reference in New Issue
Block a user