diff --git a/google/cloud/monitoring_v3/types/alert.py b/google/cloud/monitoring_v3/types/alert.py index 4e16bf69..83120e2d 100644 --- a/google/cloud/monitoring_v3/types/alert.py +++ b/google/cloud/monitoring_v3/types/alert.py @@ -527,6 +527,10 @@ class AlertStrategy(proto.Message): This limit is not implemented for alert policies that are not log-based. + auto_close (google.protobuf.duration_pb2.Duration): + If an alert policy that was active has no + data for this long, any open incidents will + close """ class NotificationRateLimit(proto.Message): @@ -547,6 +551,9 @@ class NotificationRateLimit(proto.Message): number=1, message="AlertPolicy.AlertStrategy.NotificationRateLimit", ) + auto_close = proto.Field( + proto.MESSAGE, number=3, message=duration_pb2.Duration, + ) name = proto.Field(proto.STRING, number=1,) display_name = proto.Field(proto.STRING, number=2,) diff --git a/google/cloud/monitoring_v3/types/common.py b/google/cloud/monitoring_v3/types/common.py index 18b5c8bf..0c4b8c9c 100644 --- a/google/cloud/monitoring_v3/types/common.py +++ b/google/cloud/monitoring_v3/types/common.py @@ -128,7 +128,7 @@ class TimeInterval(proto.Message): the end time of the previous interval. - For ``CUMULATIVE`` metrics, the start time and end time must - specify a a non-zero interval, with subsequent points specifying + specify a non-zero interval, with subsequent points specifying the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points. The new start time must be at least a