update stats

This commit is contained in:
Mickael BOURNEUF 2024-10-23 15:26:46 +02:00
parent 0112e771e7
commit dad13df1ef
2 changed files with 7 additions and 3 deletions

View File

@ -1,13 +1,17 @@
from time import time_ns from time import time_ns
from typing import List from typing import List
from unittest.mock import Base
from uuid import UUID from uuid import UUID
from pydantic import BaseModel, Field from pydantic import BaseModel, Field
from . import cpu, memory, disk, network from . import cpu, memory, disk, network
class Stats(BaseModel): class StatsDom(BaseModel):
domain:UUID domain:UUID
cpu:cpu.CPU cpu:cpu.CPU
memory:memory.Memory memory:memory.Memory
network:List[network.Interface] network:List[network.Interface]
disk:List[disk.Disk] disk:List[disk.Disk]
class Stats(BaseModel):
doms:List[StatsDom] = Field()

View File

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