Skip to content

Commit 1e76b72

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add support to add links in AlertPolicy
PiperOrigin-RevId: 644006298
1 parent 4293b78 commit 1e76b72

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

google/monitoring/v3/alert.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,20 @@ message AlertPolicy {
4949
// Documentation that is included in the notifications and incidents
5050
// pertaining to this policy.
5151
message Documentation {
52+
// Links to content such as playbooks, repositories, and other resources.
53+
message Link {
54+
// A short display name for the link. The display name must not be empty
55+
// or exceed 63 characters. Example: "playbook".
56+
string display_name = 1;
57+
58+
// The url of a webpage.
59+
// A url can be templatized by using variables
60+
// in the path or the query parameters. The total length of a URL should
61+
// not exceed 2083 characters before and after variable expansion.
62+
// Example: "https://my_domain.com/playbook?name=${resource.name}"
63+
string url = 2;
64+
}
65+
5266
// The body of the documentation, interpreted according to `mime_type`.
5367
// The content may not exceed 8,192 Unicode characters and may not exceed
5468
// more than 10,240 bytes when encoded in UTF-8 format, whichever is
@@ -75,6 +89,10 @@ message AlertPolicy {
7589
// If this field is missing or empty, a default subject line will be
7690
// generated.
7791
string subject = 3 [(google.api.field_behavior) = OPTIONAL];
92+
93+
// Optional. Links to content such as playbooks, repositories, and other
94+
// resources. This field can contain up to 3 entries.
95+
repeated Link links = 4 [(google.api.field_behavior) = OPTIONAL];
7896
}
7997

8098
// A condition is a true/false test that determines when an alerting policy

0 commit comments

Comments
 (0)