Table of Contents

Class FailureScenarioRunState

Namespace
ReferenceApplication.Web.Governance.FailureScenarios
Assembly
ReferenceApplication.Web.dll

The state of a failure-scenario run.

public sealed record FailureScenarioRunState : IEquatable<FailureScenarioRunState>
Inheritance
FailureScenarioRunState
Implements
Inherited Members

Constructors

FailureScenarioRunState(string, string, string, string, DateTimeOffset, DateTimeOffset, FailureScenarioRequest?, string?, DateTimeOffset?, DateTimeOffset?, int?, string?, string?, IReadOnlyList<FailureScenarioFault>, bool, DateTimeOffset?)

The state of a failure-scenario run.

public FailureScenarioRunState(string RunId, string ScenarioId, string ActorId, string Status, DateTimeOffset ArmedUtc, DateTimeOffset ExpiresUtc, FailureScenarioRequest? Request, string? CorrelationId, DateTimeOffset? StartedUtc, DateTimeOffset? CompletedUtc, int? StatusCode, string? ExceptionType, string? ExceptionReasonCode, IReadOnlyList<FailureScenarioFault> Faults, bool DeliveryFaultActive, DateTimeOffset? DeliveryFaultClearedUtc)

Parameters

RunId string

The run identifier.

ScenarioId string

The scenario the run belongs to.

ActorId string

The governance actor who armed the run.

Status string

One of FailureScenarioRunStatuses.

ArmedUtc DateTimeOffset

When the run was armed.

ExpiresUtc DateTimeOffset

When an unused run expires.

Request FailureScenarioRequest

The request to send, while the run is armed.

CorrelationId string

The governance correlation identifier of the run's request.

StartedUtc DateTimeOffset?

When the run's request began.

CompletedUtc DateTimeOffset?

When the run's request ended.

StatusCode int?

The response status code.

ExceptionType string

The type of the exception that ended the request, when one did.

ExceptionReasonCode string

The reason code that exception carried.

Faults IReadOnlyList<FailureScenarioFault>

The faults the seams injected, in order.

DeliveryFaultActive bool

Whether delivery of the request's audit completion still fails.

DeliveryFaultClearedUtc DateTimeOffset?

When the delivery fault was cleared.

Properties

ActorId

The governance actor who armed the run.

public string ActorId { get; init; }

Property Value

string

ArmedUtc

When the run was armed.

public DateTimeOffset ArmedUtc { get; init; }

Property Value

DateTimeOffset

CompletedUtc

When the run's request ended.

public DateTimeOffset? CompletedUtc { get; init; }

Property Value

DateTimeOffset?

CorrelationId

The governance correlation identifier of the run's request.

public string? CorrelationId { get; init; }

Property Value

string

DeliveryFaultActive

Whether delivery of the request's audit completion still fails.

public bool DeliveryFaultActive { get; init; }

Property Value

bool

DeliveryFaultClearedUtc

When the delivery fault was cleared.

public DateTimeOffset? DeliveryFaultClearedUtc { get; init; }

Property Value

DateTimeOffset?

ExceptionReasonCode

The reason code that exception carried.

public string? ExceptionReasonCode { get; init; }

Property Value

string

ExceptionType

The type of the exception that ended the request, when one did.

public string? ExceptionType { get; init; }

Property Value

string

ExpiresUtc

When an unused run expires.

public DateTimeOffset ExpiresUtc { get; init; }

Property Value

DateTimeOffset

Faults

The faults the seams injected, in order.

public IReadOnlyList<FailureScenarioFault> Faults { get; init; }

Property Value

IReadOnlyList<FailureScenarioFault>

Request

The request to send, while the run is armed.

public FailureScenarioRequest? Request { get; init; }

Property Value

FailureScenarioRequest

RunId

The run identifier.

public string RunId { get; init; }

Property Value

string

ScenarioId

The scenario the run belongs to.

public string ScenarioId { get; init; }

Property Value

string

StartedUtc

When the run's request began.

public DateTimeOffset? StartedUtc { get; init; }

Property Value

DateTimeOffset?

Status

public string Status { get; init; }

Property Value

string

StatusCode

The response status code.

public int? StatusCode { get; init; }

Property Value

int?