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
Methods
GetErrorStatisticsAsync(CancellationToken)
Gets error statistics for the component.
Task<ErrorStatistics> GetErrorStatisticsAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ErrorStatistics>
Error statistics.
RecordError(Exception)
Records an error occurrence.
void RecordError(Exception error)
Parameters
errorExceptionThe error that occurred.