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"mongodbatlas_alert_configuration" {
source="./modules/mongodbatlas/r/mongodbatlas_alert_configuration"# enabled - (optional) is a type of boolenabled=null# event_type - (required) is a type of stringevent_type=null# metric_threshold - (optional) is a type of map of stringmetric_threshold={}
# project_id - (required) is a type of stringproject_id=null# threshold - (optional) is a type of map of stringthreshold={}
matcher=[{
field_name =null
operator =null
value =null
}]
notification=[{
api_token =null
channel_name =null
datadog_api_key =null
datadog_region =null
delay_min =null
email_address =null
email_enabled =null
flow_name =null
flowdock_api_token =null
interval_min =null
mobile_number =null
ops_genie_api_key =null
ops_genie_region =null
org_name =null
roles = []
service_key =null
sms_enabled =null
team_id =null
type_name =null
username =null
victor_ops_api_key =null
victor_ops_routing_key =null
}]
}
resource"mongodbatlas_alert_configuration""this" {
# enabled - (optional) is a type of boolenabled=var.enabled# event_type - (required) is a type of stringevent_type=var.event_type# metric_threshold - (optional) is a type of map of stringmetric_threshold=var.metric_threshold# project_id - (required) is a type of stringproject_id=var.project_id# threshold - (optional) is a type of map of stringthreshold=var.thresholddynamic"matcher" {
for_each=var.matchercontent {
# field_name - (optional) is a type of stringfield_name=matcher.value["field_name"]
# operator - (optional) is a type of stringoperator=matcher.value["operator"]
# value - (optional) is a type of stringvalue=matcher.value["value"]
}
}
dynamic"notification" {
for_each=var.notificationcontent {
# api_token - (optional) is a type of stringapi_token=notification.value["api_token"]
# channel_name - (optional) is a type of stringchannel_name=notification.value["channel_name"]
# datadog_api_key - (optional) is a type of stringdatadog_api_key=notification.value["datadog_api_key"]
# datadog_region - (optional) is a type of stringdatadog_region=notification.value["datadog_region"]
# delay_min - (optional) is a type of numberdelay_min=notification.value["delay_min"]
# email_address - (optional) is a type of stringemail_address=notification.value["email_address"]
# email_enabled - (optional) is a type of boolemail_enabled=notification.value["email_enabled"]
# flow_name - (optional) is a type of stringflow_name=notification.value["flow_name"]
# flowdock_api_token - (optional) is a type of stringflowdock_api_token=notification.value["flowdock_api_token"]
# interval_min - (optional) is a type of numberinterval_min=notification.value["interval_min"]
# mobile_number - (optional) is a type of stringmobile_number=notification.value["mobile_number"]
# ops_genie_api_key - (optional) is a type of stringops_genie_api_key=notification.value["ops_genie_api_key"]
# ops_genie_region - (optional) is a type of stringops_genie_region=notification.value["ops_genie_region"]
# org_name - (optional) is a type of stringorg_name=notification.value["org_name"]
# roles - (optional) is a type of list of stringroles=notification.value["roles"]
# service_key - (optional) is a type of stringservice_key=notification.value["service_key"]
# sms_enabled - (optional) is a type of boolsms_enabled=notification.value["sms_enabled"]
# team_id - (optional) is a type of stringteam_id=notification.value["team_id"]
# type_name - (optional) is a type of stringtype_name=notification.value["type_name"]
# username - (optional) is a type of stringusername=notification.value["username"]
# victor_ops_api_key - (optional) is a type of stringvictor_ops_api_key=notification.value["victor_ops_api_key"]
# victor_ops_routing_key - (optional) is a type of stringvictor_ops_routing_key=notification.value["victor_ops_routing_key"]
}
}
}