Skip to content

Commit

Permalink
metrics: add period_end to snapshot uploads (#26)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Klein <[email protected]>
  • Loading branch information
mattklein123 authored Oct 18, 2024
1 parent 7145d82 commit b5bfeb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bitdrift_public/protobuf/client/v1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ message StatsUploadRequest {
// The point in time where the first set of stats in this aggregation period was aggregated.
// This allows the server to get some understanding how old the stats being uploaded are.
google.protobuf.Timestamp period_start = 4 [(validate.rules).message = {required: true}];

// When the aggregation was closed. If specified, the server can decide to handle variable
// size aggregation windows by averaging the data over the period or some other heuristic.
google.protobuf.Timestamp period_end = 5;
}

// To support different kinds of snapshots, we support providing information about when the data was
Expand Down

0 comments on commit b5bfeb2

Please sign in to comment.