<?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: Management Zone Name inside Webhook Payload in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/Management-Zone-Name-inside-Webhook-Payload/m-p/120894#M1635</link>
    <description>&lt;P&gt;Thank you guys for the answers. We will go with Manual payload option for now.&lt;/P&gt;&lt;P&gt;If you don't mind I want to ask two more related questions. We're moving from AppDynamics to Dynatrace and we're integrating this with BMC Truesight.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. &lt;/STRONG&gt;{impactedEntity} sends a message something like "CPU increase at &lt;U&gt;&lt;EM&gt;abcHost&lt;/EM&gt;&lt;/U&gt;"&lt;/P&gt;&lt;P&gt;We just want to send the &lt;EM&gt;&lt;U&gt;abcHost&lt;/U&gt;&lt;/EM&gt; part. The explanation part is redundant in our situation, and I couldn't wrap my head around how to get this part from the other option {impactedEntities} JSON list.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. &lt;/STRONG&gt;It is possible to use logical syntax in AppDynamics which helps to send &lt;EM&gt;Event&lt;/EM&gt; type that is more compatible with BMC. In Dynatrace I immediately get a syntax error when I try something like the code below.&lt;/P&gt;&lt;PRE&gt;[&lt;BR /&gt;{&lt;BR /&gt;"eventSourceHostName": "APMTEST",&lt;BR /&gt;"eventSourceIPAddress": "xx.xx.xx.xx",&lt;BR /&gt;#if(${latestEvent.node.name})&lt;BR /&gt;"eventSourceHostName": "${latestEvent.node.name}",&lt;BR /&gt;"eventSourceIPAddress": "",&lt;BR /&gt;#end&lt;BR /&gt;"attributes": {&lt;BR /&gt;"CLASS": "APM_EV",&lt;BR /&gt;"controllerUrl": "${controllerUrl}",&lt;BR /&gt;"accountId": "${account.id}",&lt;BR /&gt;"accountName": "${account.name}",&lt;BR /&gt;"mc_object": "${latestEvent.tier.name}",&lt;BR /&gt;"mc_object_uri": "${latestEvent.deepLink}",&lt;BR /&gt;#if(${latestEvent.healthRule.name})&lt;BR /&gt;"mc_parameter": "${latestEvent.healthRule.name}",&lt;BR /&gt;"mc_tool": "${latestEvent.healthRule.name}_${latestEvent.severity}",&lt;BR /&gt;"mc_smc_alias": "${latestEvent.healthRule.name}",&lt;BR /&gt;#end&lt;BR /&gt;"mc_service": "${latestEvent.application.name}",&lt;BR /&gt;"mc_priority": "PRIORITY_1",&lt;BR /&gt;#if(${latestEvent.severity}=="ERROR") ----&amp;gt;&amp;gt; &lt;STRONG&gt;HOW CAN WE WRITE THIS?&lt;BR /&gt;&lt;/STRONG&gt;"severity": "CRITICAL",&lt;BR /&gt;#end&lt;BR /&gt;#if(${latestEvent.severity}=="WARN") ----&amp;gt;&amp;gt; &lt;STRONG&gt;HOW CAN WE WRITE THIS?&lt;BR /&gt;&lt;/STRONG&gt;"severity": "MAJOR",&lt;BR /&gt;#end&lt;BR /&gt;#if(${latestEvent.severity}=="INFO") ----&amp;gt;&amp;gt; &lt;STRONG&gt;HOW CAN WE WRITE THIS?&lt;BR /&gt;&lt;/STRONG&gt;"severity": "OK",&lt;BR /&gt;#end&lt;BR /&gt;"msg": "$!{latestEvent.summaryMessage.replace('&amp;lt;br&amp;gt;',' ').replace('&amp;lt;b&amp;gt;','').replace('&amp;lt;/b&amp;gt;','')}",&lt;BR /&gt;"mc_long_msg": "$!{latestEvent.eventMessage.replace('&amp;lt;br&amp;gt;',' ').replace('&amp;lt;b&amp;gt;','').replace('&amp;lt;/b&amp;gt;','')}"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;/PRE&gt;</description>
    <pubDate>Fri, 29 Jan 2021 10:11:24 GMT</pubDate>
    <dc:creator>serhat_balik</dc:creator>
    <dc:date>2021-01-29T10:11:24Z</dc:date>
    <item>
      <title>Management Zone Name inside Webhook Payload</title>
      <link>https://community.dynatrace.com/t5/Alerting/Management-Zone-Name-inside-Webhook-Payload/m-p/120890#M1631</link>
      <description>&lt;P&gt;There are multiple placeholders to send with webhook such as {ImpactedEntity}, {Tags}, etc..&lt;/P&gt;
&lt;P&gt;But I couldn't find a way to send Manage Zone Name of the impacted entities. Do you guys have ever tried to tackle this problem?&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 13:32:59 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Management-Zone-Name-inside-Webhook-Payload/m-p/120890#M1631</guid>
      <dc:creator>serhat_balik</dc:creator>
      <dc:date>2021-05-12T13:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Management Zone Name inside Webhook Payload</title>
      <link>https://community.dynatrace.com/t5/Alerting/Management-Zone-Name-inside-Webhook-Payload/m-p/120891#M1632</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://answers.dynatrace.com/users/41751/view.html" nodeid="41751"&gt;@MUSTAFA SERHAT B.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The placeholder is not available at the moment to explicitly define the management zone in the subject/message of the email incident.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Babar&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 13:51:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Management-Zone-Name-inside-Webhook-Payload/m-p/120891#M1632</guid>
      <dc:creator>Babar_Qayyum</dc:creator>
      <dc:date>2021-01-21T13:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Management Zone Name inside Webhook Payload</title>
      <link>https://community.dynatrace.com/t5/Alerting/Management-Zone-Name-inside-Webhook-Payload/m-p/120892#M1633</link>
      <description>&lt;P&gt;Keep in mind that management zones can overlap, a given host can be in multiple management zones and that must be accounted for. Depending on what you're trying to do if the notification is  filtered to a single management zone you could just 'hardcode' the management zone name into the payload. Otherwise perhaps just creating corresponding tags would be an option.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 14:12:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Management-Zone-Name-inside-Webhook-Payload/m-p/120892#M1633</guid>
      <dc:creator>JamesKitson</dc:creator>
      <dc:date>2021-01-21T14:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Management Zone Name inside Webhook Payload</title>
      <link>https://community.dynatrace.com/t5/Alerting/Management-Zone-Name-inside-Webhook-Payload/m-p/120893#M1634</link>
      <description>&lt;P&gt;Still, a placeholder of an array of management zones could be useful in some use cases. Typically tags and MZ are might have similar scop in the deployments, but they are not interchangable.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 08:18:20 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Management-Zone-Name-inside-Webhook-Payload/m-p/120893#M1634</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2021-01-26T08:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Management Zone Name inside Webhook Payload</title>
      <link>https://community.dynatrace.com/t5/Alerting/Management-Zone-Name-inside-Webhook-Payload/m-p/120894#M1635</link>
      <description>&lt;P&gt;Thank you guys for the answers. We will go with Manual payload option for now.&lt;/P&gt;&lt;P&gt;If you don't mind I want to ask two more related questions. We're moving from AppDynamics to Dynatrace and we're integrating this with BMC Truesight.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. &lt;/STRONG&gt;{impactedEntity} sends a message something like "CPU increase at &lt;U&gt;&lt;EM&gt;abcHost&lt;/EM&gt;&lt;/U&gt;"&lt;/P&gt;&lt;P&gt;We just want to send the &lt;EM&gt;&lt;U&gt;abcHost&lt;/U&gt;&lt;/EM&gt; part. The explanation part is redundant in our situation, and I couldn't wrap my head around how to get this part from the other option {impactedEntities} JSON list.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. &lt;/STRONG&gt;It is possible to use logical syntax in AppDynamics which helps to send &lt;EM&gt;Event&lt;/EM&gt; type that is more compatible with BMC. In Dynatrace I immediately get a syntax error when I try something like the code below.&lt;/P&gt;&lt;PRE&gt;[&lt;BR /&gt;{&lt;BR /&gt;"eventSourceHostName": "APMTEST",&lt;BR /&gt;"eventSourceIPAddress": "xx.xx.xx.xx",&lt;BR /&gt;#if(${latestEvent.node.name})&lt;BR /&gt;"eventSourceHostName": "${latestEvent.node.name}",&lt;BR /&gt;"eventSourceIPAddress": "",&lt;BR /&gt;#end&lt;BR /&gt;"attributes": {&lt;BR /&gt;"CLASS": "APM_EV",&lt;BR /&gt;"controllerUrl": "${controllerUrl}",&lt;BR /&gt;"accountId": "${account.id}",&lt;BR /&gt;"accountName": "${account.name}",&lt;BR /&gt;"mc_object": "${latestEvent.tier.name}",&lt;BR /&gt;"mc_object_uri": "${latestEvent.deepLink}",&lt;BR /&gt;#if(${latestEvent.healthRule.name})&lt;BR /&gt;"mc_parameter": "${latestEvent.healthRule.name}",&lt;BR /&gt;"mc_tool": "${latestEvent.healthRule.name}_${latestEvent.severity}",&lt;BR /&gt;"mc_smc_alias": "${latestEvent.healthRule.name}",&lt;BR /&gt;#end&lt;BR /&gt;"mc_service": "${latestEvent.application.name}",&lt;BR /&gt;"mc_priority": "PRIORITY_1",&lt;BR /&gt;#if(${latestEvent.severity}=="ERROR") ----&amp;gt;&amp;gt; &lt;STRONG&gt;HOW CAN WE WRITE THIS?&lt;BR /&gt;&lt;/STRONG&gt;"severity": "CRITICAL",&lt;BR /&gt;#end&lt;BR /&gt;#if(${latestEvent.severity}=="WARN") ----&amp;gt;&amp;gt; &lt;STRONG&gt;HOW CAN WE WRITE THIS?&lt;BR /&gt;&lt;/STRONG&gt;"severity": "MAJOR",&lt;BR /&gt;#end&lt;BR /&gt;#if(${latestEvent.severity}=="INFO") ----&amp;gt;&amp;gt; &lt;STRONG&gt;HOW CAN WE WRITE THIS?&lt;BR /&gt;&lt;/STRONG&gt;"severity": "OK",&lt;BR /&gt;#end&lt;BR /&gt;"msg": "$!{latestEvent.summaryMessage.replace('&amp;lt;br&amp;gt;',' ').replace('&amp;lt;b&amp;gt;','').replace('&amp;lt;/b&amp;gt;','')}",&lt;BR /&gt;"mc_long_msg": "$!{latestEvent.eventMessage.replace('&amp;lt;br&amp;gt;',' ').replace('&amp;lt;b&amp;gt;','').replace('&amp;lt;/b&amp;gt;','')}"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Jan 2021 10:11:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Management-Zone-Name-inside-Webhook-Payload/m-p/120894#M1635</guid>
      <dc:creator>serhat_balik</dc:creator>
      <dc:date>2021-01-29T10:11:24Z</dc:date>
    </item>
  </channel>
</rss>

