Class BackupRetentionResult
What a retention did.
public sealed record BackupRetentionResult : IEquatable<BackupRetentionResult>
- Inheritance
-
BackupRetentionResult
- Implements
- Inherited Members
Constructors
BackupRetentionResult(BackupRetentionPlan, IReadOnlyList<BackupCompactionResult>, IReadOnlyList<string>, long, TimeSpan, IReadOnlyList<BackupCompactionFailure>)
What a retention did.
public BackupRetentionResult(BackupRetentionPlan Plan, IReadOnlyList<BackupCompactionResult> Compactions, IReadOnlyList<string> Deleted, long BytesFreed, TimeSpan Duration, IReadOnlyList<BackupCompactionFailure> FailedCompactions)
Parameters
PlanBackupRetentionPlanThe plan it applied: the compactions it attempted, then the deletions re-planned on what they published.
CompactionsIReadOnlyList<BackupCompactionResult>The compactions it ran, failed ones excluded (their chains keep every pack this run).
DeletedIReadOnlyList<string>The pack files deleted, in order.
BytesFreedlongTheir bytes, minus the compacted packs written.
DurationTimeSpanWall time.
FailedCompactionsIReadOnlyList<BackupCompactionFailure>The compactions attempted that did not publish, and why.
Properties
BytesFreed
Their bytes, minus the compacted packs written.
public long BytesFreed { get; init; }
Property Value
Compactions
The compactions it ran, failed ones excluded (their chains keep every pack this run).
public IReadOnlyList<BackupCompactionResult> Compactions { get; init; }
Property Value
Deleted
The pack files deleted, in order.
public IReadOnlyList<string> Deleted { get; init; }
Property Value
Duration
Wall time.
public TimeSpan Duration { get; init; }
Property Value
FailedCompactions
The compactions attempted that did not publish, and why.
public IReadOnlyList<BackupCompactionFailure> FailedCompactions { get; init; }
Property Value
Plan
The plan it applied: the compactions it attempted, then the deletions re-planned on what they published.
public BackupRetentionPlan Plan { get; init; }
Property Value
Methods
Deconstruct(out BackupRetentionPlan, out IReadOnlyList<BackupCompactionResult>, out IReadOnlyList<string>, out long, out TimeSpan, out IReadOnlyList<BackupCompactionFailure>)
public void Deconstruct(out BackupRetentionPlan Plan, out IReadOnlyList<BackupCompactionResult> Compactions, out IReadOnlyList<string> Deleted, out long BytesFreed, out TimeSpan Duration, out IReadOnlyList<BackupCompactionFailure> FailedCompactions)
Parameters
PlanBackupRetentionPlanCompactionsIReadOnlyList<BackupCompactionResult>DeletedIReadOnlyList<string>BytesFreedlongDurationTimeSpanFailedCompactionsIReadOnlyList<BackupCompactionFailure>
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(BackupRetentionResult?)
public bool Equals(BackupRetentionResult? other)
Parameters
otherBackupRetentionResult
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BackupRetentionResult?, BackupRetentionResult?)
public static bool operator ==(BackupRetentionResult? left, BackupRetentionResult? right)
Parameters
leftBackupRetentionResultrightBackupRetentionResult
Returns
operator !=(BackupRetentionResult?, BackupRetentionResult?)
public static bool operator !=(BackupRetentionResult? left, BackupRetentionResult? right)
Parameters
leftBackupRetentionResultrightBackupRetentionResult