Exemplo n.º 1
0
        public static IHealthChecksBuilder AddOmbiHealthChecks(this IHealthChecksBuilder builder)
        {
            builder.AddCheck <PlexHealthCheck>("Plex", tags: new string[] { "MediaServer" });
            builder.AddCheck <EmbyHealthCheck>("Emby", tags: new string[] { "MediaServer" });
            builder.AddCheck <JellyfinHealthCheck>("Jellyfin", tags: new string[] { "MediaServer" });
            builder.AddCheck <LidarrHealthCheck>("Lidarr", tags: new string[] { "DVR" });
            builder.AddCheck <SonarrHealthCheck>("Sonarr", tags: new string[] { "DVR" });
            builder.AddCheck <RadarrHealthCheck>("Radarr", tags: new string[] { "DVR" });
            builder.AddCheck <CouchPotatoHealthCheck>("CouchPotato", tags: new string[] { "DVR" });
            builder.AddCheck <SickrageHealthCheck>("SickRage", tags: new string[] { "DVR" });
            builder.AddOmbiPingHealthCheck(options =>
            {
                options.AddHost("www.google.co.uk", 5000, HealthStatus.Unhealthy);
                options.AddHost("www.google.com", 3000, HealthStatus.Degraded);
            }, "External Ping", tags: new string[] { "System" });

            return(builder);
        }