for you my love

This commit is contained in:
Jonathan Gohier 2024-11-07 11:38:59 +01:00
parent cfb1647039
commit aa351df9f5
1 changed files with 2 additions and 2 deletions

View File

@ -1,13 +1,13 @@
import datetime import datetime
from typing import Optional from typing import Optional
from pydantic import BaseModel, ConfigDict, Field from pydantic import BaseModel, ConfigDict, Field
from ..libvirt.dom.stats import Stats from ..libvirt.dom.stats import Stats, Memory
class MemorySwap(BaseModel): class MemorySwap(BaseModel):
swp_in:Optional[int] = Field(default=None) swp_in:Optional[int] = Field(default=None)
swp_out:Optional[int] = Field(default=None) swp_out:Optional[int] = Field(default=None)
class Memory(BaseModel): class Memory(Memory):
swap:MemorySwap = Field() swap:MemorySwap = Field()
class Stats(Stats): class Stats(Stats):