From fa8f878ef97714f682463da1b3e6729934c3d277 Mon Sep 17 00:00:00 2001 From: Hunter Long Date: Fri, 1 May 2020 05:38:52 -0700 Subject: [PATCH] Updated Notifier Events (markdown) --- Notifier-Events.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Notifier-Events.md b/Notifier-Events.md index ea27c3a..8049cb7 100644 --- a/Notifier-Events.md +++ b/Notifier-Events.md @@ -4,14 +4,12 @@ Events are handled by added interfaces for the elements you want to monitor. ```go // Notifier interface is required to create a new Notifier type Notifier interface { - // Run will trigger inside of the notifier when enabled - Run() error - // OnSave is triggered when the notifier is saved - OnSave() error - // Test will run a function inside the notifier to Test if it works - Test() error - // Select returns the *Notification for a notifier - Select() *Notification + // OnSuccess is triggered when a service is successful + OnSuccess(*services.Service) error + // OnFailure is triggered when a service is failing + OnFailure(*services.Service, *failures.Failure) error + // OnTest is triggered for testing + OnTest() (string, error) } ```