# Stackdriver Error Reporting V1beta1 Client - Class Period (0.26.1)

0.26.1 (latest) 0.26.0 0.25.3 0.24.0 0.23.1 0.22.10 0.21.1 0.20.2 0.19.12

> [!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 Stackdriver Error Reporting V1beta1 Client class Period.

The supported time ranges.

Protobuf type `google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period`

## Namespace

Google \\ Cloud \\ ErrorReporting \\ V1beta1 \\ QueryTimeRange

## Methods

### static::name

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

### static::value

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

## Constants

### PERIOD_UNSPECIFIED

    Value: 0

Do not use.

Generated from protobuf enum `PERIOD_UNSPECIFIED = 0;`

### PERIOD_1_HOUR

    Value: 1

Retrieve data for the last hour.

Recommended minimum timed count duration: 1 min.

Generated from protobuf enum `PERIOD_1_HOUR = 1;`

### PERIOD_6_HOURS

    Value: 2

Retrieve data for the last 6 hours.

Recommended minimum timed count duration: 10 min.

Generated from protobuf enum `PERIOD_6_HOURS = 2;`

### PERIOD_1_DAY

    Value: 3

Retrieve data for the last day.

Recommended minimum timed count duration: 1 hour.

Generated from protobuf enum `PERIOD_1_DAY = 3;`

### PERIOD_1_WEEK

    Value: 4

Retrieve data for the last week.

Recommended minimum timed count duration: 6 hours.

Generated from protobuf enum `PERIOD_1_WEEK = 4;`

### PERIOD_30_DAYS

    Value: 5

Retrieve data for the last 30 days.

Recommended minimum timed count duration: 1 day.

Generated from protobuf enum `PERIOD_30_DAYS = 5;`