update time

This commit is contained in:
Mickael BOURNEUF 2024-11-20 15:14:31 +01:00
parent dba29c2842
commit 55bef3ed30
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import datetime
from typing import List, Optional
from pydantic import UUID4, BaseModel, ConfigDict, Field
from time import time
from time import time_ns
class CPU(BaseModel):
model_config = ConfigDict()
@ -51,7 +51,7 @@ class Interface(BaseModel):
tx:InterfaceFlows = Field()
class Stats(BaseModel):
current_time:int = Field(default_factory=time)
current_time:int = Field(default_factory=time_ns)
interval:int = Field()
company_id:UUID4 = Field()
datacenter_id:UUID4 = Field()