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
batchIdstringThe unique identifier for the migration batch.
resourceTypestringThe type of resource that was migrated.
totalRecordslongThe total number of records in the migration.
successCountlongThe number of records successfully migrated.
failedCountlongThe number of records that failed to migrate.
skippedCountlongThe number of records that were skipped.
durationTimeSpanThe total duration of the migration.
correlationIdstringOptional 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
batchIdstringThe unique identifier for the migration batch.
resourceTypestringThe type of resource being migrated.
recordCountlongThe number of records queued for migration.
estimatedSizeByteslongThe estimated size of the data in bytes.
sourceProviderstringThe source encryption provider.
targetProviderstringThe target encryption provider.
correlationIdstringOptional 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
batchIdstringThe unique identifier for the migration batch.
currentBatchintThe current batch number being processed.
totalBatchesintThe total number of batches in the migration.
processedRecordslongThe number of records processed so far.
totalRecordslongThe total number of records to be processed.
elapsedTimeTimeSpanThe elapsed time since the migration started.
estimatedTimeRemainingTimeSpan?The estimated time remaining for the migration.
correlationIdstringOptional 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
resourceTypestringThe type of resource containing plaintext data.
countlongThe number of plaintext records detected.
severityPlaintextSeverityThe severity level of the detection.
detectionMethodstringThe method used to detect plaintext (e.g., "scan", "migration", "audit").
correlationIdstringOptional correlation ID for related events.
Returns
- AuditEvent
An audit event representing the plaintext data detection.