<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dynatrace Problem Webhook Back to Dynatrace Event - ProblemDetailsJSONv2 not useable? in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/Dynatrace-Problem-Webhook-back-to-Dynatrace-Event-with/m-p/228101#M213</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I noticed that you are missing the double quote as below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; "probDeetsTXT": "{ProblemDetailsText}",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "probDeets": &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;{ProblemDetailsJSONv2}&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I don't know if that should cause the problem or not, but this is the only field without ""&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Islam&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2023 05:55:45 GMT</pubDate>
    <dc:creator>Islam_Zedan</dc:creator>
    <dc:date>2023-11-09T05:55:45Z</dc:date>
    <item>
      <title>Dynatrace Problem Webhook back to Dynatrace Event with ProblemDetailsJSONv2 not useable</title>
      <link>https://community.dynatrace.com/t5/Automations/Dynatrace-Problem-Webhook-back-to-Dynatrace-Event-with/m-p/228100#M212</link>
      <description>&lt;P&gt;Hi Dynatracers!&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have a solution that executes actions based on specific conditions detected in Dynatrace using Dynatrace events.&amp;nbsp; To facilitate this I've setup a Dynatrace problem integration that loops back into Dynatrace via a webhook problem notification.&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Overall the structure works fine and is in general doing what I need, however I'm having some issues getting the JSON fields to travel through the the problem notification in a way that's acceptable to the Dynatrace V2 events ingest API (/api/v2/events/ingest).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To be specific, in order for this to work I need to send the problem information through as an event 'property' - this works fine for the standard 'string' style fields available in the problem notification, but won't work for any of the complex elements such as&amp;nbsp;&lt;EM&gt;ProblemDetailsJSONv2.&amp;nbsp;&lt;/EM&gt;&amp;nbsp;Even attempting to send a test notification results in an error (400 - Bad Request) -&amp;nbsp;&lt;SPAN&gt;{"error":{"code":400,"message":"Could not map JSON at 'properties.probDeets' near line 19 column 18"}}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Worst case sending&amp;nbsp;&lt;EM&gt;ProblemDetailsText&lt;/EM&gt; works correctly, but using a JSON version would be much nicer when working with it on the other side.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any suggestions?&amp;nbsp; I'm thinking this is almost certainly a constraint from the v2 event/ingest api (can't take a JSON struct as a property) - looking for any workarounds/thoughts?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Problem Notification Payload Definition:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;{&lt;BR /&gt;"eventType": "CUSTOM_INFO",&lt;BR /&gt;"title": "Run Action Request",&lt;BR /&gt;"properties": {&lt;BR /&gt;&amp;nbsp; "reqId": "00",&lt;BR /&gt;&amp;nbsp; "target": "{ImpactedEntity}",&lt;BR /&gt;&amp;nbsp; "retryOnFail": false,&lt;BR /&gt;&amp;nbsp; "dt.event.source": "ACTION_REQUEST",&lt;BR /&gt;&amp;nbsp; "ImpactedEntityNames": "{ImpactedEntityNames}",&lt;BR /&gt;&amp;nbsp; "ImpactedEntity": "{ImpactedEntity}",&lt;BR /&gt;&amp;nbsp; "ProblemID": "{ProblemID}",&lt;BR /&gt;&amp;nbsp; "ProblemDetails": "{ProblemDetailsText}",&lt;BR /&gt;&amp;nbsp; "source": "DynatraceNative",&lt;BR /&gt;&amp;nbsp; "probDeetsTXT": "{ProblemDetailsText}",&lt;BR /&gt;&amp;nbsp; "probDeets": {ProblemDetailsJSONv2}&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;"timeout": 1&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;All help greatly appreciated!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 15:05:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Dynatrace-Problem-Webhook-back-to-Dynatrace-Event-with/m-p/228100#M212</guid>
      <dc:creator>ewoelkerling</dc:creator>
      <dc:date>2023-11-23T15:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Problem Webhook Back to Dynatrace Event - ProblemDetailsJSONv2 not useable?</title>
      <link>https://community.dynatrace.com/t5/Automations/Dynatrace-Problem-Webhook-back-to-Dynatrace-Event-with/m-p/228101#M213</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I noticed that you are missing the double quote as below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; "probDeetsTXT": "{ProblemDetailsText}",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "probDeets": &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;{ProblemDetailsJSONv2}&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I don't know if that should cause the problem or not, but this is the only field without ""&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Islam&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 05:55:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Dynatrace-Problem-Webhook-back-to-Dynatrace-Event-with/m-p/228101#M213</guid>
      <dc:creator>Islam_Zedan</dc:creator>
      <dc:date>2023-11-09T05:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Problem Webhook Back to Dynatrace Event - ProblemDetailsJSONv2 not useable?</title>
      <link>https://community.dynatrace.com/t5/Automations/Dynatrace-Problem-Webhook-back-to-Dynatrace-Event-with/m-p/228103#M214</link>
      <description>&lt;P&gt;Hi Islam,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for the suggestion, but unfortunately no luck (although it does give me a different error now &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; ) - from memory the &lt;EM&gt;ProblemDetailsJSONv2&amp;nbsp;&lt;/EM&gt;field is one of those that's meant to&amp;nbsp;&lt;EM&gt;not&lt;/EM&gt; be quoted as it expands to a JSON struct - could be wrong there though.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks anyway!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 06:08:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Dynatrace-Problem-Webhook-back-to-Dynatrace-Event-with/m-p/228103#M214</guid>
      <dc:creator>ewoelkerling</dc:creator>
      <dc:date>2023-11-09T06:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Problem Webhook Back to Dynatrace Event - ProblemDetailsJSONv2 not useable?</title>
      <link>https://community.dynatrace.com/t5/Automations/Dynatrace-Problem-Webhook-back-to-Dynatrace-Event-with/m-p/228122#M215</link>
      <description>&lt;P&gt;I'm afraid that you will have to stay with ProblemDetailsText - otherwise it will probably be necessary to create some script, plugin, which will handle as an intermediary this communication.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 09:34:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Dynatrace-Problem-Webhook-back-to-Dynatrace-Event-with/m-p/228122#M215</guid>
      <dc:creator>radek_jasinski</dc:creator>
      <dc:date>2023-11-09T09:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace Problem Webhook Back to Dynatrace Event - ProblemDetailsJSONv2 not useable?</title>
      <link>https://community.dynatrace.com/t5/Automations/Dynatrace-Problem-Webhook-back-to-Dynatrace-Event-with/m-p/228479#M216</link>
      <description>&lt;P&gt;Thanks Radek - I suspect you're right - was hoping there was some other magic available I didn't see, but suspect not.&amp;nbsp; Thanks anyway!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 00:02:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Dynatrace-Problem-Webhook-back-to-Dynatrace-Event-with/m-p/228479#M216</guid>
      <dc:creator>ewoelkerling</dc:creator>
      <dc:date>2023-11-13T00:02:50Z</dc:date>
    </item>
  </channel>
</rss>

