# Google Cloud Database Center V1beta Client - Class Metrics (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.1 0.3.1 0.2.0 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Database Center V1beta Client class Metrics.

Metrics represents the metrics for a database resource.

Generated from protobuf message `google.cloud.databasecenter.v1beta.Metrics`

## Namespace

Google \\ Cloud \\ DatabaseCenter \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ p99_cpu_utilization` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` P99 CPU utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). |
| `↳ p95_cpu_utilization` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` P95 CPU utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). |
| `↳ current_storage_used_bytes` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` Current storage used by the resource in bytes. |
| `↳ peak_storage_utilization` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` Peak storage utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). |
| `↳ peak_memory_utilization` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` Peak memory utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases). |
| `↳ peak_number_connections` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` Peak number of connections observed for the resource. The value is a positive integer. |
| `↳ node_count` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` Number of nodes in instance for spanner or bigtable. |
| `↳ processing_unit_count` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` Number of processing units in spanner. |
| `↳ current_memory_used_bytes` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` Current memory used by the resource in bytes. |

### getP99CpuUtilization

P99 CPU utilization observed for the resource. The value is a
fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData|null` |   |

### hasP99CpuUtilization

### clearP99CpuUtilization

### setP99CpuUtilization

P99 CPU utilization observed for the resource. The value is a
fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` |

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

### getP95CpuUtilization

P95 CPU utilization observed for the resource. The value is a
fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData|null` |   |

### hasP95CpuUtilization

### clearP95CpuUtilization

### setP95CpuUtilization

P95 CPU utilization observed for the resource. The value is a
fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` |

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

### getCurrentStorageUsedBytes

Current storage used by the resource in bytes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData|null` |   |

### hasCurrentStorageUsedBytes

### clearCurrentStorageUsedBytes

### setCurrentStorageUsedBytes

Current storage used by the resource in bytes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` |

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

### getPeakStorageUtilization

Peak storage utilization observed for the resource. The value is a
fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData|null` |   |

### hasPeakStorageUtilization

### clearPeakStorageUtilization

### setPeakStorageUtilization

Peak storage utilization observed for the resource. The value is a
fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` |

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

### getPeakMemoryUtilization

Peak memory utilization observed for the resource. The value is a
fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData|null` |   |

### hasPeakMemoryUtilization

### clearPeakMemoryUtilization

### setPeakMemoryUtilization

Peak memory utilization observed for the resource. The value is a
fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` |

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

### getPeakNumberConnections

Peak number of connections observed for the resource. The value is a
positive integer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData|null` |   |

### hasPeakNumberConnections

### clearPeakNumberConnections

### setPeakNumberConnections

Peak number of connections observed for the resource. The value is a
positive integer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` |

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

### getNodeCount

Number of nodes in instance for spanner or bigtable.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData|null` |   |

### hasNodeCount

### clearNodeCount

### setNodeCount

Number of nodes in instance for spanner or bigtable.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` |

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

### getProcessingUnitCount

Number of processing units in spanner.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData|null` |   |

### hasProcessingUnitCount

### clearProcessingUnitCount

### setProcessingUnitCount

Number of processing units in spanner.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` |

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

### getCurrentMemoryUsedBytes

Current memory used by the resource in bytes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData|null` |   |

### hasCurrentMemoryUsedBytes

### clearCurrentMemoryUsedBytes

### setCurrentMemoryUsedBytes

Current memory used by the resource in bytes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-databasecenter/latest/V1beta.MetricData` |

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