Compare commits

..

2 Commits

Author SHA1 Message Date
Mickael BOURNEUF 6b386d6758 update version to 1.0.6 2024-10-30 12:35:56 +01:00
Mickael BOURNEUF 327a6d9979 correction for current_time for the stats. 2024-10-30 12:35:18 +01:00
2 changed files with 6 additions and 5 deletions

View File

@ -4,7 +4,8 @@ from time import time_ns
class CPU(BaseModel): class CPU(BaseModel):
model_config = ConfigDict() model_config = ConfigDict()
time:int = Field(default_factory=time_ns) current_time:int = Field(default_factory=time_ns)
time:int = Field()
user:int = Field() user:int = Field()
system:int = Field() system:int = Field()
count:int = Field() count:int = Field()
@ -16,7 +17,7 @@ class DiskFlows(BaseModel):
class Disk(BaseModel): class Disk(BaseModel):
model_config = ConfigDict() model_config = ConfigDict()
time:int = Field(default_factory=time_ns) current_time:int = Field(default_factory=time_ns)
uuid:UUID4 = Field() uuid:UUID4 = Field()
name:str = Field() name:str = Field()
read:DiskFlows = Field() read:DiskFlows = Field()
@ -28,7 +29,7 @@ class MemorySwap(BaseModel):
class Memory(BaseModel): class Memory(BaseModel):
model_config = ConfigDict() model_config = ConfigDict()
time:int = Field() current_time:int = Field()
available:Optional[int] = Field(default=None) available:Optional[int] = Field(default=None)
current:int = Field() current:int = Field()
maximum:int = Field() maximum:int = Field()
@ -48,7 +49,7 @@ class Interface(BaseModel):
model_config = ConfigDict() model_config = ConfigDict()
uuid:UUID4 = Field() uuid:UUID4 = Field()
time:int = Field(default_factory=time_ns) current_time:int = Field(default_factory=time_ns)
name:str = Field() name:str = Field()
rx:InterfaceFlows = Field() rx:InterfaceFlows = Field()
tx:InterfaceFlows = Field() tx:InterfaceFlows = Field()

View File

@ -2,7 +2,7 @@ from setuptools import find_packages, setup
setup( setup(
name='deevirt_schema', name='deevirt_schema',
version='0.1.5', version='0.1.6',
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',