# Google Cloud Database Center V1beta Client - Class MetricsWindow (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 MetricsWindow.

Enum to represent the window over which the metrics are aggregated.

Protobuf type `google.cloud.databasecenter.v1beta.QueryMetrics.MetricsWindow`

## Namespace

Google \\ Cloud \\ DatabaseCenter \\ V1beta \\ QueryMetrics

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### METRICS_WINDOW_UNSPECIFIED

    Value: 0

Unspecified. Default value.

Generated from protobuf enum `METRICS_WINDOW_UNSPECIFIED = 0;`

### LAST_ONE_DAY

    Value: 1

Metrics are aggregated over the last 1 day.

Generated from protobuf enum `LAST_ONE_DAY = 1;`

### LAST_ONE_WEEK

    Value: 2

Metrics are aggregated over the last 7 days.

Generated from protobuf enum `LAST_ONE_WEEK = 2;`

### LAST_TWO_WEEKS

    Value: 3

Metrics are aggregated over the last 14 days.

Generated from protobuf enum `LAST_TWO_WEEKS = 3;`