Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class Requests.
Information about the requests relevant to the finding.
Generated from protobuf message google.cloud.securitycenter.v2.Requests
Namespace
Google \ Cloud \ SecurityCenter \ V2Methods
__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 |