From dad13df1ef2f10ebcd26b7abb584550d4b20c2c0 Mon Sep 17 00:00:00 2001 From: Mickael B Date: Wed, 23 Oct 2024 15:26:46 +0200 Subject: [PATCH] update stats --- deevirt_schema/libvirt/dom/stats/__init__.py | 8 ++++++-- setup.py | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/deevirt_schema/libvirt/dom/stats/__init__.py b/deevirt_schema/libvirt/dom/stats/__init__.py index 3de56e8..369fa12 100644 --- a/deevirt_schema/libvirt/dom/stats/__init__.py +++ b/deevirt_schema/libvirt/dom/stats/__init__.py @@ -1,13 +1,17 @@ from time import time_ns from typing import List +from unittest.mock import Base from uuid import UUID from pydantic import BaseModel, Field from . import cpu, memory, disk, network -class Stats(BaseModel): +class StatsDom(BaseModel): domain:UUID cpu:cpu.CPU memory:memory.Memory network:List[network.Interface] - disk:List[disk.Disk] \ No newline at end of file + disk:List[disk.Disk] + +class Stats(BaseModel): + doms:List[StatsDom] = Field() \ No newline at end of file diff --git a/setup.py b/setup.py index 491aaf9..9f0949c 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import find_packages, setup setup( name='deevirt_schema', - version='0.1.2', + version='0.1.3', description='Deevirt Schema', url='https://git.celeonet.fr/Deevirt/deevirt_schema.git', author='Celeonet',