You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"azurerm_monitor_scheduled_query_rules_alert" {
source="./modules/azurerm/r/azurerm_monitor_scheduled_query_rules_alert"# authorized_resource_ids - (optional) is a type of set of stringauthorized_resource_ids=[]
# data_source_id - (required) is a type of stringdata_source_id=null# description - (optional) is a type of stringdescription=null# enabled - (optional) is a type of boolenabled=null# frequency - (required) is a type of numberfrequency=null# location - (required) is a type of stringlocation=null# name - (required) is a type of stringname=null# query - (required) is a type of stringquery=null# query_type - (optional) is a type of stringquery_type=null# resource_group_name - (required) is a type of stringresource_group_name=null# severity - (optional) is a type of numberseverity=null# tags - (optional) is a type of map of stringtags={}
# throttling - (optional) is a type of numberthrottling=null# time_window - (required) is a type of numbertime_window=nullaction=[{
action_group = []
custom_webhook_payload =null
email_subject =null
}]
timeouts=[{
create =null
delete =null
read =null
update =null
}]
trigger=[{
metric_trigger = [{
metric_column =null
metric_trigger_type =null
operator =null
threshold =null
}]
operator =null
threshold =null
}]
}
resource"azurerm_monitor_scheduled_query_rules_alert""this" {
# authorized_resource_ids - (optional) is a type of set of stringauthorized_resource_ids=var.authorized_resource_ids# data_source_id - (required) is a type of stringdata_source_id=var.data_source_id# description - (optional) is a type of stringdescription=var.description# enabled - (optional) is a type of boolenabled=var.enabled# frequency - (required) is a type of numberfrequency=var.frequency# location - (required) is a type of stringlocation=var.location# name - (required) is a type of stringname=var.name# query - (required) is a type of stringquery=var.query# query_type - (optional) is a type of stringquery_type=var.query_type# resource_group_name - (required) is a type of stringresource_group_name=var.resource_group_name# severity - (optional) is a type of numberseverity=var.severity# tags - (optional) is a type of map of stringtags=var.tags# throttling - (optional) is a type of numberthrottling=var.throttling# time_window - (required) is a type of numbertime_window=var.time_windowdynamic"action" {
for_each=var.actioncontent {
# action_group - (required) is a type of set of stringaction_group=action.value["action_group"]
# custom_webhook_payload - (optional) is a type of stringcustom_webhook_payload=action.value["custom_webhook_payload"]
# email_subject - (optional) is a type of stringemail_subject=action.value["email_subject"]
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# read - (optional) is a type of stringread=timeouts.value["read"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
dynamic"trigger" {
for_each=var.triggercontent {
# operator - (required) is a type of stringoperator=trigger.value["operator"]
# threshold - (required) is a type of numberthreshold=trigger.value["threshold"]
dynamic"metric_trigger" {
for_each=trigger.value.metric_triggercontent {
# metric_column - (required) is a type of stringmetric_column=metric_trigger.value["metric_column"]
# metric_trigger_type - (required) is a type of stringmetric_trigger_type=metric_trigger.value["metric_trigger_type"]
# operator - (required) is a type of stringoperator=metric_trigger.value["operator"]
# threshold - (required) is a type of numberthreshold=metric_trigger.value["threshold"]
}
}
}
}
}