WorldDomination.SimpleObservability 1.0.0-beta04

This is a prerelease version of WorldDomination.SimpleObservability.
dotnet add package WorldDomination.SimpleObservability --version 1.0.0-beta04
                    
NuGet\Install-Package WorldDomination.SimpleObservability -Version 1.0.0-beta04
                    
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="WorldDomination.SimpleObservability" Version="1.0.0-beta04" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WorldDomination.SimpleObservability" Version="1.0.0-beta04" />
                    
Directory.Packages.props
<PackageReference Include="WorldDomination.SimpleObservability" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WorldDomination.SimpleObservability --version 1.0.0-beta04
                    
#r "nuget: WorldDomination.SimpleObservability, 1.0.0-beta04"
                    
#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.
#:package WorldDomination.SimpleObservability@1.0.0-beta04
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WorldDomination.SimpleObservability&version=1.0.0-beta04&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=WorldDomination.SimpleObservability&version=1.0.0-beta04&prerelease
                    
Install as a Cake Tool

<h1 align="center">Simple: Observability Client : .NET </h1>

<div align="center"> <i>A simple .NET client for your health endpoint</i> </div>

<p align="center">

Summary

A lightweight .NET library that provides a standardized schema for exposing service health information. Use this library to make your services compatible with the Simple Observability monitoring dashboard.

Key Features:

  • 📊 Standard health metadata schema
  • 🚀 Zero-configuration setup
  • 🎯 Simple POCO classes
  • ✅ Compatible with ASP.NET Core Minimal APIs and MVC
  • 🔍 Optional additional metadata support

Installation

dotnet add package WorldDomination.SimpleObservability

Quick Start

Basic Health Endpoint

Add a /healthz endpoint to your ASP.NET Core application:

using WorldDomination.SimpleObservability;

var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();

app.MapGet("/healthz", () =>
{
    var health = new HealthMetadata
    {
        ServiceName = "My API Service",
        Version = "1.0.0",
        Environment = "Production",
        Status = HealthStatus.Healthy
    };
    
    return Results.Json(health);
});

app.Run();

Advanced Example with Additional Metadata

app.MapGet("/healthz", () =>
{
    var health = new HealthMetadata
    {
        ServiceName = "My API Service",
        Version = "1.2.3",
        Environment = "Production",
        Status = HealthStatus.Healthy,
        Timestamp = DateTimeOffset.UtcNow,
        HostName = Environment.MachineName,
        Uptime = TimeSpan.FromHours(24),
        Description = "All systems operational",
        AdditionalMetadata = new Dictionary<string, string>
        {
            ["Database"] = "Connected",
            ["Cache"] = "Redis v7.0",
            ["Region"] = "us-west-2"
        }
    };
    
    return Results.Json(health);
});

Health Status Values

  • HealthStatus.Healthy - Service is operating normally.
  • HealthStatus.Degraded - Service is operational but experiencing issues.
  • HealthStatus.Unhealthy - Service is not operating correctly.

JSON Response Example

{
  "serviceName": "My API Service",
  "version": "1.2.3",
  "environment": "Production",
  "status": "Healthy",
  "timestamp": "2024-01-15T10:30:00Z",
  "hostName": "server-01",
  "uptime": "1.00:00:00",
  "description": "All systems operational",
  "additionalMetadata": {
    "database": "Connected",
    "cache": "Redis v7.0",
    "region": "us-west-2"
  }
}

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

See LICENSE for details.

Product 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 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.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-beta04 341 12/7/2025
1.0.0-beta03 123 12/6/2025
1.0.0-beta02 108 12/6/2025
1.0.0-beta01 186 11/26/2025