Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/bitdrift_public/protobuf/client/v1/artifact.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ import "bitdrift_public/protobuf/client/v1/feature_flag.proto";
import "bitdrift_public/protobuf/logging/v1/payload.proto";
import "google/protobuf/timestamp.proto";

enum StorageFormat {
// The file was checksummed when it was copied into the artifact upload queue, so we can validate the checksum on upload.
CHECKSUMMED = 0;
// The file was stored on disk without being checksummed. This should only be used if the file already has
// internal checksumming like zlib.
RAW = 1;
}

// the upload manager to coordinate intents and uploads.
message ArtifactUploadIndex {
message Artifact {
Expand All @@ -37,6 +45,9 @@ message ArtifactUploadIndex {

// The type of the artifact, e.g. "client_report", "state_snapshot", etc. This is used by the server to determine how to process the artifact. For backwards compatibility, if this is absent the artifact is an issue report.
optional string type_id = 8;

// The storage format of the artifact, which determines whether we apply checksum validation during processing.
StorageFormat storage_format = 9;
}

// List of files, in order of time, that are pending upload.
Expand Down
5 changes: 5 additions & 0 deletions src/bitdrift_public/protobuf/client/v1/key_value.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,8 @@ message AppVersion {
string build_number = 3;
}
}

message StateSnapshotRange {
uint64 oldest_micros = 1;
uint64 newest_micros = 2;
}
Loading