Table of Contents

Class MigrationProgressAuditEvents

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Factory methods for creating migration progress tracking audit events.

public static class MigrationProgressAuditEvents
Inheritance
MigrationProgressAuditEvents
Inherited Members

Remarks

Migration progress is tracked for observability via:

  • Plaintext data detection alerts
  • Data migration queue events
  • Migration completion events
  • Batch-level progress updates

These events support SOC 2 compliance by providing evidence of:

  • CC6.6 - Data protection monitoring
  • CC7.2 - System availability and change monitoring

Methods

DataMigrationCompleted(string, string, long, long, long, long, TimeSpan, string?)

Creates an audit event when a data migration operation completes.

public static AuditEvent DataMigrationCompleted(string batchId, string resourceType, long totalRecords, long successCount, long failedCount, long skippedCount, TimeSpan duration, string? correlationId = null)

Parameters

batchId string

The unique identifier for the migration batch.

resourceType string

The type of resource that was migrated.

totalRecords long

The total number of records in the migration.

successCount long

The number of records successfully migrated.

failedCount long

The number of records that failed to migrate.

skippedCount long

The number of records that were skipped.

duration TimeSpan

The total duration of the migration.

correlationId string

Optional correlation ID for related events.

Returns

AuditEvent

An audit event representing the migration completion.

DataMigrationQueued(string, string, long, long, string, string, string?)

Creates an audit event when data is queued for migration.

public static AuditEvent DataMigrationQueued(string batchId, string resourceType, long recordCount, long estimatedSizeBytes, string sourceProvider, string targetProvider, string? correlationId = null)

Parameters

batchId string

The unique identifier for the migration batch.

resourceType string

The type of resource being migrated.

recordCount long

The number of records queued for migration.

estimatedSizeBytes long

The estimated size of the data in bytes.

sourceProvider string

The source encryption provider.

targetProvider string

The target encryption provider.

correlationId string

Optional correlation ID for related events.

Returns

AuditEvent

An audit event representing the migration queue operation.

MigrationBatchProgress(string, int, int, long, long, TimeSpan, TimeSpan?, string?)

Creates an audit event for batch-level migration progress updates.

public static AuditEvent MigrationBatchProgress(string batchId, int currentBatch, int totalBatches, long processedRecords, long totalRecords, TimeSpan elapsedTime, TimeSpan? estimatedTimeRemaining = null, string? correlationId = null)

Parameters

batchId string

The unique identifier for the migration batch.

currentBatch int

The current batch number being processed.

totalBatches int

The total number of batches in the migration.

processedRecords long

The number of records processed so far.

totalRecords long

The total number of records to be processed.

elapsedTime TimeSpan

The elapsed time since the migration started.

estimatedTimeRemaining TimeSpan?

The estimated time remaining for the migration.

correlationId string

Optional correlation ID for related events.

Returns

AuditEvent

An audit event representing the batch progress.

PlaintextDataDetected(string, long, PlaintextSeverity, string, string?)

Creates an audit event when unencrypted/plaintext data is detected.

public static AuditEvent PlaintextDataDetected(string resourceType, long count, PlaintextSeverity severity, string detectionMethod, string? correlationId = null)

Parameters

resourceType string

The type of resource containing plaintext data.

count long

The number of plaintext records detected.

severity PlaintextSeverity

The severity level of the detection.

detectionMethod string

The method used to detect plaintext (e.g., "scan", "migration", "audit").

correlationId string

Optional correlation ID for related events.

Returns

AuditEvent

An audit event representing the plaintext data detection.