update current_time
This commit is contained in:
parent
76d643b3ab
commit
e9a25cd4bd
|
@ -5,8 +5,6 @@ from time import time
|
||||||
|
|
||||||
class CPU(BaseModel):
|
class CPU(BaseModel):
|
||||||
model_config = ConfigDict()
|
model_config = ConfigDict()
|
||||||
current_time:int = Field(default_factory=time)
|
|
||||||
interval:int = Field()
|
|
||||||
time:int = Field()
|
time:int = Field()
|
||||||
user:int = Field()
|
user:int = Field()
|
||||||
system:int = Field()
|
system:int = Field()
|
||||||
|
@ -19,8 +17,6 @@ class DiskFlows(BaseModel):
|
||||||
|
|
||||||
class Disk(BaseModel):
|
class Disk(BaseModel):
|
||||||
model_config = ConfigDict()
|
model_config = ConfigDict()
|
||||||
current_time:int = Field(default_factory=time)
|
|
||||||
interval:int = Field()
|
|
||||||
uuid:UUID4 = Field()
|
uuid:UUID4 = Field()
|
||||||
name:str = Field()
|
name:str = Field()
|
||||||
read:DiskFlows = Field()
|
read:DiskFlows = Field()
|
||||||
|
@ -32,8 +28,6 @@ class MemorySwap(BaseModel):
|
||||||
|
|
||||||
class Memory(BaseModel):
|
class Memory(BaseModel):
|
||||||
model_config = ConfigDict()
|
model_config = ConfigDict()
|
||||||
current_time:int = Field()
|
|
||||||
available:Optional[int] = Field(default=None)
|
|
||||||
current:int = Field()
|
current:int = Field()
|
||||||
maximum:int = Field()
|
maximum:int = Field()
|
||||||
disk_caches:Optional[int] = Field(default=None)
|
disk_caches:Optional[int] = Field(default=None)
|
||||||
|
@ -52,8 +46,6 @@ class Interface(BaseModel):
|
||||||
model_config = ConfigDict()
|
model_config = ConfigDict()
|
||||||
|
|
||||||
uuid:UUID4 = Field()
|
uuid:UUID4 = Field()
|
||||||
current_time:int = Field(default_factory=time)
|
|
||||||
interval:int = Field()
|
|
||||||
name:str = Field()
|
name:str = Field()
|
||||||
rx:InterfaceFlows = Field()
|
rx:InterfaceFlows = Field()
|
||||||
tx:InterfaceFlows = Field()
|
tx:InterfaceFlows = Field()
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -2,7 +2,7 @@ from setuptools import find_packages, setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='deevirt_schema',
|
name='deevirt_schema',
|
||||||
version='0.1.28',
|
version='0.1.29',
|
||||||
description='Deevirt Schema',
|
description='Deevirt Schema',
|
||||||
url='https://git.celeonet.fr/Deevirt/deevirt_schema.git',
|
url='https://git.celeonet.fr/Deevirt/deevirt_schema.git',
|
||||||
author='Celeonet',
|
author='Celeonet',
|
||||||
|
|
Loading…
Reference in New Issue