add timestamp and any types

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-24 16:04:26 -05:00
parent 965f0ada9c
commit 7a31bd08c5
1 changed files with 14 additions and 6 deletions

View File

@ -1,6 +1,9 @@
syntax = "proto3"; syntax = "proto3";
package virtbuf; 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 { message Events {
string uuid = 1; // I guess why not just have this on each file 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 string version = 2; // maybe can be used for protobuf schema change violations
@ -8,6 +11,7 @@ message Events {
repeated Event events = 4; // all the events repeated Event events = 4; // all the events
} }
message Event { message Event {
int32 id = 1; int32 id = 1;
EventType etype = 2; EventType etype = 2;
@ -15,6 +19,10 @@ message Event {
string droplet_uuid = 4; // uuid of the droplet string droplet_uuid = 4; // uuid of the droplet
string hypervisor = 5; // name of the hypervisor string hypervisor = 5; // name of the hypervisor
string hypervisor_uuid = 6; // uuid 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 { enum EventType {