diff --git a/events.proto b/events.proto index 2bebdf9..69e6d46 100644 --- a/events.proto +++ b/events.proto @@ -1,6 +1,9 @@ syntax = "proto3"; package virtbuf; +import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp +import "google/protobuf/any.proto"; // Import the well-known type for Timestamp + message Events { string uuid = 1; // I guess why not just have this on each file string version = 2; // maybe can be used for protobuf schema change violations @@ -8,13 +11,18 @@ message Events { repeated Event events = 4; // all the events } + message Event { - int32 id = 1; - EventType etype = 2; - string droplet = 3; // name of the droplet - string droplet_uuid = 4; // uuid of the droplet - string hypervisor = 5; // name of the hypervisor - string hypervisor_uuid = 6; // uuid of the hypervisor + int32 id = 1; + EventType etype = 2; + string droplet = 3; // name of the droplet + string droplet_uuid = 4; // uuid of the droplet + string hypervisor = 5; // name of the hypervisor + string hypervisor_uuid = 6; // uuid of the hypervisor + google.protobuf.Timestamp start = 7; // start time + google.protobuf.Timestamp end = 8; // end time + google.protobuf.Any orig_val = 9; // original value + google.protobuf.Any new_val = 10; // new value } enum EventType {