From 57347fd2d94ef8c102740a8edec20b887e9b2fd1 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 17 Apr 2020 12:54:28 -0700 Subject: [PATCH] docs: increase the required minimum difference between start time of the next interval (#140) and the end time of the previous one from the one microsecond to one millisecond. This will enable some resource savings for in-memory storage. PiperOrigin-RevId: 306560315 Source-Author: Google APIs Source-Date: Tue Apr 14 19:10:51 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 160e3187dc93265ed635ad68e12c483c8ab4f7be Source-Link: https://github.com/googleapis/googleapis/commit/160e3187dc93265ed635ad68e12c483c8ab4f7be --- .../src/main/java/com/google/monitoring/v3/TimeInterval.java | 4 ++-- .../src/main/proto/google/monitoring/v3/common.proto | 2 +- synth.metadata | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java index adcd2392..dab90aaf 100644 --- a/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java +++ b/proto-google-cloud-monitoring-v3/src/main/java/com/google/monitoring/v3/TimeInterval.java @@ -32,7 +32,7 @@ * * For `DELTA` and `CUMULATIVE` metrics, the start time must be earlier * than the end time. * * In all cases, the start time of the next interval must be - * at least a microsecond after the end time of the previous interval. + * at least a millisecond after the end time of the previous interval. * Because the interval is closed, if the start time of a new interval * is the same as the end time of the previous interval, data written * at the new start time could overwrite data written at the previous @@ -428,7 +428,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * For `DELTA` and `CUMULATIVE` metrics, the start time must be earlier * than the end time. * * In all cases, the start time of the next interval must be - * at least a microsecond after the end time of the previous interval. + * at least a millisecond after the end time of the previous interval. * Because the interval is closed, if the start time of a new interval * is the same as the end time of the previous interval, data written * at the new start time could overwrite data written at the previous diff --git a/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto b/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto index 638ef4a6..f1b38c23 100644 --- a/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto +++ b/proto-google-cloud-monitoring-v3/src/main/proto/google/monitoring/v3/common.proto @@ -64,7 +64,7 @@ message TypedValue { // than the end time. // // * In all cases, the start time of the next interval must be -// at least a microsecond after the end time of the previous interval. +// at least a millisecond after the end time of the previous interval. // Because the interval is closed, if the start time of a new interval // is the same as the end time of the previous interval, data written // at the new start time could overwrite data written at the previous diff --git a/synth.metadata b/synth.metadata index ed8cb3db..aed9b289 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,8 +11,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "b21bc9b46e3263cd4ebe50f60c61589e3fe797f2", - "internalRef": "305797556" + "sha": "160e3187dc93265ed635ad68e12c483c8ab4f7be", + "internalRef": "306560315" } }, {