# RunUserStatistics

> 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.runuserstatistics/
> Summary: RunUserStatistics: A user's run summary.

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

A user's run summary.

```csharp
public sealed record RunUserStatistics : IEquatable<RunUserStatistics>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.runuserstatistics/">RunUserStatistics</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;RunUserStatistics&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>

## Remarks

The identity is opaque: Tracon repeats the value the consumer's
[IRunAttributionContext](/api/tracon.irunattributioncontext/) gave it and resolves nothing about it.

## Constructors

### <a id="Tracon_RunUserStatistics__ctor"></a> RunUserStatistics\(\)

```csharp
public RunUserStatistics()
```

## Properties

### <a id="Tracon_RunUserStatistics_FailedRuns"></a> FailedRuns

This user's number of runs that ended in an error.

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

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

This user's total cost. [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) if no run of theirs was ever priced.

```csharp
public decimal? TotalCost { get; init; }
```

#### Property Value

 [decimal](https://learn.microsoft.com/dotnet/api/system.decimal)?

### <a id="Tracon_RunUserStatistics_TotalRuns"></a> TotalRuns

This user's total number of runs.

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

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

This user's total token usage.

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

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

The user identity.

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

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

### <a id="Tracon_RunUserStatistics_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_RunUserStatistics_Equals_Tracon_RunUserStatistics_"></a> Equals\(RunUserStatistics?\)

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

`other` [RunUserStatistics](/api/tracon.runuserstatistics/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_RunUserStatistics_op_Equality_Tracon_RunUserStatistics_Tracon_RunUserStatistics_"></a> operator ==\(RunUserStatistics?, RunUserStatistics?\)

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

`left` [RunUserStatistics](/api/tracon.runuserstatistics/)?

`right` [RunUserStatistics](/api/tracon.runuserstatistics/)?

#### Returns

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

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

`left` [RunUserStatistics](/api/tracon.runuserstatistics/)?

`right` [RunUserStatistics](/api/tracon.runuserstatistics/)?

#### Returns

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