From b5e8c4b9278cc89f6d37faf38c68fc372a70ff71 Mon Sep 17 00:00:00 2001 From: Mickael B Date: Thu, 24 Oct 2024 14:18:53 +0200 Subject: [PATCH] add datacenter_id to events & stats --- deevirt_schema/libvirt/dom/events.py | 1 + deevirt_schema/libvirt/dom/stats.py | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/deevirt_schema/libvirt/dom/events.py b/deevirt_schema/libvirt/dom/events.py index a3419b4..6c8239d 100644 --- a/deevirt_schema/libvirt/dom/events.py +++ b/deevirt_schema/libvirt/dom/events.py @@ -77,6 +77,7 @@ class GraphicsAddr(BaseModel): class Graphics(BaseModel): company_id:UUID4 = Field() + datacenter_id:UUID4 = Field() vm_id:UUID = Field() phase:int = Field() localAddr:GraphicsAddr = Field() diff --git a/deevirt_schema/libvirt/dom/stats.py b/deevirt_schema/libvirt/dom/stats.py index a145eae..2997fc9 100644 --- a/deevirt_schema/libvirt/dom/stats.py +++ b/deevirt_schema/libvirt/dom/stats.py @@ -55,8 +55,9 @@ class Interface(BaseModel): class Stats(BaseModel): company_id:UUID4 = Field() - vm_id:UUID4 - cpu:CPU - memory:Memory - network:List[Interface] - disk:List[Disk] \ No newline at end of file + datacenter_id:UUID4 = Field() + vm_id:UUID4 = Field() + cpu:CPU = Field() + memory:Memory = Field() + network:List[Interface] = Field() + disk:List[Disk] = Field() \ No newline at end of file