AdamBien / lightfish

Payara / GlassFish Monitoring Utility
121 stars 41 forks source link

Escalation Notifications #9

Closed rveldpau closed 11 years ago

rveldpau commented 11 years ago

In these commits I've added escalation messages and escalation notifiers.

Escalation Messages

The messages provide a nice message to the user informing them why the escalation occurred. These messages are configured while adding the scripts, but they are optional. Below is a screen showing the new add script screen.

Script-Configuration

There are two types of messages, basic and rich. This is to enable different use cases for the messages. For example, the Growl message in the HTML5 view uses the basic message, whereas an e-mail you might want something prettier. Rich messages are processed by a MarkDown processor. Both Rich and Basic messages support variable replacement.

An example of the basic message being used in the HTML5 view is below:

EscalationMessage

Escalation Notifiers

Notifiers enable other methods of transmission for informing users when an escalation has occurred. Currently the only transmitter, other than the COMET transmitter for LightView, is E-Mail, but more can easily be added. Below you can see a screenshot of an e-mail that made it my inbox.

Escalation-Email

AdamBien commented 11 years ago

Big thanks!

staabm commented 11 years ago

@rveldpau you are doing a great job with the latest PRs!