diff --git a/onboarding/CD_managementZone/notification/itsm.json b/onboarding/CD_managementZone/notification/itsm.json new file mode 100644 index 00000000..677ef0ea --- /dev/null +++ b/onboarding/CD_managementZone/notification/itsm.json @@ -0,0 +1,20 @@ +{ + "acceptAnyCertificate": false, + "active": true, + "alertingProfile": "{{.alertingProfile}}", + "headers": [ + { + "name": "Authorization", + "value": "{{.Env.SecretAuthHeader}}" + }, + { + "name": "x-apikey", + "value": "{{.Env.SecretXAPIKey}}" + } + ], + "name": "{{.name}}", + "notifyEventMergesEnabled": false, + "payload": "[\n{\n \"attributes\": {\n \"CLASS\": \"BusinessTransaction\",\n \"source\": \"MgmtZone: {{.mzName}}\",\n \"severity\": \"MINOR\",\n \"origin\": \"{{.appdid}}\",\n \"sub_origin\": \"Dynatrace SaaS - {ImpactedEntity}\",\n \"adapter_host\": \"{{ .DTEnvironment }}\",\n \"msg\": \"{ProblemDetailsText}\",\n \"contract_id\": \"{{.contractid}}\",\n \"ars_esc\": \"Yes\",\n \"ars_delay_time\": \"0\",\n \"hostname\": \"test\",\n \"sub_source\": \"Environment: CoCo_EMEA_Prod\",\n \"server_loc\": \"\",\n \"event_id\": \"AI001\",\n \"dd_plus\": \"{ProblemSeverity}\",\n \"dd1\": \"{ProblemURL}\",\n \"dd2\": \"{PID}\"\n }\n}\n]", + "type": "WEBHOOK", + "url": "{{.webhook}}" +} diff --git a/onboarding/CD_managementZone/notification/notification.yaml b/onboarding/CD_managementZone/notification/notification.yaml index dcda48e5..566e0908 100644 --- a/onboarding/CD_managementZone/notification/notification.yaml +++ b/onboarding/CD_managementZone/notification/notification.yaml @@ -1,7 +1,8 @@ config: - CDnewComponentTag: msTeams.json +- CDnewComponentTagITSM: itsm.json -# Notification System for EMEA/NA/CN Prod +# Notification System for EMEA/NA/CN Prod msTeams CDnewComponentTag.EMEA-Prod: - name: CD_managementZone PROD - alertingProfile: CD_managementZone/alerting-profile/CDnewComponentTag.id @@ -18,7 +19,7 @@ CDnewComponentTag.CN-Prod: - webhook: https://empty - skipDeployment: "true" -# Notification System for EMEA/NA/CN PreProd +# Notification System for EMEA/NA/CN PreProd msTeams CDnewComponentTag.EMEA-PreProd: - name: CD_managementZone INT - alertingProfile: CD_managementZone/alerting-profile/CDnewComponentTag.id @@ -33,4 +34,37 @@ CDnewComponentTag.CN-PreProd: - name: CD_managementZone INT - alertingProfile: CD_managementZone/alerting-profile/CDnewComponentTag.id - webhook: https://empty -- skipDeployment: "true" \ No newline at end of file +- skipDeployment: "true" + + +# Notification System for EMEA/NA/CN Prod ITSM +CDnewComponentTagITSM.EMEA-Prod: +- name: CD_managementZone ITSM PROD +- alertingProfile: CD_managementZone/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_managementZone/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "false" + +CDnewComponentTagITSM.NA-Prod: +- name: CD_managementZone ITSM PROD +- alertingProfile: CD_managementZone/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_managementZone/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "false" + + +CDnewComponentTagITSM.CN-Prod: +- name: CD_managementZone ITSM PROD +- alertingProfile: CD_managementZone/alerting-profile/CDnewComponentTag.id +- webhook: https://apim-beta-prod.bmwgroup.com/evtmgmt/eventproxy/v1 +- contractid: "10APP11906401" +- appdid: "TEST123" +- mzName: CD_managementZone/management-zone/CDnewComponentTag.id +- DTEnvironment: https://xxu26128.live.dynatrace.com +- skipDeployment: "false"