Skip to content
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

r/monitor_metric_alert: support for setting aggregation to count #3047

Merged
merged 1 commit into from
Mar 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions azurerm/resource_arm_monitor_metric_alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func resourceArmMonitorMetricAlert() *schema.Resource {
Required: true,
ValidateFunc: validation.StringInSlice([]string{
"Average",
"Count",
"Minimum",
"Maximum",
"Total",
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/monitor_metric_alert.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ A `criteria` block supports the following:

* `metric_namespace` - (Required) One of the metric namespaces to be monitored.
* `metric_name` - (Required) One of the metric names to be monitored.
* `aggregation` - (Required) The statistic that runs over the metric values. Possible values are `Average`, `Minimum`, `Maximum` and `Total`.
* `aggregation` - (Required) The statistic that runs over the metric values. Possible values are `Average`, `Count`, `Minimum`, `Maximum` and `Total`.
* `operator` - (Required) The criteria operator. Possible values are `Equals`, `NotEquals`, `GreaterThan`, `GreaterThanOrEqual`, `LessThan` and `LessThanOrEqual`.
* `threshold` - (Required) The criteria threshold value that activates the alert.
* `dimension` - (Optional) One or more `dimension` blocks as defined below.
Expand Down