43 lines
1.5 KiB
HCL
43 lines
1.5 KiB
HCL
resource "dynatrace_notification" "_ITSM__CD_vehicle-remote-commands-composite-service_PROD" {
|
|
web_hook {
|
|
name = "[ITSM] CD_vehicle-remote-commands-composite-service PROD"
|
|
accept_any_certificate = false
|
|
active = false
|
|
alerting_profile = "2ef98f3e-c5ca-4ef8-88ac-31e46405d382"
|
|
notify_event_merges = false
|
|
payload = <<-EOT
|
|
[
|
|
{
|
|
"attributes": {
|
|
"CLASS": "BusinessTransaction",
|
|
"source": "MgmtZone: All - Test",
|
|
"severity": "MAJOR",
|
|
"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}"
|
|
}
|
|
}
|
|
]
|
|
EOT
|
|
url = "https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1"
|
|
header {
|
|
name = "Authorization"
|
|
}
|
|
header {
|
|
name = "x-apikey"
|
|
value = "QkdrmGSgDAwU9iVF6cYEtVXPvUqciNai"
|
|
}
|
|
}
|
|
}
|