Arc.HttpHealthCheckDashboard
1.0.2
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
<PackageReference Include="Arc.HttpHealthCheckDashboard" Version="1.0.2" />
paket add Arc.HttpHealthCheckDashboard --version 1.0.2
#r "nuget: Arc.HttpHealthCheckDashboard, 1.0.2"
// 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
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 | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net6.0
- ArnabDeveloper.HttpHealthCheck (>= 1.0.4)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 6.0.0)
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.
dotnet 6 upgrade