add a sample create vm event
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
1e9df6046f
commit
3c55b90905
|
@ -120,3 +120,23 @@ func MakeFailResponse() *Event {
|
||||||
}
|
}
|
||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func MakeAddVmEvent() *Event {
|
||||||
|
log.Println("MakeAddVmEvent() is generating a example 'create' virtual machine event")
|
||||||
|
|
||||||
|
e := &Event{
|
||||||
|
Id: 1234,
|
||||||
|
Email: "test+protobuf@wit.com",
|
||||||
|
Comment: "A Test Create VM Event",
|
||||||
|
Type: Event_ADD,
|
||||||
|
Vms: []*Event_VM{
|
||||||
|
{
|
||||||
|
Hostname: "test323.lab.wit.com",
|
||||||
|
Memory: 2048,
|
||||||
|
Disk: 20,
|
||||||
|
Cpus: 4,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue