From 814d36b9c95359a12d3abd5d120080164184816c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 21 Apr 2025 18:25:17 -0500 Subject: working on droplet start event --- event.proto | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'event.proto') diff --git a/event.proto b/event.proto index 5fdb500..7a0d5a3 100644 --- a/event.proto +++ b/event.proto @@ -18,7 +18,12 @@ message Events { // `autogenpb:marsh // 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 { +message Event { // `autogenpb:marshal` + enum status { + DONE = 0; + FAIL = 1; + RUNNING = 2; + } int32 id = 1; // `autogenpb:unique` // should be unique across the cluster EventType etype = 2; string droplet = 3; // name of the droplet @@ -32,8 +37,9 @@ message Event { string newVal = 11; // new value google.protobuf.Any origAny = 12; // anypb format. probably overkill google.protobuf.Any newAny = 13; // anypb format + string error = 14; // what went wrong + status state = 15; // state of the event } - enum EventType { ADD = 0; DELETE = 1; -- cgit v1.2.3