IntelligenceX

API Reference

Class

HealthCheckResult

Namespace IntelligenceX.Utils
Assembly IntelligenceX
Modifiers sealed

Represents a health check outcome.

Inheritance

  • Object
  • HealthCheckResult

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Constructors

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

Initializes a new health check result.

Parameters

ok System.Boolean requiredposition: 0
Whether the check succeeded.
message System.String? = null optionalposition: 1
Optional message.
error System.Exception? = null optionalposition: 2
Optional exception.
duration System.TimeSpan? = null optionalposition: 3
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 TimeSpan? Duration { get; } #

Gets the optional duration.