# RunLabelStatistics

> 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.runlabelstatistics/
> Summary: RunLabelStatistics: A label's run summary; one entry per distinct key/value pair.

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

A label's run summary; one entry per distinct key/value pair.

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

```csharp
public RunLabelStatistics()
```

## Properties

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

This label'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_RunLabelStatistics_Key"></a> Key

The label key.

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

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

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

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

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

The number of runs carrying this exact key/value pair.

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

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

This label's total token usage.

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

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

The label value.

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

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

### <a id="Tracon_RunLabelStatistics_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_RunLabelStatistics_Equals_Tracon_RunLabelStatistics_"></a> Equals\(RunLabelStatistics?\)

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

`other` [RunLabelStatistics](/api/tracon.runlabelstatistics/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_RunLabelStatistics_op_Equality_Tracon_RunLabelStatistics_Tracon_RunLabelStatistics_"></a> operator ==\(RunLabelStatistics?, RunLabelStatistics?\)

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

`left` [RunLabelStatistics](/api/tracon.runlabelstatistics/)?

`right` [RunLabelStatistics](/api/tracon.runlabelstatistics/)?

#### Returns

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

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

`left` [RunLabelStatistics](/api/tracon.runlabelstatistics/)?

`right` [RunLabelStatistics](/api/tracon.runlabelstatistics/)?

#### Returns

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