<?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>question Re: Need the email related fields for JSON object AlertTarget. Trying to automate alert-email creation. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Need-the-email-related-fields-for-JSON-object-AlertTarget/m-p/277508#M207585</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do we have something similar for cloudera (custom alerts)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regads&lt;/P&gt;&lt;P&gt;Amjad&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 14:00:42 GMT</pubDate>
    <dc:creator>M_Seyal</dc:creator>
    <dc:date>2019-09-17T14:00:42Z</dc:date>
    <item>
      <title>Need the email related fields for JSON object AlertTarget. Trying to automate alert-email creation.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Need-the-email-related-fields-for-JSON-object-AlertTarget/m-p/238834#M200645</link>
      <description>&lt;P&gt;Alert Target JSON needs to include Email To, SMTP server, port, email from, authentication, username, and password info. I need to know how to format this information with existing object: "AlertTarget": 
      {
        "name": "sdf", 
        "description": "sdf.", 
        "notification_type": "EMAIL", 
        "global": "true", 
        "alert_states": ["CRITICAL"], 
        "properties": { 
          "ambari.dispatch-property.script": "my.custom.alert.dispatcher.script"
        }
      }
  }&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 09:08:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Need-the-email-related-fields-for-JSON-object-AlertTarget/m-p/238834#M200645</guid>
      <dc:creator>ashen_x_parikh</dc:creator>
      <dc:date>2018-12-11T09:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need the email related fields for JSON object AlertTarget. Trying to automate alert-email creation.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Need-the-email-related-fields-for-JSON-object-AlertTarget/m-p/238835#M200646</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/100168/ashenxparikh.html" nodeid="100168"&gt;@Ashen Parikh&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;from your question its not clear what you are trying to do.&lt;/P&gt;&lt;P&gt;if you are trying to get notified for alerts in ambari. you can refer to following doc: &lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.2/bk_ambari-operations/content/creating_or_editing_notifications.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.2/bk_ambari-operations/content/creating_or_editing_notifications.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if you want to customize the alert template : &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Customizing+the+Alert+Template" target="_blank"&gt;https://cwiki.apache.org/confluence/display/AMBARI/Customizing+the+Alert+Template&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if these are not helping you revert with your exact query and what you are trying to achieve.&lt;/P&gt;&lt;P&gt;Please accept this answer if you find it helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 12:44:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Need-the-email-related-fields-for-JSON-object-AlertTarget/m-p/238835#M200646</guid>
      <dc:creator>akhilsnaik</dc:creator>
      <dc:date>2018-12-11T12:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need the email related fields for JSON object AlertTarget. Trying to automate alert-email creation.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Need-the-email-related-fields-for-JSON-object-AlertTarget/m-p/238836#M200647</link>
      <description>&lt;P&gt;I agree with Akhil, we'd need some more information about what you are trying to do. However, his links are a great place to start. Also, it seems like you're trying to use the REST APIs directly. In which case, this link might also be of some help since it gives examples for using the alert groups and targets endpoints:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/alert-dispatching.md" target="_blank"&gt;https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/alert-dispatching.md&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 23:42:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Need-the-email-related-fields-for-JSON-object-AlertTarget/m-p/238836#M200647</guid>
      <dc:creator>jonathanhurley</dc:creator>
      <dc:date>2018-12-11T23:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need the email related fields for JSON object AlertTarget. Trying to automate alert-email creation.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Need-the-email-related-fields-for-JSON-object-AlertTarget/m-p/238837#M200648</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/18735/asnaik.html" nodeid="18735" target="_blank"&gt;@Akhil S Naik&lt;/A&gt; for the documentation. I was looking to complete a post of an alert target to the /api/v1/alert_targets/ API via Python. I was missing the syntax for some fields that I found thanks to @&lt;A href="https://community.hortonworks.com/users/485/jhurley.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Jonathan Hurley&lt;/A&gt; The documentation didn't appear in my search results initially. Now, I have been able to successfully post the alert target with the exception when I try to specify a particular Alert Group rather than all. The documentation provided includes the syntax for all groups not one group.&lt;/P&gt;&lt;P&gt;The image attached contains the Alert Group Info. Could you let me know where the syntax needs to be modified? &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="95423-alert-target-json.png" style="width: 751px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/14032i2CFEB62DDD6E6B85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="95423-alert-target-json.png" alt="95423-alert-target-json.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 22:50:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Need-the-email-related-fields-for-JSON-object-AlertTarget/m-p/238837#M200648</guid>
      <dc:creator>ashen_x_parikh</dc:creator>
      <dc:date>2019-08-17T22:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need the email related fields for JSON object AlertTarget. Trying to automate alert-email creation.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Need-the-email-related-fields-for-JSON-object-AlertTarget/m-p/238838#M200649</link>
      <description>&lt;P&gt;In order to associate an `AlertTarget` with specific groups, you would use the `groups` property along with an array of IDs for the groups you care about:&lt;/P&gt;&lt;PRE&gt;{
  "AlertTarget": {
    "name": "Administrators",
    "description": "The Admins",
    "notification_type": "EMAIL",
    "groups": [1, 17, 23],
    ...
  }
}&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Dec 2018 04:12:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Need-the-email-related-fields-for-JSON-object-AlertTarget/m-p/238838#M200649</guid>
      <dc:creator>jonathanhurley</dc:creator>
      <dc:date>2018-12-14T04:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need the email related fields for JSON object AlertTarget. Trying to automate alert-email creation.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Need-the-email-related-fields-for-JSON-object-AlertTarget/m-p/238839#M200650</link>
      <description>&lt;P&gt;Thanks Jonathan, I appreciate it.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 07:10:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Need-the-email-related-fields-for-JSON-object-AlertTarget/m-p/238839#M200650</guid>
      <dc:creator>ashen_x_parikh</dc:creator>
      <dc:date>2018-12-14T07:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need the email related fields for JSON object AlertTarget. Trying to automate alert-email creation.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Need-the-email-related-fields-for-JSON-object-AlertTarget/m-p/277508#M207585</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do we have something similar for cloudera (custom alerts)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regads&lt;/P&gt;&lt;P&gt;Amjad&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 14:00:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Need-the-email-related-fields-for-JSON-object-AlertTarget/m-p/277508#M207585</guid>
      <dc:creator>M_Seyal</dc:creator>
      <dc:date>2019-09-17T14:00:42Z</dc:date>
    </item>
  </channel>
</rss>

