-
Notifications
You must be signed in to change notification settings - Fork 44
/
events.proto
41 lines (32 loc) · 1.1 KB
/
events.proto
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
29
30
31
32
33
34
35
36
37
38
39
40
41
syntax = "proto2";
package models;
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
import "actual_lrp.proto";
import "desired_lrp.proto";
message ActualLRPCreatedEvent {
optional ActualLRPGroup actual_lrp_group = 1;
}
message ActualLRPChangedEvent {
optional ActualLRPGroup before = 1;
optional ActualLRPGroup after = 2;
}
message ActualLRPRemovedEvent {
optional ActualLRPGroup actual_lrp_group = 1;
}
message DesiredLRPCreatedEvent {
optional DesiredLRP desired_lrp = 1;
}
message DesiredLRPChangedEvent {
optional DesiredLRP before = 1;
optional DesiredLRP after = 2;
}
message DesiredLRPRemovedEvent {
optional DesiredLRP desired_lrp = 1;
}
message ActualLRPCrashedEvent {
optional ActualLRPKey actual_lrp_key = 1 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true];
optional ActualLRPInstanceKey actual_lrp_instance_key = 2 [(gogoproto.nullable) = false, (gogoproto.jsontag) = "", (gogoproto.embed) = true];
optional int32 crash_count = 3;
optional string crash_reason = 4 [(gogoproto.jsontag) = "crash_reason,omitempty"];
optional int64 since = 5;
}