You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Notification Plugin should provide interface which accepts the Eagle Alert Entity and return Status of the same.

Today in Eagle there is no Notification Plugin Framework where users can implement the Notification Plugin Interface and upload their own library. This Plugin allows user to implement their own and also provides default implementation 

  •  Sending Email Alert
  •  Persisting Message to Kafka 
  •  Writing Entities to Eagle Service

Notification Interface:

Notification Interface
/**
* Notification Plugin Interface 
*/
public interface NotificationPlugin {
    /**
     * Post a notification for the given alert entity
     * @param alertEntity
     */
    public void onAlert( AlertEntity alertEntity ) throws NotificationException;
    /**
    *  Returns Status of Notification 
    */
	public NotificationStatus  getStatus();
}
  • No labels