<PackageReference Include="Polly.Core" Version="8.6.5" />

Polly.CircuitBreaker.Health.HealthMetrics

abstract class HealthMetrics
The health metrics for advanced circuit breaker. All operations here are executed from CircuitStateController<T> under a lock and are thread safe.
namespace Polly.CircuitBreaker.Health { internal abstract class HealthMetrics { protected TimeProvider TimeProvider { get; } protected HealthMetrics(TimeProvider timeProvider); public static HealthMetrics Create(TimeSpan samplingDuration, TimeProvider timeProvider); public abstract void IncrementSuccess(); public abstract void IncrementFailure(); public abstract void Reset(); public abstract HealthInfo GetHealthInfo(); } }