# RetentionRun

> Tracon documentation. Tracon is a .NET package family that adds a control
> plane on Microsoft Agent Framework, published as NuGet packages that run
> inside your own ASP.NET Core application.
>
> Page: https://tracon.dev/api/tracon.retentionrun/
> Summary: RetentionRun: The history record of a cleanup run.

<div class="api-provenance">Namespace Tracon · Assembly <code>Tracon.Abstractions.dll</code></div>

The history record of a cleanup run.

```csharp
public sealed record RetentionRun : IEquatable<RetentionRun>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.retentionrun/">RetentionRun</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;RetentionRun&gt;</a></dd><dt>Inherited Members</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a></dd></dl>

## Constructors

### <a id="Tracon_RetentionRun__ctor"></a> RetentionRun\(\)

```csharp
public RetentionRun()
```

## Properties

### <a id="Tracon_RetentionRun_ArchivedRows"></a> ArchivedRows

The number of rows archived so far.

```csharp
public long ArchivedRows { get; init; }
```

#### Property Value

 [long](https://learn.microsoft.com/dotnet/api/system.int64)

### <a id="Tracon_RetentionRun_CompletedAt"></a> CompletedAt

The completion time (UTC). [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) while the run is in progress.

```csharp
public DateTimeOffset? CompletedAt { get; init; }
```

#### Property Value

 [DateTimeOffset](https://learn.microsoft.com/dotnet/api/system.datetimeoffset)?

### <a id="Tracon_RetentionRun_DeletedRows"></a> DeletedRows

The number of rows deleted so far.

```csharp
public long DeletedRows { get; init; }
```

#### Property Value

 [long](https://learn.microsoft.com/dotnet/api/system.int64)

### <a id="Tracon_RetentionRun_Error"></a> Error

The error message. Populated only for failed runs.

```csharp
public string? Error { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)?

### <a id="Tracon_RetentionRun_Id"></a> Id

The run identifier.

```csharp
public required Guid Id { get; init; }
```

#### Property Value

 [Guid](https://learn.microsoft.com/dotnet/api/system.guid)

### <a id="Tracon_RetentionRun_StartedAt"></a> StartedAt

The start time (UTC).

```csharp
public required DateTimeOffset StartedAt { get; init; }
```

#### Property Value

 [DateTimeOffset](https://learn.microsoft.com/dotnet/api/system.datetimeoffset)

### <a id="Tracon_RetentionRun_Target"></a> Target

The target processed.

```csharp
public required string Target { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="Tracon_RetentionRun_TenantId"></a> TenantId

The tenant identifier.

```csharp
public required string TenantId { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)

## Methods

### <a id="Tracon_RetentionRun_Equals_System_Object_"></a> Equals\(object?\)

```csharp
public override bool Equals(object? obj)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_RetentionRun_Equals_Tracon_RetentionRun_"></a> Equals\(RetentionRun?\)

```csharp
public bool Equals(RetentionRun? other)
```

#### Parameters

`other` [RetentionRun](/api/tracon.retentionrun/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_RetentionRun_GetHashCode"></a> GetHashCode\(\)

```csharp
public override int GetHashCode()
```

#### Returns

 [int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="Tracon_RetentionRun_ToString"></a> ToString\(\)

```csharp
public override string ToString()
```

#### Returns

 [string](https://learn.microsoft.com/dotnet/api/system.string)

## Operators

### <a id="Tracon_RetentionRun_op_Equality_Tracon_RetentionRun_Tracon_RetentionRun_"></a> operator ==\(RetentionRun?, RetentionRun?\)

```csharp
public static bool operator ==(RetentionRun? left, RetentionRun? right)
```

#### Parameters

`left` [RetentionRun](/api/tracon.retentionrun/)?

`right` [RetentionRun](/api/tracon.retentionrun/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_RetentionRun_op_Inequality_Tracon_RetentionRun_Tracon_RetentionRun_"></a> operator \!=\(RetentionRun?, RetentionRun?\)

```csharp
public static bool operator !=(RetentionRun? left, RetentionRun? right)
```

#### Parameters

`left` [RetentionRun](/api/tracon.retentionrun/)?

`right` [RetentionRun](/api/tracon.retentionrun/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)
