cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

webhook notification xml

jose-antonio_ra
Inactive

Hi everyone,

Can someone show me a valid XML web hook problem-notification definition example.


In the documentation I only see in json


thanks in advanced.

Jose A

3 REPLIES 3

JamesKitson
Dynatrace Guru
Dynatrace Guru

For outbound problem notifications you'll primarily see stuff assuming the endpoint you're sending too consumes json and you'll notice also that the UI complains if your entry doesn't have valid json.

So first thing you may need to do is add a Content-Type header to the notification (can add application/xml etc...) and then Dynatrace understands you're not trying to send json. After that though you just need to make sure it's valid xml so that your endpoint can process it (you can use some tools or editors to validate it) and you can use the curly braces to include placeholders just like for json, but apart from that more depends on what you're integrating with than any examples that would be specific to Dynatrace.

Thanks James.

I would like to have an example to see how the placeholders are included within the xml:

It would be something like this??

<xml>
     <application> {ImpactedEntity} </application>
     <object> {Tags} </object>
     <state> {State} </state>
</xml>


best regards.

Jose A

Yep! It'll show you which ones are available, just know that the placeholders will be filled with actual problem data when they are detected. Apart from that just make sure the xml is valid and is in the format that your endpoint expects:

Featured Posts