Skip to content

EduardTruuvaart/Monitorify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What is Monitorify?


Monitorify is a simple url listener that triggers notification once endpoint goes down. Monitorify.Publisher.Email uses email client to send notifications.

How do I get started?


  1. Install NuGet

  2. Install monitorify email publisher

    PM> Install-Package Monitorify.Publisher.Email

  3. Add bootstrapping code:

         IConfiguration configuration = new Configuration
         {
             PingDelay = TimeSpan.FromSeconds(1),
             EndPoints = new List<EndPoint>
             {
                 new EndPoint {
                     Name = "Google",
                     Url = "http://www.google.com"
                 }
             }
         };
         EmailNotificationPublisherConfig emailConfig = new EmailNotificationPublisherConfig("smtp-mail.outlook.com", 587, false, "smtp-username",
             "smtp-password", "[email protected]", "[email protected]");
    
         IMonitorifyNotifier notifier = new MonitorifyNotifier();
         notifier.AddEmailPublisher(emailConfig);
         notifier.ListenAndNotify(configuration).Wait();
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages