Skip to content

RetentionPolicySaveRequest

Namespace AgentPrism · Assembly AgentPrism.AspNetCore.dll

Request body for saving a retention policy.

public sealed record RetentionPolicySaveRequest : IEquatable<RetentionPolicySaveRequest>

objectRetentionPolicySaveRequest

IEquatable<RetentionPolicySaveRequest>

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

public RetentionPolicySaveRequest()

Whether to archive rows before deleting them.

public bool Archive { get; init; }

bool

Whether the policy is enabled.

public bool Enabled { get; init; }

bool

Rows older than this age are candidates for deletion.

public int? MaxAgeDays { get; init; }

int?

The maximum number of rows to keep for the target. The oldest rows are deleted.

public long? MaxRows { get; init; }

long?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(RetentionPolicySaveRequest? other)

other RetentionPolicySaveRequest?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(RetentionPolicySaveRequest?, RetentionPolicySaveRequest?)

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

left RetentionPolicySaveRequest?

right RetentionPolicySaveRequest?

bool

operator !=(RetentionPolicySaveRequest?, RetentionPolicySaveRequest?)

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

left RetentionPolicySaveRequest?

right RetentionPolicySaveRequest?

bool