# Google Cloud Data Catalog V1 Client - Class UsageStats (2.4.2)

2.4.2 (latest) 2.4.1 2.3.2 2.2.4 2.1.0 2.0.2 1.10.3 1.9.1 1.8.2 1.7.1 1.6.0 1.5.1 1.4.2 1.3.9 Reference documentation and code samples for the Google Cloud Data Catalog V1 Client 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)

Generated from protobuf message `google.cloud.datacatalog.v1.UsageStats`

## Namespace

Google \\ Cloud \\ DataCatalog \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ total_completions` | `float` The number of successful uses of the underlying entry. |
| `↳ total_failures` | `float` The number of failed attempts to use the underlying entry. |
| `↳ total_cancellations` | `float` The number of cancelled attempts to use the underlying entry. |
| `↳ total_execution_time_for_completions_millis` | `float` Total time spent only on successful uses, in milliseconds. |

### getTotalCompletions

The number of successful uses of the underlying entry.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setTotalCompletions

The number of successful uses of the underlying entry.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTotalFailures

The number of failed attempts to use the underlying entry.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setTotalFailures

The number of failed attempts to use the underlying entry.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTotalCancellations

The number of cancelled attempts to use the underlying entry.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setTotalCancellations

The number of cancelled attempts to use the underlying entry.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTotalExecutionTimeForCompletionsMillis

Total time spent only on successful uses, in milliseconds.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setTotalExecutionTimeForCompletionsMillis

Total time spent only on successful uses, in milliseconds.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |