From b5bfeb2a55ff592346305ed55e96cc2310362dc0 Mon Sep 17 00:00:00 2001 From: Matt Klein Date: Fri, 18 Oct 2024 14:01:17 -0600 Subject: [PATCH] metrics: add period_end to snapshot uploads (#26) Signed-off-by: Matt Klein --- src/bitdrift_public/protobuf/client/v1/api.proto | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bitdrift_public/protobuf/client/v1/api.proto b/src/bitdrift_public/protobuf/client/v1/api.proto index e5ba150..7028da8 100644 --- a/src/bitdrift_public/protobuf/client/v1/api.proto +++ b/src/bitdrift_public/protobuf/client/v1/api.proto @@ -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