Table of Contents

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

Name string

The degradation level name (e.g., "Minor", "Moderate").

PriorityThreshold int

Operations below this priority are rejected at this level.

ErrorRateThreshold double

Error rate (0.0-1.0) that triggers this level.

CpuThreshold double

CPU usage percentage (0-100) that triggers this level.

MemoryThreshold double

Memory 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

double

ErrorRateThreshold

Error rate (0.0-1.0) that triggers this level.

public double ErrorRateThreshold { get; init; }

Property Value

double

MemoryThreshold

Memory usage percentage (0-100) that triggers this level.

public double MemoryThreshold { get; init; }

Property Value

double

Name

The degradation level name (e.g., "Minor", "Moderate").

public string Name { get; init; }

Property Value

string

PriorityThreshold

Operations below this priority are rejected at this level.

public int PriorityThreshold { get; init; }

Property Value

int