Class PolicySimulationReceipt
- Namespace
- ReferenceApplication.Web.Governance.Simulation
- Assembly
- ReferenceApplication.Web.dll
The decision receipt that would be appended to the ledger.
public sealed record PolicySimulationReceipt : IEquatable<PolicySimulationReceipt>
- Inheritance
-
PolicySimulationReceipt
- Implements
- Inherited Members
Constructors
PolicySimulationReceipt(string, string, string, DateTimeOffset, string, string, string?, string, string, IReadOnlyList<string>, string?, string?, string?, string?, string?, IReadOnlyDictionary<string, string>)
The decision receipt that would be appended to the ledger.
public PolicySimulationReceipt(string DecisionReceiptId, string EventId, string SchemaVersion, DateTimeOffset OccurredUtc, string ActorId, string ActorType, string? ActorDisplayName, string OperationName, string Outcome, IReadOnlyList<string> ReasonCodes, string? CorrelationId, string? DecisionStage, string? PolicyVersion, string? PolicyHash, string? CapabilityGrantId, IReadOnlyDictionary<string, string> Metadata)
Parameters
DecisionReceiptIdstringThe receipt identifier.
EventIdstringThe receipt event identifier.
SchemaVersionstringThe receipt schema version.
OccurredUtcDateTimeOffsetWhen the decision occurred.
ActorIdstringThe governance actor identifier.
ActorTypestringThe governance actor type.
ActorDisplayNamestringThe actor display name, when known.
OperationNamestringThe governed operation name.
OutcomestringThe decision outcome.
ReasonCodesIReadOnlyList<string>The decision reason codes.
CorrelationIdstringThe simulated request's correlation identifier.
DecisionStagestringThe governance stage that produced the receipt.
PolicyVersionstringThe policy version.
PolicyHashstringThe policy hash.
CapabilityGrantIdstringThe capability grant that authorized the decision, when one did.
MetadataIReadOnlyDictionary<string, string>The receipt metadata.
Properties
ActorDisplayName
The actor display name, when known.
public string? ActorDisplayName { get; init; }
Property Value
ActorId
The governance actor identifier.
public string ActorId { get; init; }
Property Value
ActorType
The governance actor type.
public string ActorType { get; init; }
Property Value
CapabilityGrantId
The capability grant that authorized the decision, when one did.
public string? CapabilityGrantId { get; init; }
Property Value
CorrelationId
The simulated request's correlation identifier.
public string? CorrelationId { get; init; }
Property Value
DecisionReceiptId
The receipt identifier.
public string DecisionReceiptId { get; init; }
Property Value
DecisionStage
The governance stage that produced the receipt.
public string? DecisionStage { get; init; }
Property Value
EventId
The receipt event identifier.
public string EventId { get; init; }
Property Value
Metadata
The receipt metadata.
public IReadOnlyDictionary<string, string> Metadata { get; init; }
Property Value
OccurredUtc
When the decision occurred.
public DateTimeOffset OccurredUtc { get; init; }
Property Value
OperationName
The governed operation name.
public string OperationName { get; init; }
Property Value
Outcome
The decision outcome.
public string Outcome { get; init; }
Property Value
PolicyHash
The policy hash.
public string? PolicyHash { get; init; }
Property Value
PolicyVersion
The policy version.
public string? PolicyVersion { get; init; }
Property Value
ReasonCodes
The decision reason codes.
public IReadOnlyList<string> ReasonCodes { get; init; }
Property Value
SchemaVersion
The receipt schema version.
public string SchemaVersion { get; init; }