@@ -132,6 +132,30 @@ Type: `string`
132132
133133The following input variables are optional (have default values):
134134
135+ ### <a name =" input_action_group_id " ></a > [ action\_ group\_ id] ( #input\_ action\_ group\_ id )
136+
137+ Description: ID of the action group to notify.
138+
139+ Type: ` string `
140+
141+ Default: ` null `
142+
143+ ### <a name =" input_alert_cpu_threshold " ></a > [ alert\_ cpu\_ threshold] ( #input\_ alert\_ cpu\_ threshold )
144+
145+ Description: If alerting is enabled this will control what the cpu threshold will be, default will be 90.
146+
147+ Type: ` number `
148+
149+ Default: ` 90 `
150+
151+ ### <a name =" input_alert_window_size " ></a > [ alert\_ window\_ size] ( #input\_ alert\_ window\_ size )
152+
153+ Description: The period of time that is used to monitor alert activity e.g. PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H. The interval between checks is adjusted accordingly.
154+
155+ Type: ` string `
156+
157+ Default: ` "PT5M" `
158+
135159### <a name =" input_auditing_policy_retention_in_days " ></a > [ auditing\_ policy\_ retention\_ in\_ days] ( #input\_ auditing\_ policy\_ retention\_ in\_ days )
136160
137161Description: number of days for audit log policies
@@ -164,6 +188,14 @@ Type: `string`
164188
165189Default: ` "baseline" `
166190
191+ ### <a name =" input_enable_alerting " ></a > [ enable\_ alerting] ( #input\_ enable\_ alerting )
192+
193+ Description: Whether monitoring and alerting is enabled for the Azure SQL Server.
194+
195+ Type: ` bool `
196+
197+ Default: ` false `
198+
167199### <a name =" input_firewall_rules " ></a > [ firewall\_ rules] ( #input\_ firewall\_ rules )
168200
169201Description: If the FW rule enabling Azure Services Passthrough should be deployed.
@@ -345,6 +377,7 @@ Description: The ID of the SQL Server.
345377
346378The following resources are used by this module:
347379
380+ - [ azurerm_monitor_metric_alert.cpu] ( https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/monitor_metric_alert ) (resource)
348381- [ azurerm_mssql_database.defaultdb] ( https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_database ) (resource)
349382- [ azurerm_mssql_database_extended_auditing_policy.database_auditing_policy] ( https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_database_extended_auditing_policy ) (resource)
350383- [ azurerm_mssql_firewall_rule.firewall_rule] ( https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/mssql_firewall_rule ) (resource)
0 commit comments