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"alicloud_cms_group_metric_rule" {
source="./modules/alicloud/r/alicloud_cms_group_metric_rule"# category - (required) is a type of stringcategory=null# contact_groups - (optional) is a type of stringcontact_groups=null# dimensions - (optional) is a type of stringdimensions=null# effective_interval - (optional) is a type of stringeffective_interval=null# email_subject - (optional) is a type of stringemail_subject=null# group_id - (required) is a type of stringgroup_id=null# group_metric_rule_name - (required) is a type of stringgroup_metric_rule_name=null# interval - (optional) is a type of stringinterval=null# metric_name - (required) is a type of stringmetric_name=null# namespace - (required) is a type of stringnamespace=null# no_effective_interval - (optional) is a type of stringno_effective_interval=null# period - (optional) is a type of numberperiod=null# rule_id - (required) is a type of stringrule_id=null# silence_time - (optional) is a type of numbersilence_time=null# webhook - (optional) is a type of stringwebhook=nullescalations=[{
critical = [{
comparison_operator =null
statistics =null
threshold =null
times =null
}]
info = [{
comparison_operator =null
statistics =null
threshold =null
times =null
}]
warn = [{
comparison_operator =null
statistics =null
threshold =null
times =null
}]
}]
timeouts=[{
create =null
update =null
}]
}
resource"alicloud_cms_group_metric_rule""this" {
# category - (required) is a type of stringcategory=var.category# contact_groups - (optional) is a type of stringcontact_groups=var.contact_groups# dimensions - (optional) is a type of stringdimensions=var.dimensions# effective_interval - (optional) is a type of stringeffective_interval=var.effective_interval# email_subject - (optional) is a type of stringemail_subject=var.email_subject# group_id - (required) is a type of stringgroup_id=var.group_id# group_metric_rule_name - (required) is a type of stringgroup_metric_rule_name=var.group_metric_rule_name# interval - (optional) is a type of stringinterval=var.interval# metric_name - (required) is a type of stringmetric_name=var.metric_name# namespace - (required) is a type of stringnamespace=var.namespace# no_effective_interval - (optional) is a type of stringno_effective_interval=var.no_effective_interval# period - (optional) is a type of numberperiod=var.period# rule_id - (required) is a type of stringrule_id=var.rule_id# silence_time - (optional) is a type of numbersilence_time=var.silence_time# webhook - (optional) is a type of stringwebhook=var.webhookdynamic"escalations" {
for_each=var.escalationscontent {
dynamic"critical" {
for_each=escalations.value.criticalcontent {
# comparison_operator - (optional) is a type of stringcomparison_operator=critical.value["comparison_operator"]
# statistics - (optional) is a type of stringstatistics=critical.value["statistics"]
# threshold - (optional) is a type of stringthreshold=critical.value["threshold"]
# times - (optional) is a type of numbertimes=critical.value["times"]
}
}
dynamic"info" {
for_each=escalations.value.infocontent {
# comparison_operator - (optional) is a type of stringcomparison_operator=info.value["comparison_operator"]
# statistics - (optional) is a type of stringstatistics=info.value["statistics"]
# threshold - (optional) is a type of stringthreshold=info.value["threshold"]
# times - (optional) is a type of numbertimes=info.value["times"]
}
}
dynamic"warn" {
for_each=escalations.value.warncontent {
# comparison_operator - (optional) is a type of stringcomparison_operator=warn.value["comparison_operator"]
# statistics - (optional) is a type of stringstatistics=warn.value["statistics"]
# threshold - (optional) is a type of stringthreshold=warn.value["threshold"]
# times - (optional) is a type of numbertimes=warn.value["times"]
}
}
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}