Skip to content

Commit

Permalink
put artifact id on upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Snow Pettersen committed Feb 19, 2025
1 parent 2acc9c5 commit 16c7bde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
8 changes: 8 additions & 0 deletions src/bitdrift_public/protobuf/client/v1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -286,6 +290,10 @@ message UploadArtifactRequest {

// 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}];

// 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 {
Expand Down
20 changes: 0 additions & 20 deletions src/bitdrift_public/protobuf/client/v1/artifact.proto

This file was deleted.

0 comments on commit 16c7bde

Please sign in to comment.