update stats
This commit is contained in:
parent
0112e771e7
commit
dad13df1ef
|
@ -1,13 +1,17 @@
|
|||
from time import time_ns
|
||||
from typing import List
|
||||
from unittest.mock import Base
|
||||
from uuid import UUID
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
from . import cpu, memory, disk, network
|
||||
|
||||
class Stats(BaseModel):
|
||||
class StatsDom(BaseModel):
|
||||
domain:UUID
|
||||
cpu:cpu.CPU
|
||||
memory:memory.Memory
|
||||
network:List[network.Interface]
|
||||
disk:List[disk.Disk]
|
||||
disk:List[disk.Disk]
|
||||
|
||||
class Stats(BaseModel):
|
||||
doms:List[StatsDom] = Field()
|
Loading…
Reference in New Issue