06 Oct 2020 01:47 PM
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
Solved! Go to Solution.
06 Oct 2020 01:55 PM
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.
06 Oct 2020 02:10 PM
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
06 Oct 2020 03:02 PM
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: