chore(unit): delete unit because unlear definition

This commit is contained in:
YuehuCao 2025-10-13 12:06:37 +08:00
parent 03366c0925
commit be01f95a1e
4 changed files with 0 additions and 4 deletions

View File

@ -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

View File

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

View File

@ -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

View File

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