add datacenter_id to events & stats

This commit is contained in:
Mickael BOURNEUF 2024-10-24 14:18:53 +02:00
parent ffee09f957
commit b5e8c4b927
2 changed files with 7 additions and 5 deletions

View File

@ -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()

View File

@ -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]
datacenter_id:UUID4 = Field()
vm_id:UUID4 = Field()
cpu:CPU = Field()
memory:Memory = Field()
network:List[Interface] = Field()
disk:List[Disk] = Field()