Table of Contents

Class AuditRecord

Namespace
ProjectTemplate.Infrastructure.Data.Entities
Assembly
ProjectTemplate.Infrastructure.dll
public class AuditRecord : DataEntity
Inheritance
AuditRecord
Inherited Members

Properties

ActorId

Gets or sets the stable machine-readable actor identifier.

public string ActorId { get; set; }

Property Value

string

ActorType

Gets or sets the actor type, such as Human, Service, System, Network, or Unknown.

public string ActorType { get; set; }

Property Value

string

Application

The name of the application or service that made the change. It can be used to group changes by application or service, and to identify which application or service is responsible for a change. It should be unique enough to identify the source of the change, but it does not have to be globally unique.

public string Application { get; set; }

Property Value

string

CorrelationId

Gets or sets the request or workflow correlation identifier.

public string? CorrelationId { get; set; }

Property Value

string

CurrentValues

The current values of the entity after the change. It can be used to identify what the values are after the change, and to compare them with the original values before the change. It should be a string that represents the current values of the entity, such as a JSON object or a comma-separated list of key-value pairs.

public string CurrentValues { get; set; }

Property Value

string

DecisionAuditRecordId

Gets or sets the identifier of the related policy decision audit record, when supplied by the host.

public string? DecisionAuditRecordId { get; set; }

Property Value

string

Entity

The name of the entity that was changed. It can be used to group changes by entity type, and to identify which entity was changed. It should be unique enough to identify the type of entity that was changed, but it does not have to be globally unique.

public string Entity { get; set; }

Property Value

string

ExecutionAttemptId

Gets or sets the host-owned identifier for a particular retry or execution attempt.

public string? ExecutionAttemptId { get; set; }

Property Value

string

KeyValues

The key values of the entity that was changed. It can be used to identify which specific entity was changed, and to link the audit record to the entity. It should be a string that represents the key values of the entity, such as a JSON object or a comma-separated list of key-value pairs.

public string KeyValues { get; set; }

Property Value

string

ModifiedBy

The user, system or remote IP address that made the change. It can be a username, an email address, or a system identifier. It should be unique enough to identify the source of the change, but it does not have to be globally unique.

public string ModifiedBy { get; set; }

Property Value

string

ModifiedOnUtc

The date and time when the change was made, in Coordinated Universal Time (UTC). It should be stored in UTC to avoid issues with time zones and daylight saving time. When displaying the date and time to users, it can be converted to their local time zone as needed.

public DateTime ModifiedOnUtc { get; set; }

Property Value

DateTime

MutationBatchId

Gets or sets the identifier that groups all audit records created by one logical save operation.

public string MutationBatchId { get; set; }

Property Value

string

OperationExecutionId

Gets or sets the host-owned identifier for the governed operation execution.

public string? OperationExecutionId { get; set; }

Property Value

string

OrganizationHash

Gets or sets an optional privacy-preserving organization hash.

public string? OrganizationHash { get; set; }

Property Value

string

OriginalValues

The original values of the entity before the change. It can be used to identify what the values were before the change, and to compare them with the current values after the change. It should be a string that represents the original values of the entity, such as a JSON object or a comma-separated list of key-value pairs.

public string OriginalValues { get; set; }

Property Value

string

SchemaVersion

Gets or sets the schema version for this audit record.

public string SchemaVersion { get; set; }

Property Value

string

SpanId

Gets or sets the distributed span identifier.

public string? SpanId { get; set; }

Property Value

string

State

The state of the entity after the change. It can be used to identify whether the entity was created, updated, or deleted. It should be a string that represents the state of the entity, such as "Created", "Updated", or "Deleted".

public string State { get; set; }

Property Value

string

TenantHash

Gets or sets an optional privacy-preserving tenant hash.

public string? TenantHash { get; set; }

Property Value

string

TraceId

Gets or sets the distributed trace identifier.

public string? TraceId { get; set; }

Property Value

string