Class AuditLedgerRecord
- Namespace
- AsiBackbone.Core.Audit
- Assembly
- AsiBackbone.Core.dll
Represents a persistence-ready audit ledger record captured from AsiBackbone audit residue.
public sealed class AuditLedgerRecord : IAsiBackboneAuditResidue
- Inheritance
-
AuditLedgerRecord
- Implements
- Inherited Members
Properties
AcknowledgmentId
public string? AcknowledgmentId { get; }
Property Value
ActorDisplayName
Gets the optional display name or label associated with the actor.
public string? ActorDisplayName { get; }
Property Value
ActorId
Gets the stable actor identifier associated with the event.
public string ActorId { get; }
Property Value
ActorType
Gets the actor type associated with the event.
public AsiBackboneActorType ActorType { get; }
Property Value
AuditResidueId
Gets the stable audit residue identifier when available.
public string AuditResidueId { get; }
Property Value
Remarks
Existing residue implementations may use EventId as the residue identifier.
CapabilityTokenId
public string? CapabilityTokenId { get; }
Property Value
ConstraintCount
Gets the number of constraints evaluated for the decision, when supplied by the host.
public int? ConstraintCount { get; }
Property Value
- int?
ConstraintSetHash
Gets the hash of the evaluated constraint set, when supplied by the host.
public string? ConstraintSetHash { get; }
Property Value
CorrelationId
Gets the correlation identifier associated with the event, when supplied by the host.
public string? CorrelationId { get; }
Property Value
DecisionLatencyMs
Gets the decision latency in milliseconds, when supplied by the host.
public long? DecisionLatencyMs { get; }
Property Value
- long?
DecisionStage
Gets the provider-neutral decision stage associated with the event, when supplied by the host.
public string? DecisionStage { get; }
Property Value
EmitterProvider
Gets the provider-neutral emitter provider name, when supplied by the host or outbox provider.
public string? EmitterProvider { get; }
Property Value
EmitterStatus
Gets the provider-neutral emitter status, when supplied by the host or outbox provider.
public string? EmitterStatus { get; }
Property Value
EventId
Gets the stable audit event identifier.
public string EventId { get; }
Property Value
GatewayExecutionId
Gets the gateway execution identifier associated with the event, when supplied by the host or gateway provider.
public string? GatewayExecutionId { get; }
Property Value
HandshakeId
public string? HandshakeId { get; }
Property Value
HasMetadata
public bool HasMetadata { get; }
Property Value
HasReasonCodes
public bool HasReasonCodes { get; }
Property Value
Metadata
Gets additional framework-neutral audit metadata supplied by the host.
public IReadOnlyDictionary<string, string> Metadata { get; }
Property Value
OccurredUtc
Gets the UTC timestamp when the audited event occurred.
public DateTimeOffset OccurredUtc { get; }
Property Value
OperationName
Gets the operation name associated with the audited event.
public string OperationName { get; }
Property Value
OrganizationHash
Gets the privacy-preserving organization hash associated with the decision, when supplied by the host.
public string? OrganizationHash { get; }
Property Value
OutboxSequence
Gets the outbox sequence associated with the event, when supplied by the host or outbox provider.
public long? OutboxSequence { get; }
Property Value
- long?
Outcome
Gets the governance, constraint, or host-defined outcome associated with the event.
public string Outcome { get; }
Property Value
ParentSpanId
Gets the parent span identifier associated with the event, when supplied by the host or observability adapter.
public string? ParentSpanId { get; }
Property Value
PolicyHash
Gets the policy hash associated with the event, when supplied by the host.
public string? PolicyHash { get; }
Property Value
PolicyScope
Gets the policy scope associated with the decision, when supplied by the host.
public string? PolicyScope { get; }
Property Value
PolicyVersion
Gets the policy version associated with the event, when supplied by the host.
public string? PolicyVersion { get; }
Property Value
PreviousRecordHash
public string? PreviousRecordHash { get; }
Property Value
ReasonCodes
Gets machine-readable reason codes associated with the event.
public IReadOnlyList<string> ReasonCodes { get; }
Property Value
RecordHash
public string? RecordHash { get; }
Property Value
RecordId
public string RecordId { get; }
Property Value
RecordedUtc
public DateTimeOffset RecordedUtc { get; }
Property Value
RiskScore
Gets the host-defined risk score associated with the decision, when supplied by the host.
public double? RiskScore { get; }
Property Value
SchemaVersion
Gets the serialized schema version for the audit residue shape.
public string SchemaVersion { get; }
Property Value
SignatureAlgorithm
public string? SignatureAlgorithm { get; }
Property Value
SignatureKeyId
public string? SignatureKeyId { get; }
Property Value
SignatureKeyVersion
public string? SignatureKeyVersion { get; }
Property Value
SignatureProvider
public string? SignatureProvider { get; }
Property Value
SignatureValue
public string? SignatureValue { get; }
Property Value
SignedUtc
public DateTimeOffset? SignedUtc { get; }
Property Value
SigningHash
public string? SigningHash { get; }
Property Value
SigningMetadata
public SigningMetadata SigningMetadata { get; }
Property Value
SpanId
Gets the span identifier associated with the event, when supplied by the host or observability adapter.
public string? SpanId { get; }
Property Value
TenantHash
Gets the privacy-preserving tenant hash associated with the decision, when supplied by the host.
public string? TenantHash { get; }
Property Value
TraceId
Gets the trace identifier associated with the event, when supplied by the host.
public string? TraceId { get; }
Property Value
Methods
FromResidue(IAsiBackboneAuditResidue, string?, DateTimeOffset?, string?, string?, string?, string?, string?, string?, string?, string?, string?, string?, string?, DateTimeOffset?, IReadOnlyDictionary<string, string>?, string?)
public static AuditLedgerRecord FromResidue(IAsiBackboneAuditResidue residue, string? recordId = null, DateTimeOffset? recordedUtc = null, string? handshakeId = null, string? acknowledgmentId = null, string? capabilityTokenId = null, string? previousRecordHash = null, string? recordHash = null, string? signatureKeyId = null, string? signatureAlgorithm = null, string? signatureValue = null, string? signingHash = null, string? signatureKeyVersion = null, string? signatureProvider = null, DateTimeOffset? signedUtc = null, IReadOnlyDictionary<string, string>? metadata = null, string? schemaVersion = null)
Parameters
residueIAsiBackboneAuditResiduerecordIdstringrecordedUtcDateTimeOffset?handshakeIdstringacknowledgmentIdstringcapabilityTokenIdstringpreviousRecordHashstringrecordHashstringsignatureKeyIdstringsignatureAlgorithmstringsignatureValuestringsigningHashstringsignatureKeyVersionstringsignatureProviderstringsignedUtcDateTimeOffset?metadataIReadOnlyDictionary<string, string>schemaVersionstring