ResolvedRetentionPolicy
AgentPrism.Core.dllRepresents a resolved, applicable retention rule for a target.
public sealed record ResolvedRetentionPolicy : IEquatable<ResolvedRetentionPolicy>Inheritance
Section titled “Inheritance”object ← ResolvedRetentionPolicy
Implements
Section titled “Implements”IEquatable<ResolvedRetentionPolicy>
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”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)Parameters
Section titled “Parameters”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.
Properties
Section titled “Properties”Archive
Section titled “ Archive”Whether to archive rows before deleting them.
public bool Archive { get; init; }Property Value
Section titled “Property Value”MaxAgeDays
Section titled “ MaxAgeDays”Rows older than this age are deleted. null if there is no age-based threshold.
public int? MaxAgeDays { get; init; }Property Value
Section titled “Property Value”int?
MaxRows
Section titled “ MaxRows”The maximum number of rows to keep. null if there is no volume-based threshold.
public long? MaxRows { get; init; }Property Value
Section titled “Property Value”long?
Target
Section titled “ Target”The target name.
public string Target { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”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)Parameters
Section titled “Parameters”Target string
MaxAgeDays int?
MaxRows long?
Archive bool
Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(ResolvedRetentionPolicy?)
Section titled “ Equals(ResolvedRetentionPolicy?)”public bool Equals(ResolvedRetentionPolicy? other)Parameters
Section titled “Parameters”other ResolvedRetentionPolicy?
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 ==(ResolvedRetentionPolicy?, ResolvedRetentionPolicy?)
Section titled “ operator ==(ResolvedRetentionPolicy?, ResolvedRetentionPolicy?)”public static bool operator ==(ResolvedRetentionPolicy? left, ResolvedRetentionPolicy? right)Parameters
Section titled “Parameters”left ResolvedRetentionPolicy?
right ResolvedRetentionPolicy?
Returns
Section titled “Returns”operator !=(ResolvedRetentionPolicy?, ResolvedRetentionPolicy?)
Section titled “ operator !=(ResolvedRetentionPolicy?, ResolvedRetentionPolicy?)”public static bool operator !=(ResolvedRetentionPolicy? left, ResolvedRetentionPolicy? right)Parameters
Section titled “Parameters”left ResolvedRetentionPolicy?
right ResolvedRetentionPolicy?