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
RunIdstringThe run identifier.
ScenarioIdstringThe scenario the run belongs to.
ActorIdstringThe governance actor who armed the run.
StatusstringOne of FailureScenarioRunStatuses.
ArmedUtcDateTimeOffsetWhen the run was armed.
ExpiresUtcDateTimeOffsetWhen an unused run expires.
RequestFailureScenarioRequestThe request to send, while the run is armed.
CorrelationIdstringThe governance correlation identifier of the run's request.
StartedUtcDateTimeOffset?When the run's request began.
CompletedUtcDateTimeOffset?When the run's request ended.
StatusCodeint?The response status code.
ExceptionTypestringThe type of the exception that ended the request, when one did.
ExceptionReasonCodestringThe reason code that exception carried.
FaultsIReadOnlyList<FailureScenarioFault>The faults the seams injected, in order.
DeliveryFaultActiveboolWhether delivery of the request's audit completion still fails.
DeliveryFaultClearedUtcDateTimeOffset?When the delivery fault was cleared.
Properties
ActorId
The governance actor who armed the run.
public string ActorId { get; init; }
Property Value
ArmedUtc
When the run was armed.
public DateTimeOffset ArmedUtc { get; init; }
Property Value
CompletedUtc
When the run's request ended.
public DateTimeOffset? CompletedUtc { get; init; }
Property Value
CorrelationId
The governance correlation identifier of the run's request.
public string? CorrelationId { get; init; }
Property Value
DeliveryFaultActive
Whether delivery of the request's audit completion still fails.
public bool DeliveryFaultActive { get; init; }
Property Value
DeliveryFaultClearedUtc
When the delivery fault was cleared.
public DateTimeOffset? DeliveryFaultClearedUtc { get; init; }
Property Value
ExceptionReasonCode
The reason code that exception carried.
public string? ExceptionReasonCode { get; init; }
Property Value
ExceptionType
The type of the exception that ended the request, when one did.
public string? ExceptionType { get; init; }
Property Value
ExpiresUtc
When an unused run expires.
public DateTimeOffset ExpiresUtc { get; init; }
Property Value
Faults
The faults the seams injected, in order.
public IReadOnlyList<FailureScenarioFault> Faults { get; init; }
Property Value
Request
The request to send, while the run is armed.
public FailureScenarioRequest? Request { get; init; }
Property Value
RunId
The run identifier.
public string RunId { get; init; }
Property Value
ScenarioId
The scenario the run belongs to.
public string ScenarioId { get; init; }
Property Value
StartedUtc
When the run's request began.
public DateTimeOffset? StartedUtc { get; init; }
Property Value
Status
One of FailureScenarioRunStatuses.
public string Status { get; init; }
Property Value
StatusCode
The response status code.
public int? StatusCode { get; init; }
Property Value
- int?