Class CircuitBreakerSelection
Namespace: Cephalon.Abstractions.AppModel
Assembly: Cephalon.Abstractions.dll
Describes the circuit-breaker inputs resolved for a Cephalon app.
public sealed class CircuitBreakerSelectionInheritance
Section titled “Inheritance”object ← CircuitBreakerSelection
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”CircuitBreakerSelection(bool?, decimal?, int?, int?, int?)
Section titled “ CircuitBreakerSelection(bool?, decimal?, int?, int?, int?)”Initializes a new instance of the
[JsonConstructor]public CircuitBreakerSelection(bool? enabled = null, decimal? failureRatio = null, int? minimumThroughput = null, int? samplingDurationSeconds = null, int? breakDurationSeconds = null)Parameters
Section titled “Parameters”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.
Properties
Section titled “Properties”BreakDurationSeconds
Section titled “ BreakDurationSeconds”Gets the break duration in seconds requested for the open state.
public int? BreakDurationSeconds { get; }Property Value
Section titled “Property Value”int?
Gets an empty circuit-breaker-selection instance.
public static CircuitBreakerSelection Empty { get; }Property Value
Section titled “Property Value”Enabled
Section titled “ Enabled”Gets a value indicating whether circuit-breaker support was explicitly enabled.
public bool? Enabled { get; }Property Value
Section titled “Property Value”bool?
FailureRatio
Section titled “ FailureRatio”Gets the failure ratio threshold requested for opening the breaker.
public decimal? FailureRatio { get; }Property Value
Section titled “Property Value”HasValues
Section titled “ HasValues”Gets a value indicating whether any circuit-breaker-selection inputs were explicitly supplied.
public bool HasValues { get; }Property Value
Section titled “Property Value”MinimumThroughput
Section titled “ MinimumThroughput”Gets the minimum throughput required before the breaker evaluates failures.
public int? MinimumThroughput { get; }Property Value
Section titled “Property Value”int?
SamplingDurationSeconds
Section titled “ SamplingDurationSeconds”Gets the sampling duration in seconds used by the breaker.
public int? SamplingDurationSeconds { get; }Property Value
Section titled “Property Value”int?