Skip to content

Commit

Permalink
azurerm_monitor_smart_detector_alert_rule: Support additional detecto…
Browse files Browse the repository at this point in the history
…r types (#13998)

PR raised to implement #13997

Azure Monitor App Insights now supports additional detector types "RequestPerformanceDegradationDetector", "DependencyPerformanceDegradationDetector", "ExceptionVolumeChangedDetector", "TraceSeverityDetector", "MemoryLeakDetector" as smart detection alerts.

See Migrate Azure Monitor Application Insights smart detection to alerts (Preview)

This PR updates the client side validation to allow the additional detector types for azurerm_monitor_smart_detector_alert_rule to be deployable via Terraform.
  • Loading branch information
gjermystreeva authored Nov 2, 2021
1 parent a036e6e commit edb5b0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ func resourceMonitorSmartDetectorAlertRule() *pluginsdk.Resource {
Required: true,
ValidateFunc: validation.StringInSlice([]string{
"FailureAnomaliesDetector",
"RequestPerformanceDegradationDetector",
"DependencyPerformanceDegradationDetector",
"ExceptionVolumeChangedDetector",
"TraceSeverityDetector",
"MemoryLeakDetector",
}, false),
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The following arguments are supported:

* `resource_group_name` - (Required) Specifies the name of the resource group in which the Monitor Smart Detector Alert Rule should exist. Changing this forces a new resource to be created.

* `detector_type` - (Required) Specifies the Built-In Smart Detector type that this alert rule will use. Currently the only possible value is `FailureAnomaliesDetector`.
* `detector_type` - (Required) Specifies the Built-In Smart Detector type that this alert rule will use. Currently the only possible values are `FailureAnomaliesDetector`, `RequestPerformanceDegradationDetector`, `DependencyPerformanceDegradationDetector`, `ExceptionVolumeChangedDetector`, `TraceSeverityDetector`, `MemoryLeakDetector`.

* `scope_resource_ids` - (Required) Specifies the scopes of this Smart Detector Alert Rule.

Expand Down

0 comments on commit edb5b0d

Please sign in to comment.