Table of Contents

Struct ResilienceEvent

Namespace
Polly.Telemetry
Assembly
Polly.Core.dll

Represents a resilience event that has been reported.

public readonly struct ResilienceEvent
Inherited Members

Remarks

Always use the constructor when creating this struct, otherwise we do not guarantee binary compatibility.

Constructors

ResilienceEvent(ResilienceEventSeverity, string)

Initializes a new instance of the ResilienceEvent struct.

public ResilienceEvent(ResilienceEventSeverity severity, string eventName)

Parameters

severity ResilienceEventSeverity

The severity of the event.

eventName string

The event name.

Properties

EventName

Gets the event name.

public string EventName { get; }

Property Value

string

Severity

Gets the severity of the event.

public ResilienceEventSeverity Severity { get; }

Property Value

ResilienceEventSeverity

Methods

ToString()

Returns an EventName.

public override string ToString()

Returns

string

An event name.