mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 03:10:46 +08:00
Define port traffic samples logger used by retention purge.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
5d2c05a286
commit
066158d2f7
1 changed files with 3 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from datetime import datetime, timedelta, timezone
|
||||
from typing import Any
|
||||
from uuid import uuid4
|
||||
|
|
@ -30,6 +31,8 @@ from .port_traffic_schemas import (
|
|||
PortTrafficSamplesOut,
|
||||
)
|
||||
|
||||
_log = logging.getLogger("netx.port_traffic.samples")
|
||||
|
||||
def _as_naive_utc(value: datetime | None) -> datetime | None:
|
||||
if value is None:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue