Table of Contents

Class DegradationMetrics

Namespace
Excalibur.Dispatch.Resilience.Polly
Assembly
Excalibur.Dispatch.Resilience.Polly.dll

Degradation metrics for monitoring.

public sealed class DegradationMetrics
Inheritance
DegradationMetrics
Inherited Members
Extension Methods

Properties

CurrentLevel

Gets the current degradation level.

public DegradationLevel CurrentLevel { get; init; }

Property Value

DegradationLevel

The active DegradationLevel applied to the pipeline.

HealthMetrics

Gets the current health metrics.

public HealthMetrics HealthMetrics { get; init; }

Property Value

HealthMetrics

The underlying system health metrics associated with the degradation state.

LastChangeReason

Gets the reason for the last level change.

public string LastChangeReason { get; init; }

Property Value

string

A human-readable explanation describing why the level changed.

LastLevelChange

Gets the timestamp of the last level change.

public DateTimeOffset LastLevelChange { get; init; }

Property Value

DateTimeOffset

The UTC timestamp when the level most recently changed.

OperationStatistics

Gets the operation statistics by operation name.

public IReadOnlyDictionary<string, OperationStatistics> OperationStatistics { get; init; }

Property Value

IReadOnlyDictionary<string, OperationStatistics>

A dictionary mapping each operation name to its aggregated statistics.

SuccessRate

Gets the overall success rate (0.0-1.0) across all operations.

public double SuccessRate { get; init; }

Property Value

double

The proportion of successful operations represented as a value between 0.0 and 1.0.

TotalFallbacks

Gets the total number of fallback executions across all operations.

public long TotalFallbacks { get; init; }

Property Value

long

The total number of times a fallback operation executed instead of the primary path.

TotalOperations

Gets the total number of operations across all operation types.

public long TotalOperations { get; init; }

Property Value

long

The cumulative number of primary or fallback executions performed.