From 7a31bd08c53e4e21297e8fa5a9a2f1ec39294530 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 24 Oct 2024 16:04:26 -0500 Subject: [PATCH] add timestamp and any types Signed-off-by: Jeff Carr --- events.proto | 20 ++++++++++++++------ 1 file 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 {