• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

apache / incubator-eagle / 379
39%

Build:
DEFAULT BRANCH: master
Ran 05 Dec 2016 07:19AM UTC
Jobs 1
Files 1289
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
379

push

jenkins

haoch
[EAGLE-815] Add eagle alert template, severity and category support

Support alert template to generate human readable message

# New Features
* Support to define alert template in PolicyDefinition
* Support to generate alert event (subject&body, instead of using AlertPublishEvent for less changes) based on policy'template and alert event as context
* Dynamically load policy metadata in alert publisher
* Integration VelocityAlertTemplateEngine in alertPublisherBolt with metadata lifecycle
* Support persist alert message in AlertEntity as immutable field.
* Refactor alert mail template using https://github.com/mailgun/transactional-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), CRITICAL/FATAL (dark black)
* Add Alert Subject &Body Template Engine, for example:
    * Sample Event:

          {
              "host": "localhost",
              "timestamp": 1480319108000,
              "metric": "hadoop.cpu.usage",
              "component": "namenode",
              "site": "test2",
              "value": 0.96
          }

    * Sample Subject “RESOURCEMANAGER JMX Metric Alert” is defined by:

           $component.toUpperCase() JMX Metric Alert

    * Sample Body is defined as:

            An alert happened on <strong>$component</strong> (<strong>$host</strong>) of cluster <strong>$site</strong> at <strong>$ALERT_TIME</strong> because <span style="color: red">$metric = $value</span>

* Add VelocityTemplateParser

# TODO
* Integrate velocity parser into policy validator, make sure the template only contains `global variable` and `alert stream schema fields`.
* Add alert definition preview

Author: Hao Chen <hao@apache.org>

Closes #711 from haoch/EAGLE-815.

14736 of 38533 relevant lines covered (38.24%)

125632.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 379.1 05 Dec 2016 07:19AM UTC 0
38.24
Source Files on build 379
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #379
  • 1c81c086 on github
  • Prev Build on master (#378)
  • Next Build on master (#381)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc