Skip to content

Commit

Permalink
feat(monitoring_alert_policy): support notification prompts (GoogleCl…
Browse files Browse the repository at this point in the history
…oudPlatform#12052)

Signed-off-by: Tsubasa Nagasawa <toversus2357@gmail.com>
  • Loading branch information
toVersus authored and akshat-jindal-nit committed Nov 18, 2024
1 parent 15d4363 commit d71644a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions mmv1/products/monitoring/AlertPolicy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,16 @@ properties:
type: String
description: |
If an alert policy that was active has no data for this long, any open incidents will close.
- name: 'notificationPrompts'
type: Array
description: |
Control when notifications will be sent out.
item_type:
type: Enum
enum_values:
- 'NOTIFICATION_PROMPT_UNSPECIFIED'
- 'OPENED'
- 'CLOSED'
- name: 'notificationChannelStrategy'
type: Array
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ resource "google_monitoring_alert_policy" "log" {
notification_rate_limit {
period = "300s"
}
auto_close = "2000s"
auto_close = "2000s"
notification_prompts = ["OPENED"]
}
severity = "WARNING"
Expand Down

0 comments on commit d71644a

Please sign in to comment.