ข้ามไปยังเนื้อหา

Class RuntimeFailureInfo

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Engine.Runtime
Assembly: Cephalon.Engine.dll

Describes a runtime lifecycle failure in a way that can be surfaced through diagnostics, status endpoints, and operator tooling.

public sealed record RuntimeFailureInfo : IEquatable<RuntimeFailureInfo>

objectRuntimeFailureInfo

IEquatable<RuntimeFailureInfo>

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

RuntimeFailureInfo(string, string?, string?, RuntimeStatus, string, string, DateTimeOffset, bool, DateTimeOffset?, StartupFailureBehavior, StopFailureBehavior)

Section titled “ RuntimeFailureInfo(string, string?, string?, RuntimeStatus, string, string, DateTimeOffset, bool, DateTimeOffset?, StartupFailureBehavior, StopFailureBehavior)”

Describes a runtime lifecycle failure in a way that can be surfaced through diagnostics, status endpoints, and operator tooling.

public RuntimeFailureInfo(string Phase, string? ModuleId, string? ModuleVersion, RuntimeStatus StatusBeforeFailure, string ExceptionType, string Message, DateTimeOffset OccurredAtUtc, bool CanRestart, DateTimeOffset? RestartAvailableAtUtc, StartupFailureBehavior StartupFailureBehavior, StopFailureBehavior StopFailureBehavior)

Phase string

The lifecycle phase that failed, such as initialize, start, or stop.

ModuleId string?

The module identifier that triggered the failure when available.

ModuleVersion string?

The module version that was active when the failure occurred, if known.

StatusBeforeFailure RuntimeStatus

The runtime status immediately before the failure was captured.

ExceptionType string

The fully qualified exception type that caused the failure.

Message string

The failure message surfaced to operators.

OccurredAtUtc DateTimeOffset

The UTC timestamp when the failure was captured.

CanRestart bool

Whether the current policy allows a manual restart after this failure.

RestartAvailableAtUtc DateTimeOffset?

The UTC timestamp when a manual restart exits its configured backoff window, if one applies.

StartupFailureBehavior StartupFailureBehavior

The startup failure behavior in effect when the failure occurred.

StopFailureBehavior StopFailureBehavior

The stop failure behavior in effect when the failure occurred.

Whether the current policy allows a manual restart after this failure.

public bool CanRestart { get; init; }

bool

The fully qualified exception type that caused the failure.

public string ExceptionType { get; init; }

string

The failure message surfaced to operators.

public string Message { get; init; }

string

The module identifier that triggered the failure when available.

public string? ModuleId { get; init; }

string?

The module version that was active when the failure occurred, if known.

public string? ModuleVersion { get; init; }

string?

The UTC timestamp when the failure was captured.

public DateTimeOffset OccurredAtUtc { get; init; }

DateTimeOffset

The lifecycle phase that failed, such as initialize, start, or stop.

public string Phase { get; init; }

string

The UTC timestamp when a manual restart exits its configured backoff window, if one applies.

public DateTimeOffset? RestartAvailableAtUtc { get; init; }

DateTimeOffset?

The startup failure behavior in effect when the failure occurred.

public StartupFailureBehavior StartupFailureBehavior { get; init; }

StartupFailureBehavior

The runtime status immediately before the failure was captured.

public RuntimeStatus StatusBeforeFailure { get; init; }

RuntimeStatus

The stop failure behavior in effect when the failure occurred.

public StopFailureBehavior StopFailureBehavior { get; init; }

StopFailureBehavior