# Stackdriver Monitoring V3 Client - Class DistributionCut (2.2.2)

2.2.2 (latest) 2.2.1 2.1.2 2.0.1 1.12.1 1.11.1 1.10.3 1.9.0 1.8.0 1.7.1 1.6.0 1.5.1 1.4.0 1.3.2 1.2.2 Reference documentation and code samples for the Stackdriver Monitoring V3 Client class DistributionCut.

A `DistributionCut` defines a `TimeSeries` and thresholds used for measuring
good service and total service. The `TimeSeries` must have `ValueType =
DISTRIBUTION` and `MetricKind = DELTA` or `MetricKind = CUMULATIVE`. The
computed `good_service` will be the estimated count of values in the
`Distribution` that fall within the specified `min` and `max`.

Generated from protobuf message `google.monitoring.v3.DistributionCut`

## Namespace

Google \\ Cloud \\ Monitoring \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ distribution_filter` | `string` A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` aggregating values. Must have `ValueType = DISTRIBUTION` and `MetricKind = DELTA` or `MetricKind = CUMULATIVE`. |
| `↳ range` | `https://docs.cloud.google.com/php/docs/reference/cloud-monitoring/latest/V3.Range` Range of values considered "good." For a one-sided range, set one bound to an infinite value. |

### getDistributionFilter

A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
specifying a `TimeSeries` aggregating values. Must have `ValueType =
DISTRIBUTION` and `MetricKind = DELTA` or `MetricKind = CUMULATIVE`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDistributionFilter

A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
specifying a `TimeSeries` aggregating values. Must have `ValueType =
DISTRIBUTION` and `MetricKind = DELTA` or `MetricKind = CUMULATIVE`.

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

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

### getRange

Range of values considered "good." For a one-sided range, set one bound to
an infinite value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-monitoring/latest/V3.Range|null` |   |

### hasRange

### clearRange

### setRange

Range of values considered "good." For a one-sided range, set one bound to
an infinite value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-monitoring/latest/V3.Range` |

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