Send Dynatrace notifications in XML

Hello,

I want to integrate Dynatrace with an event-system at one of our customers. Other systems that are linked to this event-system, communicatie via XML. The XML-formatted notification message is sent to an e-mail address, which then pushes this message into the event-system.

I thought about doing this via an e-mail integration, but that’s based on HTML. The message needs to look like this:

<xml>

<Notification>

<EventID>{PID}</EventID>

<Trigger>{State}</Trigger>

<Priority>{ProblemSeverity}</Priority>

<Transaction>{ProblemTitle}</Transaction>

</Notification>

</xml>

Does anyone has experience with this?

Kind regards,

Sten

Hi Sten,

Do you have the possibility to directly send the notification to the event-system? We support XML payloads with the webhook integration (Send Dynatrace notifications via webhooks — Dynatrace Docs).

We allow the modification of the Email payload on Dynatrace Managed, so this could also work for you, if you’re on Managed.

Hope this helps,
Cheers,
Dirk

Hi Dirk,

I am on Managed, so that sounds promising! I have looked into Webhook, but I’m not sure if I’m able to reach the system directly.

Can you give me more information about modifying the Email payload?

Kind regards,

Sten

You can find more details on modifying the payload, i.e. the Email message, here: Send Dynatrace notifications via email — Dynatrace Docs

However, as you already pointed out in your initial question, it is HTML and not XML. Unfortunately, this doesn’t help your in your case.

Best regards,
Dirk

This is probably best addressed with a custom webhook that routes the desired XML paylod via email.