Read-only mirror of https://github.com/swiss/fch-monitoring — Bundeskanzlei. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
michael-jehle 8271a356b0
fix: exception details removed from published system status
* fix: exception details removed from published system status

* chore: update THIRD_PARTY_LICENSES.md

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-07-31 11:49:48 +02:00
.github feat: initial migration to GitHub 2026-02-27 17:05:42 +01:00
src fix: exception details removed from published system status 2026-07-31 11:49:48 +02:00
.editorconfig feat: initial migration to GitHub 2026-02-27 17:05:42 +01:00
.gitignore feat: initial migration to GitHub 2026-02-27 17:05:42 +01:00
CHANGELOG.md fix: exception details removed from published system status 2026-07-31 11:49:48 +02:00
CONTRIBUTING.md feat: content of CONTRIBUTING.md added 2026-03-03 11:56:24 +01:00
LICENSE feat: initial migration to GitHub 2026-02-27 17:05:42 +01:00
README.md fix: code quality improvements (#10) 2026-03-12 13:30:01 +01:00
SECURITY.md feat: initial migration to GitHub 2026-02-27 17:05:42 +01:00
THIRD_PARTY_LICENSES.md fix: exception details removed from published system status 2026-07-31 11:49:48 +02:00

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.x and git 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