Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D8391200BCE for ; Fri, 2 Dec 2016 12:04:17 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D6D2C160B24; Fri, 2 Dec 2016 11:04:17 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 05002160B16 for ; Fri, 2 Dec 2016 12:04:16 +0100 (CET) Received: (qmail 37400 invoked by uid 500); 2 Dec 2016 11:04:16 -0000 Mailing-List: contact issues-help@eagle.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@eagle.incubator.apache.org Delivered-To: mailing list issues@eagle.incubator.apache.org Received: (qmail 37391 invoked by uid 99); 2 Dec 2016 11:04:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2016 11:04:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id AE6241803A3 for ; Fri, 2 Dec 2016 11:04:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.769 X-Spam-Level: X-Spam-Status: No, score=-6.769 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, KAM_LOTSOFHASH=0.25, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id iH8N1aAURL5Y for ; Fri, 2 Dec 2016 11:04:14 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id CA9845F1F0 for ; Fri, 2 Dec 2016 11:04:13 +0000 (UTC) Received: (qmail 32064 invoked by uid 99); 2 Dec 2016 11:02:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2016 11:02:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 586C72C0086 for ; Fri, 2 Dec 2016 11:02:58 +0000 (UTC) Date: Fri, 2 Dec 2016 11:02:58 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@eagle.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (EAGLE-815) Support alert template to generate human readable alert MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 02 Dec 2016 11:04:18 -0000 [ https://issues.apache.org/jira/browse/EAGLE-815?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15714= 810#comment-15714810 ]=20 ASF GitHub Bot commented on EAGLE-815: -------------------------------------- GitHub user haoch opened a pull request: https://github.com/apache/incubator-eagle/pull/711 [EAGLE-815] Add eagle alert template, severity and category support Support alert template to generate human readable message=20 =20 * Support to define alert template in PolicyDefinition * Support to generate alert event (subject&body, instead of using Alert= PublishEvent for less changes) based on policy'template and alert event as = context * Dynamically load policy metadata in alert publisher * Integration VelocityAlertTemplateEngine in alertPublisherBolt with me= tadata lifecycle * Support persist alert message in AlertEntity as immutable field. * Refactor alert mail template using https://github.com/mailgun/transac= tional-email-templates * Refactor Alert Template to become simple and human-readable. * Add Alert Category * Add Alert Severity (notification template color will change according= to different severiy): UNKNOWN (blue), OK(green), WARNING (orange), CRITIC= AL/FATAL (dark black) * Add Alert Subject &Body Template Engine, for example:=20 * Sample Subject =E2=80=9CRESOURCEMANAGER JMX Metric Alert=E2=80=9D= is defined by =E2=80=9C$component.toUpperCase() JMX Metric Alert=E2=80=9D * Sample Body is defined as =E2=80=9CA alert happened on $c= omponent ($host) of cluster $site at $ALERT_TIME because $metri= c =3D $value=E2=80=9D You can merge this pull request into a Git repository by running: $ git pull https://github.com/haoch/incubator-eagle EAGLE-815 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-eagle/pull/711.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #711 =20 ---- commit 887b488b7a8a2dae5478a83df83aa51b8be70d5f Author: Hao Chen Date: 2016-11-30T07:41:46Z Implement AlertTemplateEngine framework and VelocityAlertTemplateEngine commit 008a4b3611579c59ab517020b9aac5f88d528f17 Author: Hao Chen Date: 2016-11-30T09:35:30Z Add light skill alert template commit d0a808483312508f23b9facd7cafd815a09ea612 Author: Hao Chen Date: 2016-11-30T10:03:26Z Merge branch 'master' of https://github.com/apache/incubator-eagle into= EAGLE-815 commit 58c735da4620ec6fa313d7938d21e3a8077d16d2 Author: Hao Chen Date: 2016-11-30T10:49:54Z Refactor VelocityAlertTemplateEngine to render from AlertStreamEvent to= AlertPublishEvent commit 274ccc691b990c1da9d10dc81cfbf89ddf814b0a Author: Hao Chen Date: 2016-11-30T12:46:56Z Integrate AlertTemplateEngine with AlertPublisherBolt lifecycle commit 0ca77f12096e7f62bf23799c543a520a241d4d6a Author: Hao Chen Date: 2016-11-30T12:50:23Z Merge branch 'EAGLE-815' of https://github.com/haoch/incubator-eagle in= to EAGLE-815 commit e74c3303f7b1ecff13a3fd88bfc7d336405cd069 Author: Hao Chen Date: 2016-12-01T01:46:32Z Refactor AlertStreamFilter and AlertEntityStore commit 7adac5839af1b9139e5775a4006c2cd505f0b229 Author: Hao Chen Date: 2016-12-01T02:14:09Z Inject alert subject and body in ALERT_DEFAULT.vm template commit 4f8c2c106c0d7a2e0133fb012d5fd202d158332b Author: Hao Chen Date: 2016-12-01T03:12:39Z Add ALERT_LIGHT_TEMPLATE as default alert notification template commit 005926202db25400b9b0ae652914f930b042a94e Author: Hao Chen Date: 2016-12-01T03:44:52Z Inject siteId in alert template commit 0d272896174f93f2547d619655ec9c806bb83f7a Author: Hao Chen Date: 2016-12-01T10:34:04Z Fix application config descriptor of HADOOP_JMX_METRIC_APP commit 3bd6a1de31eeeb20a9bafb7772052d605d597110 Author: Hao Chen Date: 2016-12-01T12:37:32Z Fix KafkaStreamProvider bug for blank config value included by EAGLE-80= 6 commit 642605f03556d4a94a9ae3584108293bbed67662 Author: Hao Chen Date: 2016-12-01T13:18:15Z Fix policy definition register in VelocityAlertTemplateEngine commit d27b06988ae86ad5803f2dc2781f32e3e98c4ee8 Author: Hao Chen Date: 2016-12-02T02:09:42Z Fix default alert template commit 65c067fbe607189e5f5d61d3acf0da322dd18f91 Author: Hao Chen Date: 2016-12-02T08:15:21Z Refactor mail alert template to adapt to windows commit 35c02ec66e4284378c5e0f87707f72f64523e6fa Author: Hao Chen Date: 2016-12-02T08:31:09Z Refactor Severity color commit c461c4b691d1a9872afc1d10494719ba7247c1be Author: Hao Chen Date: 2016-12-02T08:37:48Z Add category and severity in policy and alert persistence plugin ---- > Support alert template to generate human readable alert=20 > -------------------------------------------------------- > > Key: EAGLE-815 > URL: https://issues.apache.org/jira/browse/EAGLE-815 > Project: Eagle > Issue Type: New Feature > Affects Versions: v0.5.0 > Reporter: Hao Chen > Assignee: Hao Chen > Fix For: v0.5.0 > > > Support alert template to generate human readable message=20 > * [done] Support to define alert template in PolicyDefinition > * [done] Support to generate alert event (subject&body, instead of using = AlertPublishEvent for less changes) based on policy'template and alert even= t as context > * [done] Dynamically load policy metadata in alert publisher > * [done] Integration VelocityAlertTemplateEngine in alertPublisherBolt wi= th metadata lifecycle > * [done] Support persist alert message in AlertEntity as immutable field. > * [done] Refactor alert mail template using https://github.com/mailgun/tr= ansactional-email-templates > * Refactor Alert Template to become simple and human-readable. > * Add Alert Category > * Add Alert Severity (notification template color will change according t= o different severiy): UNKNOWN (blue), OK(green), WARNING (orange), CRITICAL= /FATAL (dark black) > * Add Alert Subject &Body Template Engine, for example:=20 > * Sample Subject =E2=80=9CRESOURCEMANAGER JMX Metric Alert=E2=80=9D i= s defined by =E2=80=9C$component.toUpperCase() JMX Metric Alert=E2=80=9D > * Sample Body is defined as =E2=80=9CA alert happened on $com= ponent ($host) of cluster $site = at $ALERT_TIME because $metric = =3D $value=E2=80=9D -- This message was sent by Atlassian JIRA (v6.3.4#6332)