From 99162e4df59df7e6f54a8a33b80f0020627d8405 Mon Sep 17 00:00:00 2001 From: Yang Song Date: Thu, 25 Oct 2018 08:31:41 -0700 Subject: [PATCH] Metrics/TimeSeries: start time should not be included while end time should. (#142) --- src/opencensus/proto/metrics/v1/metrics.proto | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/opencensus/proto/metrics/v1/metrics.proto b/src/opencensus/proto/metrics/v1/metrics.proto index 54aebac..dee16eb 100644 --- a/src/opencensus/proto/metrics/v1/metrics.proto +++ b/src/opencensus/proto/metrics/v1/metrics.proto @@ -126,8 +126,8 @@ message LabelKey { // of a metric. message TimeSeries { // Must be present for cumulative metrics. The time when the cumulative value - // was reset to zero. The cumulative value is over the time interval - // [start_timestamp, timestamp). If not specified, the backend can use the + // was reset to zero. Exclusive. The cumulative value is over the time interval + // (start_timestamp, timestamp]. If not specified, the backend can use the // previous recorded value. google.protobuf.Timestamp start_timestamp = 1; @@ -151,8 +151,8 @@ message LabelValue { // A timestamped measurement. message Point { - // The moment when this point was recorded. If not specified, the timestamp - // will be decided by the backend. + // The moment when this point was recorded. Inclusive. + // If not specified, the timestamp will be decided by the backend. google.protobuf.Timestamp timestamp = 1; // The actual point value.