add a sample create vm event

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-24 13:43:10 -07:00
parent 1e9df6046f
commit 3c55b90905
1 changed files with 20 additions and 0 deletions

View File

@ -120,3 +120,23 @@ func MakeFailResponse() *Event {
}
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
}