Swiss.FCh.Monitoring
2.5.3
Prefix Reserved
dotnet add package Swiss.FCh.Monitoring --version 2.5.3
NuGet\Install-Package Swiss.FCh.Monitoring -Version 2.5.3
<PackageReference Include="Swiss.FCh.Monitoring" Version="2.5.3" />
<PackageVersion Include="Swiss.FCh.Monitoring" Version="2.5.3" />
<PackageReference Include="Swiss.FCh.Monitoring" />
paket add Swiss.FCh.Monitoring --version 2.5.3
#r "nuget: Swiss.FCh.Monitoring, 2.5.3"
#:package Swiss.FCh.Monitoring@2.5.3
#addin nuget:?package=Swiss.FCh.Monitoring&version=2.5.3
#tool nuget:?package=Swiss.FCh.Monitoring&version=2.5.3
Introduction
This library contains health checks that can be used to integrate with the OCC (operation control center) of the Federal Office of Information Technology, Systems and Telecommunication FOITT. Additionally, it offers automatic mapping to an HTTP endpoint where the current state of the health checks can be queried.
The latest NuGet package is published at https://www.nuget.org/packages/Swiss.FCh.Monitoring.
Usage
The health checks can be configured in your Program.cs.
using Swiss.FCh.Monitoring.Extensions;
[...]
var builder = WebApplication.CreateBuilder(args);
builder.Services
.AddHealthChecks()
.AddDatabase<YourDataContext>()
.AddUrl("my-health-name", "https://url-to-check.test");
[...]
var app = builder.Build();
app.MapFChHealthChecks(); //creates '/api/systemstatus' endpoint (route can be overriden)
Contribution
See: https://github.com/swiss/fch-monitoring/blob/main/CONTRIBUTING.md
Security
See: https://github.com/swiss/fch-monitoring/blob/main/SECURITY.md
Development Workflow
To publish a new version of the NuGet package, proceed as follows.
- apply and push your changes
- define and describe the new version in
CHANGELOG.md - push the corresponding label with
git tag vx.x.xandgit push origin v.x.x.x - go to GitHub → Actions → 'Build and Publish to NuGet.org' and trigger a run while specifying the correct GIT label
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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 is compatible. 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. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.EntityFrameworkCore (>= 10.0.1)
-
net8.0
- Microsoft.EntityFrameworkCore (>= 8.0.22)
-
net9.0
- Microsoft.EntityFrameworkCore (>= 9.0.11)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.