[
https://issues.apache.org/jira/browse/AMBARI-8400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14220979#comment-14220979
]
Hudson commented on AMBARI-8400:
--------------------------------
SUCCESS: Integrated in Ambari-trunk-Commit-docker #295 (See
[https://builds.apache.org/job/Ambari-trunk-Commit-docker/295/])
AMBARI-8400 - Alerts: Template Engine for Dispatching (jonathanhurley)
(jhurley:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=650e9d4372d0f9b6a1cec8b64ae8f09b4d565728)
*
ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/EmailDispatcher.java
*
ambari-server/src/main/java/org/apache/ambari/server/notifications/DispatchFactory.java
* ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HDFS/alerts.json
* ambari-server/src/main/resources/stacks/HDP/1.3.2/services/HDFS/alerts.json
*
ambari-server/src/test/java/org/apache/ambari/server/state/services/AlertNoticeDispatchServiceTest.java
*
ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java
*
ambari-server/src/main/java/org/apache/ambari/server/api/query/render/AlertSummaryGroupedRenderer.java
* ambari-server/src/main/java/org/apache/ambari/server/AmbariService.java
* ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/HDFS/alerts.json
*
ambari-server/src/main/java/org/apache/ambari/server/controller/ControllerModule.java
* ambari-server/src/main/resources/alert-templates.xml
*
ambari-server/src/main/java/org/apache/ambari/server/state/services/AlertNoticeDispatchService.java
> Alerts: Template Engine for Dispatching
> ---------------------------------------
>
> Key: AMBARI-8400
> URL: https://issues.apache.org/jira/browse/AMBARI-8400
> Project: Ambari
> Issue Type: Task
> Components: alerts, ambari-server
> Affects Versions: 2.0.0
> Reporter: Jonathan Hurley
> Assignee: Jonathan Hurley
> Fix For: 2.0.0
>
> Attachments: AMBARI-8400.patch
>
>
> Ambari's various dispatchers (such as Email and SNMP) can benefit from having
> a mechanism where a template can be defined for the construction of
> notification data. This decouples the content that Ambari is sending from the
> logic to compute the aggregate alerts.
> Apache Velocity is a good choice for this requirement as it includes a
> maturing template language, VTL.
> A single XML file that ships with Ambari will contain the default templates
> for known alert target types. There will be an option to override the use of
> this file with a user-specified location via ambari.properties. In the event
> that a user-specific XML file cannot be parsed, appropriate exceptions will
> be thrown, but the {{AlertNoticeDispatchService}} will attempt to gracefully
> fallback on other content rendering options (such as the internal XML file).
> The following data should be exposed to VTL:
> - a list of all alert changes
> -- alert name, state, date, label
> -- a list for each state change
> -- lists for all alerts, broke down by service and state
> - a list of all services with an alert
> - a list of all hosts with an alert
> - total counts of changes separated
> -- one count for each alert state
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)