Skip to content

RetentionPreview

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A preview of “how many rows would be deleted if run now” for a target.

public sealed record RetentionPreview : IEquatable<RetentionPreview>

objectRetentionPreview

IEquatable<RetentionPreview>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

public RetentionPreview()

The computed cutoff date (UTC). null if there is no policy.

public DateTimeOffset? Cutoff { get; init; }

DateTimeOffset?

Whether the policy is enabled.

public bool Enabled { get; init; }

bool

The number of rows currently older than the cutoff date.

public long MatchingRows { get; init; }

long

null if no policy was found (nothing would be deleted).

public int? MaxAgeDays { get; init; }

int?

The previewed target.

public required string Target { get; init; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(RetentionPreview? other)

other RetentionPreview?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(RetentionPreview?, RetentionPreview?)

Section titled “ operator ==(RetentionPreview?, RetentionPreview?)”
public static bool operator ==(RetentionPreview? left, RetentionPreview? right)

left RetentionPreview?

right RetentionPreview?

bool

operator !=(RetentionPreview?, RetentionPreview?)

Section titled “ operator !=(RetentionPreview?, RetentionPreview?)”
public static bool operator !=(RetentionPreview? left, RetentionPreview? right)

left RetentionPreview?

right RetentionPreview?

bool