From 0b697d7a61baf392bd8fb42be29cf71c3e294f27 Mon Sep 17 00:00:00 2001 From: Mickael B Date: Wed, 23 Oct 2024 12:36:40 +0200 Subject: [PATCH] update stats dom --- deevirt_schema/libvirt/dom/stats/__init__.py | 13 +++++++++++++ deevirt_schema/libvirt/dom/stats/__init__py | 0 2 files changed, 13 insertions(+) create mode 100644 deevirt_schema/libvirt/dom/stats/__init__.py delete mode 100644 deevirt_schema/libvirt/dom/stats/__init__py diff --git a/deevirt_schema/libvirt/dom/stats/__init__.py b/deevirt_schema/libvirt/dom/stats/__init__.py new file mode 100644 index 0000000..3de56e8 --- /dev/null +++ b/deevirt_schema/libvirt/dom/stats/__init__.py @@ -0,0 +1,13 @@ +from time import time_ns +from typing import List +from uuid import UUID +from pydantic import BaseModel, Field + +from . import cpu, memory, disk, network + +class Stats(BaseModel): + domain:UUID + cpu:cpu.CPU + memory:memory.Memory + network:List[network.Interface] + disk:List[disk.Disk] \ No newline at end of file diff --git a/deevirt_schema/libvirt/dom/stats/__init__py b/deevirt_schema/libvirt/dom/stats/__init__py deleted file mode 100644 index e69de29..0000000