JAlarms plugin for Grails
Dependency :
compile ":jalarms:0.3"
Summary
Description
Description
Send application notifications using a wide range of protocols via JAlarms.Usage
This plugin adds a bean alarmer of typecom.solab.alarms.AlarmSender to the application's ApplicationContext. Alarm channels can be configured as any other beans would, inside the src/spring/resources.groovy file.It will also inject the following dynamic methods to controllers and services by default:
- sendAlarm(String msg) - sends an alarm to all configured channels
- sendAlarm(String msg, String source) - sends an alarm to all configured channels that have
sourceconfigured
Configuration
Dynamic method injection
Dynamic methods will be added to controllers and services by default. You can change this setting by adding a configuration flag in theConfig.groovy file.grails.jalarms.injectInto = ["Controller", "Service", "Routes"]