Class RouteHealthCheck

Assembly: redb.Route.dll

Health check that reports per-route status and endpoint health.
Aggregates route lifecycle state and endpoint statistics into an overall health result.

Unhealthy: an Errored route, or a route whose source endpoint is Critical or Failed.
Degraded: a stopped or suspended route, a source endpoint with a Warning, or an endpoint the routes send to
that is Critical or Failed (a broker that blocks it, a high error rate); those are listed under
endpoints by masked URI, at most . URIs in the result never carry secrets.

public sealed class RouteHealthCheck : IHealthCheck

Inheritance

Object→RouteHealthCheck

Implements

Methods

CheckHealthAsync(HealthCheckContext, CancellationToken)

Runs the health check, returning the status of the component being checked.

public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)

Constructors

RouteHealthCheck(IRouteContext)

Creates a route context health check.