virtbuf/events.proto

29 lines
575 B
Protocol Buffer

syntax = "proto3";
package virtbuf;
message Events {
repeated Event stuff = 1;
}
message Event {
int32 id = 1;
EventType etype = 2;
string droplet = 3; // uuid of the droplet
string hypervisor = 4; // uuid of the hypervisor
}
enum EventType {
ADD = 0;
DELETE = 1;
POWERON = 2;
POWEROFF = 3; // should indicate a "normal" shutdown
HIBERNATE = 4;
MIGRATE = 5;
DEMO = 6;
GET = 7; // request something
LOGIN = 8; // attempt to login
OK = 9; // everything is ok
FAIL = 10; // everything failed
CRASH = 11; // droplet hard crashed
}