coco_apm_exportdtconfig/configuration/20211213-201056_EUPROD/notifications/[ITSM][WK-Remote-Services]....

43 lines
1.4 KiB
HCL

resource "dynatrace_notification" "_ITSM__WK-Remote-Services_" {
web_hook {
name = "[ITSM][WK-Remote-Services]"
accept_any_certificate = false
active = true
alerting_profile = "27a1dfb7-6699-37a4-a765-362228da5708"
notify_event_merges = false
payload = <<-EOT
[
{
"attributes": {
"CLASS": "BusinessTransaction",
"source": "[ITSM][WK-Remote-Services]",
"severity": "MAJOR",
"origin": "APPD-82946",
"sub_origin": "Dynatrace SaaS",
"adapter_host": "https://xxu26128.live.dynatrace.com",
"msg": "{ProblemDetailsText}",
"contract_id": "10APP11646805",
"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"
}
}
}