Table of Contents

Class AuditArchiveCompletedEventArgs

Namespace
Excalibur.Data.ElasticSearch.Security
Assembly
Excalibur.Data.ElasticSearch.dll

Event arguments for when audit log archiving operations are completed.

public sealed class AuditArchiveCompletedEventArgs : EventArgs
Inheritance
AuditArchiveCompletedEventArgs
Inherited Members

Remarks

Initializes a new instance of the AuditArchiveCompletedEventArgs class.

Constructors

AuditArchiveCompletedEventArgs(long, DateTimeOffset, DateTimeOffset)

Event arguments for when audit log archiving operations are completed.

public AuditArchiveCompletedEventArgs(long archivedCount, DateTimeOffset startTime, DateTimeOffset endTime)

Parameters

archivedCount long

The number of audit records that were archived.

startTime DateTimeOffset

The start time of the archive operation.

endTime DateTimeOffset

The end time of the archive operation.

Remarks

Initializes a new instance of the AuditArchiveCompletedEventArgs class.

Properties

ArchiveDestination

Gets the archive destination path or identifier.

public string? ArchiveDestination { get; init; }

Property Value

string

The file path, storage location, or identifier where the archived data was stored.

ArchiveSize

Gets the size of the archived data in bytes.

public long? ArchiveSize { get; init; }

Property Value

long?

The total size in bytes of the archived data, or null if size information is not available.

ArchivedCount

Gets the number of audit records that were archived.

public long ArchivedCount { get; }

Property Value

long

The total count of audit records successfully processed and archived.

CompressionRatio

Gets the compression ratio achieved during archiving.

public double? CompressionRatio { get; init; }

Property Value

double?

The compression ratio as a decimal (e.g., 0.5 for 50% compression), or null if compression was not applied.

Duration

Gets the duration of the archive operation.

public TimeSpan Duration { get; }

Property Value

TimeSpan

The total time span from start to completion of the archive operation.

EndTime

Gets the end time of the archive operation.

public DateTimeOffset EndTime { get; }

Property Value

DateTimeOffset

The UTC timestamp when the archive operation completed.

Errors

Gets any errors that occurred during the archive operation.

public IReadOnlyList<string>? Errors { get; init; }

Property Value

IReadOnlyList<string>

A read-only list of error messages encountered during archiving, or null if no errors occurred.

StartTime

Gets the start time of the archive operation.

public DateTimeOffset StartTime { get; }

Property Value

DateTimeOffset

The UTC timestamp when the archive operation began.