IntelligenceX
Class

HealthCheckResult

Namespace IntelligenceX.Utils
Assembly IntelligenceX
Modifiers sealed

Represents a health check outcome.

Inheritance

  • Object
  • HealthCheckResult

Constructors

public HealthCheckResult(Boolean ok, String message = null, Exception error = null, Nullable<TimeSpan> duration = null) #

Initializes a new health check result.

Parameters

ok System.Boolean
Whether the check succeeded.
message System.String = null
Optional message.
error System.Exception = null
Optional exception.
duration System.Nullable{System.TimeSpan} = null
Optional duration.

Properties

public Boolean Ok { get; } #

Gets a value indicating whether the check succeeded.

public String Message { get; } #

Gets the optional message.

public Exception Error { get; } #

Gets the optional exception.

public Nullable<TimeSpan> Duration { get; } #

Gets the optional duration.