add datacenter_id to events & stats
This commit is contained in:
parent
ffee09f957
commit
b5e8c4b927
|
@ -77,6 +77,7 @@ class GraphicsAddr(BaseModel):
|
||||||
|
|
||||||
class Graphics(BaseModel):
|
class Graphics(BaseModel):
|
||||||
company_id:UUID4 = Field()
|
company_id:UUID4 = Field()
|
||||||
|
datacenter_id:UUID4 = Field()
|
||||||
vm_id:UUID = Field()
|
vm_id:UUID = Field()
|
||||||
phase:int = Field()
|
phase:int = Field()
|
||||||
localAddr:GraphicsAddr = Field()
|
localAddr:GraphicsAddr = Field()
|
||||||
|
|
|
@ -55,8 +55,9 @@ class Interface(BaseModel):
|
||||||
|
|
||||||
class Stats(BaseModel):
|
class Stats(BaseModel):
|
||||||
company_id:UUID4 = Field()
|
company_id:UUID4 = Field()
|
||||||
vm_id:UUID4
|
datacenter_id:UUID4 = Field()
|
||||||
cpu:CPU
|
vm_id:UUID4 = Field()
|
||||||
memory:Memory
|
cpu:CPU = Field()
|
||||||
network:List[Interface]
|
memory:Memory = Field()
|
||||||
disk:List[Disk]
|
network:List[Interface] = Field()
|
||||||
|
disk:List[Disk] = Field()
|
Loading…
Reference in New Issue