for you my love
This commit is contained in:
parent
cfb1647039
commit
aa351df9f5
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue