summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-25 03:34:03 -0500
committerJeff Carr <[email protected]>2024-10-25 03:34:03 -0500
commit2882686cafcfee508bd663ce1566cc418f4b3564 (patch)
tree00c43d04a24ac7d5bd63b322d080357c22da3bbf
parente70615220731c4497a4819d5f681f3e9496efbbd (diff)
anypb is probably overkill herev0.1
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--events.proto12
1 files changed, 10 insertions, 2 deletions
diff --git a/events.proto b/events.proto
index 2b5146c..49a8543 100644
--- a/events.proto
+++ b/events.proto
@@ -11,6 +11,11 @@ message Events {
repeated Event events = 4; // all the events
}
+// this information leans towards being human readable not programatic
+// in other words, it's better to just have the droplet name here rather than the uuid
+// at least for now in the early days. but maybe forever.
+// homelab clouds normally don't have many events.
+// we are talking less than 1 a minute. even 1 an hour is often a lot
message Event {
int32 id = 1;
EventType etype = 2;
@@ -20,8 +25,11 @@ message Event {
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
+ string field_name = 9; // the field name that changed
+ string orig_val = 10; // original value
+ string new_val = 11; // new value
+ google.protobuf.Any orig_any = 12; // anypb format. probably overkill
+ google.protobuf.Any new_any = 13; // anypb format
}
enum EventType {