Skip to content

Commit

Permalink
stats: add proto for snapshot index file (#25)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Klein <[email protected]>
  • Loading branch information
mattklein123 authored Oct 17, 2024
1 parent 982ebb7 commit 7145d82
Showing 1 changed file with 16 additions and 0 deletions.
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

0 comments on commit 7145d82

Please sign in to comment.