# Google Cloud Security Command Center V1 Client - Class Requests (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class Requests.

Information about the requests relevant to the finding.

Generated from protobuf message `google.cloud.securitycenter.v1.Requests`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ ratio` | `float` For 'Increasing deny ratio', the ratio is the denied traffic divided by the allowed traffic. For 'Allowed traffic spike', the ratio is the allowed traffic in the short term divided by allowed traffic in the long term. |
| `↳ short_term_allowed` | `int` Allowed RPS (requests per second) in the short term. |
| `↳ long_term_allowed` | `int` Allowed RPS (requests per second) over the long term. |
| `↳ long_term_denied` | `int` Denied RPS (requests per second) over the long term. |

### getRatio

For 'Increasing deny ratio', the ratio is the denied traffic divided by the
allowed traffic. For 'Allowed traffic spike', the ratio is the allowed
traffic in the short term divided by allowed traffic in the long term.

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

### setRatio

For 'Increasing deny ratio', the ratio is the denied traffic divided by the
allowed traffic. For 'Allowed traffic spike', the ratio is the allowed
traffic in the short term divided by allowed traffic in the long term.

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

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

### getShortTermAllowed

Allowed RPS (requests per second) in the short term.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setShortTermAllowed

Allowed RPS (requests per second) in the short term.

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

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

### getLongTermAllowed

Allowed RPS (requests per second) over the long term.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setLongTermAllowed

Allowed RPS (requests per second) over the long term.

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

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

### getLongTermDenied

Denied RPS (requests per second) over the long term.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setLongTermDenied

Denied RPS (requests per second) over the long term.

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

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