diff --git a/apps/authentication/backend/models/user/models.py b/apps/authentication/backend/models/user/models.py index 6fd8936..ed42412 100644 --- a/apps/authentication/backend/models/user/models.py +++ b/apps/authentication/backend/models/user/models.py @@ -63,7 +63,6 @@ class UsageLogDoc(Document): tenant_id: str # tenant id operation: str # operation type request_id: str # request id # TODO: use true one - units: int # units status: str # operation status latency_ms: int # latency time(milliseconds) bytes_in: int # input bytes diff --git a/apps/authentication/webapi/middleware/freeleaps_auth_middleware.py b/apps/authentication/webapi/middleware/freeleaps_auth_middleware.py index c9b60fb..498bb1d 100644 --- a/apps/authentication/webapi/middleware/freeleaps_auth_middleware.py +++ b/apps/authentication/webapi/middleware/freeleaps_auth_middleware.py @@ -168,7 +168,6 @@ class FreeleapsAuthMiddleware: tenant_id=validation_result.get("tenant_name"), operation=f"{request.method} {request.url.path}", request_id=request.headers.get("X-Request-ID", "unknown"), - units=1, # TODO: adjust according to business logic status="success" if response.status_code < 400 else "error", latency_ms=int(process_time), bytes_in=bytes_in, diff --git a/apps/notification/backend/models/models.py b/apps/notification/backend/models/models.py index f1a02d1..4766a74 100644 --- a/apps/notification/backend/models/models.py +++ b/apps/notification/backend/models/models.py @@ -111,7 +111,6 @@ class UsageLogDoc(Document): tenant_id: str # tenant id operation: str # operation type request_id: str # request id # TODO: use true one - units: int # units status: str # operation status latency_ms: int # latency time(milliseconds) bytes_in: int # input bytes diff --git a/apps/notification/webapi/middleware/freeleaps_auth_middleware.py b/apps/notification/webapi/middleware/freeleaps_auth_middleware.py index 5ef7188..604646c 100644 --- a/apps/notification/webapi/middleware/freeleaps_auth_middleware.py +++ b/apps/notification/webapi/middleware/freeleaps_auth_middleware.py @@ -168,7 +168,6 @@ class FreeleapsAuthMiddleware: tenant_id=validation_result.get("tenant_name"), operation=f"{request.method} {request.url.path}", request_id=request.headers.get("X-Request-ID", "unknown"), - units=1, # TODO: adjust according to business logic status="success" if response.status_code < 400 else "error", latency_ms=int(process_time), bytes_in=bytes_in,