Skip to content

Class CircuitBreakerSelection

Namespace: Cephalon.Abstractions.AppModel
Assembly: Cephalon.Abstractions.dll

Describes the circuit-breaker inputs resolved for a Cephalon app.

public sealed class CircuitBreakerSelection

objectCircuitBreakerSelection

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

CircuitBreakerSelection(bool?, decimal?, int?, int?, int?)

Section titled “ CircuitBreakerSelection(bool?, decimal?, int?, int?, int?)”

Initializes a new instance of the class.

[JsonConstructor]
public CircuitBreakerSelection(bool? enabled = null, decimal? failureRatio = null, int? minimumThroughput = null, int? samplingDurationSeconds = null, int? breakDurationSeconds = null)

enabled bool?

Whether circuit-breaker support was explicitly enabled.

failureRatio decimal?

The failure ratio threshold requested for opening the breaker.

minimumThroughput int?

The minimum throughput required before the breaker evaluates failures.

samplingDurationSeconds int?

The sampling duration in seconds used by the breaker.

breakDurationSeconds int?

The break duration in seconds requested for the open state.

Gets the break duration in seconds requested for the open state.

public int? BreakDurationSeconds { get; }

int?

Gets an empty circuit-breaker-selection instance.

public static CircuitBreakerSelection Empty { get; }

CircuitBreakerSelection

Gets a value indicating whether circuit-breaker support was explicitly enabled.

public bool? Enabled { get; }

bool?

Gets the failure ratio threshold requested for opening the breaker.

public decimal? FailureRatio { get; }

decimal?

Gets a value indicating whether any circuit-breaker-selection inputs were explicitly supplied.

public bool HasValues { get; }

bool

Gets the minimum throughput required before the breaker evaluates failures.

public int? MinimumThroughput { get; }

int?

Gets the sampling duration in seconds used by the breaker.

public int? SamplingDurationSeconds { get; }

int?