update time
This commit is contained in:
parent
dba29c2842
commit
55bef3ed30
|
@ -1,7 +1,7 @@
|
||||||
import datetime
|
import datetime
|
||||||
from typing import List, Optional
|
from typing import List, Optional
|
||||||
from pydantic import UUID4, BaseModel, ConfigDict, Field
|
from pydantic import UUID4, BaseModel, ConfigDict, Field
|
||||||
from time import time
|
from time import time_ns
|
||||||
|
|
||||||
class CPU(BaseModel):
|
class CPU(BaseModel):
|
||||||
model_config = ConfigDict()
|
model_config = ConfigDict()
|
||||||
|
@ -51,7 +51,7 @@ class Interface(BaseModel):
|
||||||
tx:InterfaceFlows = Field()
|
tx:InterfaceFlows = Field()
|
||||||
|
|
||||||
class Stats(BaseModel):
|
class Stats(BaseModel):
|
||||||
current_time:int = Field(default_factory=time)
|
current_time:int = Field(default_factory=time_ns)
|
||||||
interval:int = Field()
|
interval:int = Field()
|
||||||
company_id:UUID4 = Field()
|
company_id:UUID4 = Field()
|
||||||
datacenter_id:UUID4 = Field()
|
datacenter_id:UUID4 = Field()
|
||||||
|
|
Loading…
Reference in New Issue