summaryrefslogtreecommitdiff
path: root/events.proto
blob: 995de5a6e7a322be32ebcaa2536fabe2a8bb08d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
}