# Data Catalog v1 API - Class UsageStats (2.17.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.17.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.16.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.16.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.15.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.15.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.14.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.14.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.13.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.13.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.12.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.12.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.11.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.10.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.9.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.8.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.7.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.6.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.5.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.4.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.3.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.2.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.1.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/2.0.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [1.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.8.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [1.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.7.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [1.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.6.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.5.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.4.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.3.0/Google.Cloud.DataCatalog.V1.UsageStats)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/1.2.0/Google.Cloud.DataCatalog.V1.UsageStats)

    public sealed class UsageStats : IMessage<UsageStats>, IEquatable<UsageStats>, IDeepCloneable<UsageStats>, IBufferMessage, IMessage

Reference documentation and code samples for the Data Catalog v1 API class UsageStats.

Detailed statistics on the entry's usage.

Usage statistics have the following limitations:

- Only BigQuery tables have them.
- They only include BigQuery query jobs.
- They might be underestimated because wildcard table references are not yet counted. For more information, see [Querying multiple tables using a wildcard table](https://cloud.google.com/bigquery/docs/querying-wildcard-tables)

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> UsageStats

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UsageStats](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.UsageStats), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UsageStats](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.UsageStats), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UsageStats](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.UsageStats), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DataCatalog.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1)

## Assembly

Google.Cloud.DataCatalog.V1.dll

## Constructors

### UsageStats()

    public UsageStats()

### UsageStats(UsageStats)

    public UsageStats(UsageStats other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DataCatalog.V1/latest/Google.Cloud.DataCatalog.V1.UsageStats` |

## Properties

### TotalCancellations

    public float TotalCancellations { get; set; }

The number of cancelled attempts to use the underlying entry.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.single` |   |

### TotalCompletions

    public float TotalCompletions { get; set; }

The number of successful uses of the underlying entry.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.single` |   |

### TotalExecutionTimeForCompletionsMillis

    public float TotalExecutionTimeForCompletionsMillis { get; set; }

Total time spent only on successful uses, in milliseconds.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.single` |   |

### TotalFailures

    public float TotalFailures { get; set; }

The number of failed attempts to use the underlying entry.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.single` |   |