RetentionPreview
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllA preview of “how many rows would be deleted if run now” for a target.
public sealed record RetentionPreview : IEquatable<RetentionPreview>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”RetentionPreview()
Section titled “ RetentionPreview()”public RetentionPreview()Properties
Section titled “Properties”Cutoff
Section titled “ Cutoff”The computed cutoff date (UTC). null if there is no policy.
public DateTimeOffset? Cutoff { get; init; }Property Value
Section titled “Property Value”Enabled
Section titled “ Enabled”Whether the policy is enabled.
public bool Enabled { get; init; }Property Value
Section titled “Property Value”MatchingRows
Section titled “ MatchingRows”The number of rows currently older than the cutoff date.
public long MatchingRows { get; init; }Property Value
Section titled “Property Value”MaxAgeDays
Section titled “ MaxAgeDays”null if no policy was found (nothing would be deleted).
public int? MaxAgeDays { get; init; }Property Value
Section titled “Property Value”int?
Target
Section titled “ Target”The previewed target.
public required string Target { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(RetentionPreview?)
Section titled “ Equals(RetentionPreview?)”public bool Equals(RetentionPreview? other)Parameters
Section titled “Parameters”other RetentionPreview?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(RetentionPreview?, RetentionPreview?)
Section titled “ operator ==(RetentionPreview?, RetentionPreview?)”public static bool operator ==(RetentionPreview? left, RetentionPreview? right)Parameters
Section titled “Parameters”left RetentionPreview?
right RetentionPreview?
Returns
Section titled “Returns”operator !=(RetentionPreview?, RetentionPreview?)
Section titled “ operator !=(RetentionPreview?, RetentionPreview?)”public static bool operator !=(RetentionPreview? left, RetentionPreview? right)Parameters
Section titled “Parameters”left RetentionPreview?
right RetentionPreview?