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
HealthStatusA value indicating the health status of the component that was checked.
description
stringA human-readable description of the status of the component that was checked.
duration
TimeSpanA value indicating the health execution duration.
exception
ExceptionAn 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
Duration
Gets the health check execution duration.
public TimeSpan Duration { get; }
Property Value
Exception
Gets an Exception representing the exception that was thrown when checking for status (if any).
public Exception Exception { get; }
Property Value
Status
Gets the health status of the component that was checked.
public HealthStatus Status { get; }