Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stats: add proto for snapshot index file #25

Merged
merged 1 commit into from
Oct 17, 2024
Merged
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
16 changes: 16 additions & 0 deletions src/bitdrift_public/protobuf/client/v1/metric.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,26 @@

syntax = "proto3";

import "google/protobuf/timestamp.proto";
import "validate/validate.proto";

package bitdrift_public.protobuf.client.v1;

// Used to track an index of pending aggregations that need to be uploaded. This is used by the
// file manager to coordinate merging and uploads.
message PendingAggregationIndex {
message PendingFile {
// Name of the file to upload.
string name = 1;
// The start of the period that this file covers. All metrics are aggregated over this period.
google.protobuf.Timestamp period_start = 2;
// True if an aggregation is ready to upload and should no longer be written to.
bool ready_to_upload = 3;
}
// List of files, in order of period_start, that are pending upload.
repeated PendingFile pending_files = 1;
}

message Counter {
// Deprecated do not use this. At some point we will reserve this field and remove it.
uint32 value_deprecated = 1;
Expand Down
Loading