coco_apm_exportdtconfig/configuration/20211213-201056_EUPROD/notifications/TESTForstner ITSM.8ef91c36-...

44 lines
1.4 KiB
HCL

resource "dynatrace_notification" "TESTForstner_ITSM" {
web_hook {
name = "TESTForstner ITSM"
accept_any_certificate = false
active = false
alerting_profile = "5a20bb60-73cc-4ef6-8c6b-e22d9adc0f8e"
notify_event_merges = false
payload = <<-EOT
[
{
"attributes": {
"CLASS": "BusinessTransaction",
"source": "MgmtZone: All - Test",
"severity": "MINOR",
"origin": "APPD-255117",
"sub_origin": "Dynatrace SaaS - {ImpactedEntity}",
"adapter_host": "https://xxu26128.live.dynatrace.com",
"msg": "{ProblemDetailsText}",
"contract_id": "10APP11906401",
"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}",
"dd3": "{Tags}"
}
}
]
EOT
url = "https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1"
header {
name = "Authorization"
}
header {
name = "X-Apikey"
value = "QkdrmGSgDAwU9iVF6cYEtVXPvUqciNai"
}
}
}