Class AuditEntry
- Namespace
- WorkflowForge.Extensions.Audit
- Assembly
- WorkflowForge.Extensions.Audit.dll
Represents a single audit log entry for workflow operations.
public sealed class AuditEntry
- Inheritance
-
AuditEntry
- Inherited Members
Constructors
AuditEntry(Guid, string, string, AuditEventType, string, string?, IReadOnlyDictionary<string, object?>?, string?, long?, DateTimeOffset?)
Initializes a new instance of the AuditEntry class.
public AuditEntry(Guid executionId, string workflowName, string operationName, AuditEventType eventType, string status, string? initiatedBy = null, IReadOnlyDictionary<string, object?>? metadata = null, string? errorMessage = null, long? durationMs = null, DateTimeOffset? timestamp = null)
Parameters
executionIdGuidworkflowNamestringoperationNamestringeventTypeAuditEventTypestatusstringinitiatedBystringmetadataIReadOnlyDictionary<string, object>errorMessagestringdurationMslong?timestampDateTimeOffset?
Properties
AuditId
Gets the unique identifier for this audit entry.
public Guid AuditId { get; }
Property Value
DurationMs
Gets the duration of the operation in milliseconds.
public long? DurationMs { get; }
Property Value
- long?
ErrorMessage
Gets the error message if the operation failed.
public string? ErrorMessage { get; }
Property Value
EventType
Gets the audit event type.
public AuditEventType EventType { get; }
Property Value
ExecutionId
Gets the workflow execution ID.
public Guid ExecutionId { get; }
Property Value
InitiatedBy
Gets the user or system that initiated the operation.
public string? InitiatedBy { get; }
Property Value
Metadata
Gets optional metadata associated with this audit entry.
public IReadOnlyDictionary<string, object?> Metadata { get; }
Property Value
OperationName
Gets the operation name.
public string OperationName { get; }
Property Value
Status
Gets the operation status.
public string Status { get; }
Property Value
Timestamp
Gets the timestamp when the audit entry was created.
public DateTimeOffset Timestamp { get; }
Property Value
WorkflowName
Gets the workflow name.
public string WorkflowName { get; }