diff options
| author | Jeff Carr <[email protected]> | 2024-10-24 16:04:26 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-24 16:04:26 -0500 |
| commit | 7a31bd08c53e4e21297e8fa5a9a2f1ec39294530 (patch) | |
| tree | ebb2eb26ec060a799983aa6ce835c5b7be5e8fc7 | |
| parent | 965f0ada9ceebe7a2008f350734278bf8785cb44 (diff) | |
add timestamp and any types
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | events.proto | 20 |
1 files changed, 14 insertions, 6 deletions
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 { |
