diff --git a/internal/services/monitor/monitor_scheduled_query_rules_alert_resource.go b/internal/services/monitor/monitor_scheduled_query_rules_alert_resource.go index 4135e6bb5e19..d59087123407 100644 --- a/internal/services/monitor/monitor_scheduled_query_rules_alert_resource.go +++ b/internal/services/monitor/monitor_scheduled_query_rules_alert_resource.go @@ -163,11 +163,6 @@ func resourceMonitorScheduledQueryRulesAlert() *pluginsdk.Resource { MaxItems: 1, Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ - "metric_column": { - Type: pluginsdk.TypeString, - Required: true, - ValidateFunc: validation.StringIsNotEmpty, - }, "metric_trigger_type": { Type: pluginsdk.TypeString, Required: true, @@ -192,6 +187,11 @@ func resourceMonitorScheduledQueryRulesAlert() *pluginsdk.Resource { Required: true, ValidateFunc: validate.ScheduledQueryRulesAlertThreshold, }, + "metric_column": { + Type: pluginsdk.TypeString, + Optional: true, + ValidateFunc: validation.StringIsNotEmpty, + }, }, }, }, diff --git a/website/docs/r/monitor_scheduled_query_rules_alert.html.markdown b/website/docs/r/monitor_scheduled_query_rules_alert.html.markdown index d70923b93cc7..fbcc31324e52 100644 --- a/website/docs/r/monitor_scheduled_query_rules_alert.html.markdown +++ b/website/docs/r/monitor_scheduled_query_rules_alert.html.markdown @@ -136,10 +136,10 @@ The `action` block supports the following: The `metric_trigger` block supports the following: -* `metric_column` - (Required) Evaluation of metric on a particular column. * `metric_trigger_type` - (Required) Metric Trigger Type - 'Consecutive' or 'Total'. * `operator` - (Required) Evaluation operation for rule - 'Equal', 'GreaterThan', GreaterThanOrEqual', 'LessThan', or 'LessThanOrEqual'. * `threshold` - (Required) The threshold of the metric trigger. Values must be between 0 and 10000 inclusive. +* `metric_column` - (Optional) Evaluation of metric on a particular column. ---