From 743accd9ba76c172601dd60dc567d46438e2a847 Mon Sep 17 00:00:00 2001 From: Mickael B Date: Wed, 23 Oct 2024 18:00:20 +0200 Subject: [PATCH] add company_id --- deevirt_schema/libvirt/dom/stats/__init__.py | 5 +++-- setup.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/deevirt_schema/libvirt/dom/stats/__init__.py b/deevirt_schema/libvirt/dom/stats/__init__.py index 369fa12..cf7cb70 100644 --- a/deevirt_schema/libvirt/dom/stats/__init__.py +++ b/deevirt_schema/libvirt/dom/stats/__init__.py @@ -2,12 +2,13 @@ from time import time_ns from typing import List from unittest.mock import Base from uuid import UUID -from pydantic import BaseModel, Field +from pydantic import UUID4, BaseModel, Field from . import cpu, memory, disk, network class StatsDom(BaseModel): - domain:UUID + company_id:UUID4 = Field(default=UUID("cdd2d017-962b-41a6-b163-62b235fbec3f")) + vm_id:UUID cpu:cpu.CPU memory:memory.Memory network:List[network.Interface] diff --git a/setup.py b/setup.py index 9f0949c..80f087d 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import find_packages, setup setup( name='deevirt_schema', - version='0.1.3', + version='0.1.4', description='Deevirt Schema', url='https://git.celeonet.fr/Deevirt/deevirt_schema.git', author='Celeonet',