From b758b63740bd4401488defe824be5f28d257542d Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Thu, 14 Mar 2019 10:53:00 +0100 Subject: [PATCH] r/monitor_metric_alert: support for setting `aggregation` to `count` Fixes #3039 --- azurerm/resource_arm_monitor_metric_alert.go | 1 + website/docs/r/monitor_metric_alert.html.markdown | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/azurerm/resource_arm_monitor_metric_alert.go b/azurerm/resource_arm_monitor_metric_alert.go index 14975cf587f2..a5b81bbc5377 100644 --- a/azurerm/resource_arm_monitor_metric_alert.go +++ b/azurerm/resource_arm_monitor_metric_alert.go @@ -73,6 +73,7 @@ func resourceArmMonitorMetricAlert() *schema.Resource { Required: true, ValidateFunc: validation.StringInSlice([]string{ "Average", + "Count", "Minimum", "Maximum", "Total", diff --git a/website/docs/r/monitor_metric_alert.html.markdown b/website/docs/r/monitor_metric_alert.html.markdown index 0e3df92c7867..2f5c5b468df1 100644 --- a/website/docs/r/monitor_metric_alert.html.markdown +++ b/website/docs/r/monitor_metric_alert.html.markdown @@ -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.