From 0edbdde2a7e291661f2bb69f8dca62b5f8d89fab Mon Sep 17 00:00:00 2001 From: Snow Pettersen Date: Thu, 20 Feb 2025 07:39:29 -0800 Subject: [PATCH] add an artifact ID to the artifact intent/upload requests (#40) --- src/bitdrift_public/protobuf/client/v1/api.proto | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/bitdrift_public/protobuf/client/v1/api.proto b/src/bitdrift_public/protobuf/client/v1/api.proto index 644f760..bf36667 100644 --- a/src/bitdrift_public/protobuf/client/v1/api.proto +++ b/src/bitdrift_public/protobuf/client/v1/api.proto @@ -256,6 +256,10 @@ message UploadArtifactIntentRequest { // The metadata associated with the artifact. This is a binary blob that is interpreted by the server // based on the type_id. bytes metadata = 3; + + // A client-generated ID that uniquely identifies the artifact. This is used to correlate the artifact + // with logs that reference it. + string artifact_id = 4 [(validate.rules).string = {min_len: 1}]; } message UploadArtifactIntentResponse { @@ -285,7 +289,11 @@ message UploadArtifactRequest { string type_id = 2 [(validate.rules).string = {min_len: 1}]; // The artifact to upload. This is a binary blob that is interpreted by the server based on the type_id. - bytes contents = 3 [(validate.rules).bytes = {min_len: 1}]; + bytes contents = 3; + + // A client-generated ID that uniquely identifies the artifact being uploaded. This is used to correlate + // the artifact with logs that reference it. + string artifact_id = 4 [(validate.rules).string = {min_len: 1}]; } message UploadArtifactResponse {