Table of Contents

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

executionId Guid
workflowName string
operationName string
eventType AuditEventType
status string
initiatedBy string
metadata IReadOnlyDictionary<string, object>
errorMessage string
durationMs long?
timestamp DateTimeOffset?

Properties

AuditId

Gets the unique identifier for this audit entry.

public Guid AuditId { get; }

Property Value

Guid

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

string

EventType

Gets the audit event type.

public AuditEventType EventType { get; }

Property Value

AuditEventType

ExecutionId

Gets the workflow execution ID.

public Guid ExecutionId { get; }

Property Value

Guid

InitiatedBy

Gets the user or system that initiated the operation.

public string? InitiatedBy { get; }

Property Value

string

Metadata

Gets optional metadata associated with this audit entry.

public IReadOnlyDictionary<string, object?> Metadata { get; }

Property Value

IReadOnlyDictionary<string, object>

OperationName

Gets the operation name.

public string OperationName { get; }

Property Value

string

Status

Gets the operation status.

public string Status { get; }

Property Value

string

Timestamp

Gets the timestamp when the audit entry was created.

public DateTimeOffset Timestamp { get; }

Property Value

DateTimeOffset

WorkflowName

Gets the workflow name.

public string WorkflowName { get; }

Property Value

string