Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit 0541c7a

Browse files
feat: Added support for auto-close configurations (#253)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 410253233 Source-Link: googleapis/googleapis@11e309d Source-Link: https://github.com/googleapis/googleapis-gen/commit/b4f3403a28cc99c9c7cf4cd2efca105f279a3b0f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjRmMzQwM2EyOGNjOTljOWM3Y2Y0Y2QyZWZjYTEwNWYyNzlhM2IwZiJ9
1 parent c2a76fc commit 0541c7a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

google/cloud/monitoring_v3/types/alert.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,10 @@ class AlertStrategy(proto.Message):
527527
528528
This limit is not implemented for alert policies that are
529529
not log-based.
530+
auto_close (google.protobuf.duration_pb2.Duration):
531+
If an alert policy that was active has no
532+
data for this long, any open incidents will
533+
close
530534
"""
531535

532536
class NotificationRateLimit(proto.Message):
@@ -547,6 +551,9 @@ class NotificationRateLimit(proto.Message):
547551
number=1,
548552
message="AlertPolicy.AlertStrategy.NotificationRateLimit",
549553
)
554+
auto_close = proto.Field(
555+
proto.MESSAGE, number=3, message=duration_pb2.Duration,
556+
)
550557

551558
name = proto.Field(proto.STRING, number=1,)
552559
display_name = proto.Field(proto.STRING, number=2,)

google/cloud/monitoring_v3/types/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class TimeInterval(proto.Message):
128128
the end time of the previous interval.
129129
130130
- For ``CUMULATIVE`` metrics, the start time and end time must
131-
specify a a non-zero interval, with subsequent points specifying
131+
specify a non-zero interval, with subsequent points specifying
132132
the same start time and increasing end times, until an event
133133
resets the cumulative value to zero and sets a new start time for
134134
the following points. The new start time must be at least a

0 commit comments

Comments
 (0)