Arc.HttpHealthCheckDashboard 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Arc.HttpHealthCheckDashboard --version 1.0.2
NuGet\Install-Package Arc.HttpHealthCheckDashboard -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Arc.HttpHealthCheckDashboard" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Arc.HttpHealthCheckDashboard --version 1.0.2
#r "nuget: Arc.HttpHealthCheckDashboard, 1.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Arc.HttpHealthCheckDashboard as a Cake Addin
#addin nuget:?package=Arc.HttpHealthCheckDashboard&version=1.0.2

// Install Arc.HttpHealthCheckDashboard as a Cake Tool
#tool nuget:?package=Arc.HttpHealthCheckDashboard&version=1.0.2

Http health check dashboard

CI CD Nuget

This is a library for http health check dashboard. It has been hosted in NuGet. Use below command to install this in your .NET application.

dotnet add package Arc.HttpHealthCheckDashboard

Create separate classes for each separate http urls to be checked. Create your class which inherits BaseHealthCheck and it should work with default naming convention. The default naming convention is [ClassName]HealthCheck.

public class [ClassName]HealthCheck : BaseHealthCheck
{
    public [ClassName]HealthCheck(IEnumerable<ApiDetail> urlDetails, ICommonHealthCheck commonHealthCheck)
        : base(urlDetails, commonHealthCheck)
    {
    }
}

To use a different naming convention override the GetMatch() method. In below example it is using a different naming convention which is [ClassName]HC.

public class GmailHC : BaseHealthCheck
{
    public GmailHC(IEnumerable<ApiDetail> urlDetails, ICommonHealthCheck commonHealthCheck)
        : base(urlDetails, commonHealthCheck)
    {
    }

    protected override Predicate<ApiDetail> GetMatch()
    {
        int indexOfHealthCheck = GetType().Name.IndexOf("HC");
        string apiNameToTest = GetType().Name.Substring(0, indexOfHealthCheck);
        return new Predicate<ApiDetail>(u => u.Name == apiNameToTest && u.IsEnable);
    }
}

There is a dashboard app which uses the library to check health of some http endpoints. This is to show how you can use this library in your app.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Arc.HttpHealthCheckDashboard:

Package Downloads
Arc.HttpHealthCheckDashboard.DI

HTTP health check dashboard DI for ASP.NET

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.8 601 5/4/2022
1.0.7 573 4/1/2022
1.0.6 525 3/28/2022
1.0.5 405 3/28/2022
1.0.4 386 11/28/2021
1.0.3 4,713 11/24/2021
1.0.2 303 11/22/2021
1.0.1 469 6/20/2021
1.0.0 505 6/10/2021

dotnet 6 upgrade