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

azurem_monitor_scheduled_query_rules_alert - change metric_column to optional #21203

Merged
merged 2 commits into from
Mar 30, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -192,6 +187,11 @@ func resourceMonitorScheduledQueryRulesAlert() *pluginsdk.Resource {
Required: true,
ValidateFunc: validate.ScheduledQueryRulesAlertThreshold,
},
"metric_column": {
Type: pluginsdk.TypeString,
Optional: true,
ValidateFunc: validation.StringIsNotEmpty,
},
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

---

Expand Down