-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example of usage of alert_strategy for google_monitoring_alert_policy #12016
Comments
@dxk185 how about this?
|
Thank you for the response. However from the response explanation, it is just the same position where I have provided the "alert_strategy" block as well. That is just outside the "conditions" block. The same level as in "display_name". |
@dxk185 what do you try to do? |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Hi Team,
I could not get a good example of using alert_strategy option for google_monitoring_alert_policy, resource.
The documentation https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/monitoring_alert_policy#nested_alert_strategy, is not clear on this either.
I keep on getting this error message :
Error: Unsupported block type
Blocks of type "alert_strategy" are not expected here.
The pseudo code is:
resource "google_monitoring_alert_policy" "" {
project =
display_name =
combiner = "OR"
conditions {
display_name =
condition_threshold {
filter =
duration = "60s"
comparison = "COMPARISON_GT"
aggregations {
alignment_period = "60s"
per_series_aligner = DELTA_ALIGN
cross_series_reducer = "REDUCE_COUNT"
}
trigger {
count = "1"
}
}
}
alert_strategy {
auto_close = "1800s"
}
notification_channels =
depends_on = [
google_logging_metric.
]
}
The text was updated successfully, but these errors were encountered: