coco_apm_exportdtconfig/configuration/20211213-194541_EUPROD/notifications/CD_ASBC-RSU-ITSM-E2E.8c93ea...

43 lines
1.4 KiB
HCL

resource "dynatrace_notification" "CD_ASBC-RSU-ITSM-E2E" {
web_hook {
name = "CD_ASBC-RSU-ITSM-E2E"
accept_any_certificate = false
active = true
alerting_profile = "afde4b7b-34b7-3170-ac6f-38dcc97dde80"
notify_event_merges = false
payload = <<-EOT
[
{
"attributes": {
"CLASS": "BusinessTransaction",
"source": "MgmtZone: CD_ASBC-RSU",
"severity": "MINOR",
"origin": "APPD-151846",
"sub_origin": "Dynatrace SaaS - {ImpactedEntity}",
"adapter_host": "https://xxu26128.live.dynatrace.com",
"msg": "{ProblemDetailsText}",
"contract_id": "10APP11765002",
"ars_esc": "Yes",
"ars_delay_time": "0",
"hostname": "test",
"sub_source": "Environment: CoCo_EMEA_Prod",
"server_loc": "",
"event_id": "AI001",
"dd_plus": "{ProblemSeverity}",
"dd1": "{ProblemURL}",
"dd2": "{PID}"
}
}
]
EOT
url = "https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1"
header {
name = "Authorization"
}
header {
name = "x-apikey"
value = "QkdrmGSgDAwU9iVF6cYEtVXPvUqciNai"
}
}
}