Skip to content

ResolvedRetentionPolicy

Namespace AgentPrism · Assembly AgentPrism.Core.dll

Represents a resolved, applicable retention rule for a target.

public sealed record ResolvedRetentionPolicy : IEquatable<ResolvedRetentionPolicy>

objectResolvedRetentionPolicy

IEquatable<ResolvedRetentionPolicy>

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

ResolvedRetentionPolicy(string, int?, long?, bool)

Section titled “ ResolvedRetentionPolicy(string, int?, long?, bool)”

Represents a resolved, applicable retention rule for a target.

public ResolvedRetentionPolicy(string Target, int? MaxAgeDays, long? MaxRows, bool Archive)

Target string

The target name.

MaxAgeDays int?

Rows older than this age are deleted. null if there is no age-based threshold.

MaxRows long?

The maximum number of rows to keep. null if there is no volume-based threshold.

Archive bool

Whether to archive rows before deleting them.

Whether to archive rows before deleting them.

public bool Archive { get; init; }

bool

Rows older than this age are deleted. null if there is no age-based threshold.

public int? MaxAgeDays { get; init; }

int?

The maximum number of rows to keep. null if there is no volume-based threshold.

public long? MaxRows { get; init; }

long?

The target name.

public string Target { get; init; }

string

Deconstruct(out string, out int?, out long?, out bool)

Section titled “ Deconstruct(out string, out int?, out long?, out bool)”
public void Deconstruct(out string Target, out int? MaxAgeDays, out long? MaxRows, out bool Archive)

Target string

MaxAgeDays int?

MaxRows long?

Archive bool

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(ResolvedRetentionPolicy? other)

other ResolvedRetentionPolicy?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(ResolvedRetentionPolicy?, ResolvedRetentionPolicy?)

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

left ResolvedRetentionPolicy?

right ResolvedRetentionPolicy?

bool

operator !=(ResolvedRetentionPolicy?, ResolvedRetentionPolicy?)

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

left ResolvedRetentionPolicy?

right ResolvedRetentionPolicy?

bool