Table of Contents

Interface IErrorMonitorable

Namespace
DotCompute.Abstractions.Health
Assembly
DotCompute.Abstractions.dll

Interface for components that expose error tracking.

public interface IErrorMonitorable

Properties

ErrorRate

Gets the current error rate (errors per operation).

double ErrorRate { get; }

Property Value

double

Methods

GetErrorStatisticsAsync(CancellationToken)

Gets error statistics for the component.

Task<ErrorStatistics> GetErrorStatisticsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Cancellation token.

Returns

Task<ErrorStatistics>

Error statistics.

RecordError(Exception)

Records an error occurrence.

void RecordError(Exception error)

Parameters

error Exception

The error that occurred.