Table of Contents

Struct HealthReportEntry

Namespace
Acuit.Pinpoint.HealthChecks
Assembly
Acuit.Pinpoint.HealthChecks.dll

Represents an entry in a HealthReport. Corresponds to the result of a single IHealthCheck.

public readonly struct HealthReportEntry
Inherited Members

Constructors

HealthReportEntry(HealthStatus, string, TimeSpan, Exception)

Creates a new HealthReportEntry with the specified values for status, exception, and description.

public HealthReportEntry(HealthStatus status, string description, TimeSpan duration, Exception exception)

Parameters

status HealthStatus

A value indicating the health status of the component that was checked.

description string

A human-readable description of the status of the component that was checked.

duration TimeSpan

A value indicating the health execution duration.

exception Exception

An Exception representing the exception that was thrown when checking for status (if any).

Properties

Description

Gets a human-readable description of the status of the component that was checked.

public string Description { get; }

Property Value

string

Duration

Gets the health check execution duration.

public TimeSpan Duration { get; }

Property Value

TimeSpan

Exception

Gets an Exception representing the exception that was thrown when checking for status (if any).

public Exception Exception { get; }

Property Value

Exception

Status

Gets the health status of the component that was checked.

public HealthStatus Status { get; }

Property Value

HealthStatus