coco_apm_exportdtconfig/configuration/20211213-194909_EUPROD/notifications/CD_APIGW ITSM PROD.7d27c51c...

43 lines
1.4 KiB
HCL

resource "dynatrace_notification" "CD_APIGW_ITSM_PROD" {
web_hook {
name = "CD_APIGW ITSM PROD"
accept_any_certificate = false
active = true
alerting_profile = "263e8bcc-753a-35e2-a23c-d7a6386aa1a7"
notify_event_merges = false
payload = <<-EOT
[
{
"attributes": {
"CLASS": "BusinessTransaction",
"source": "MgmtZone: 8505678630142971659",
"severity": "MINOR",
"origin": "APPD-48041",
"sub_origin": "Dynatrace SaaS - {ImpactedEntity}",
"adapter_host": "https://xxu26128.live.dynatrace.com",
"msg": "{ProblemDetailsText}",
"contract_id": "10APP11633204",
"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 = "x-apikey"
value = "QkdrmGSgDAwU9iVF6cYEtVXPvUqciNai"
}
header {
name = "Authorization"
}
}
}