diff options
Diffstat (limited to 'events.proto')
| -rw-r--r-- | events.proto | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/events.proto b/events.proto new file mode 100644 index 0000000..995de5a --- /dev/null +++ b/events.proto @@ -0,0 +1,28 @@ +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 +} |
