Class DegradationLevelConfig
- Namespace
- Excalibur.Dispatch.Resilience.Polly
- Assembly
- Excalibur.Dispatch.Resilience.Polly.dll
Configuration for a single degradation level.
public record DegradationLevelConfig : IEquatable<DegradationLevelConfig>
- Inheritance
-
DegradationLevelConfig
- Implements
- Inherited Members
- Extension Methods
Constructors
DegradationLevelConfig(string, int, double, double, double)
Configuration for a single degradation level.
public DegradationLevelConfig(string Name, int PriorityThreshold, double ErrorRateThreshold, double CpuThreshold, double MemoryThreshold)
Parameters
NamestringThe degradation level name (e.g., "Minor", "Moderate").
PriorityThresholdintOperations below this priority are rejected at this level.
ErrorRateThresholddoubleError rate (0.0-1.0) that triggers this level.
CpuThresholddoubleCPU usage percentage (0-100) that triggers this level.
MemoryThresholddoubleMemory usage percentage (0-100) that triggers this level.
Properties
CpuThreshold
CPU usage percentage (0-100) that triggers this level.
public double CpuThreshold { get; init; }
Property Value
ErrorRateThreshold
Error rate (0.0-1.0) that triggers this level.
public double ErrorRateThreshold { get; init; }
Property Value
MemoryThreshold
Memory usage percentage (0-100) that triggers this level.
public double MemoryThreshold { get; init; }
Property Value
Name
The degradation level name (e.g., "Minor", "Moderate").
public string Name { get; init; }
Property Value
PriorityThreshold
Operations below this priority are rejected at this level.
public int PriorityThreshold { get; init; }