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 messagegoogle.cloud.securitycenter.v2.Requests
Namespace
Google \ Cloud \ SecurityCenter \ V2
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Security Command Center V2 Client - Class Requests (2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/php/docs/reference/cloud-security-center/latest/V2.Requests)\n- [2.2.0](/php/docs/reference/cloud-security-center/2.2.0/V2.Requests)\n- [2.1.1](/php/docs/reference/cloud-security-center/2.1.1/V2.Requests)\n- [2.0.4](/php/docs/reference/cloud-security-center/2.0.4/V2.Requests)\n- [1.32.0](/php/docs/reference/cloud-security-center/1.32.0/V2.Requests)\n- [1.31.0](/php/docs/reference/cloud-security-center/1.31.0/V2.Requests)\n- [1.30.0](/php/docs/reference/cloud-security-center/1.30.0/V2.Requests)\n- [1.29.0](/php/docs/reference/cloud-security-center/1.29.0/V2.Requests)\n- [1.28.2](/php/docs/reference/cloud-security-center/1.28.2/V2.Requests)\n- [1.21.0](/php/docs/reference/cloud-security-center/1.21.0/V2.Requests)\n- [1.20.2](/php/docs/reference/cloud-security-center/1.20.2/V2.Requests)\n- [1.19.1](/php/docs/reference/cloud-security-center/1.19.1/V2.Requests)\n- [1.18.0](/php/docs/reference/cloud-security-center/1.18.0/V2.Requests)\n- [1.17.0](/php/docs/reference/cloud-security-center/1.17.0/V2.Requests)\n- [1.16.0](/php/docs/reference/cloud-security-center/1.16.0/V2.Requests)\n- [1.15.1](/php/docs/reference/cloud-security-center/1.15.1/V2.Requests)\n- [1.14.2](/php/docs/reference/cloud-security-center/1.14.2/V2.Requests)\n- [1.13.1](/php/docs/reference/cloud-security-center/1.13.1/V2.Requests) \nReference documentation and code samples for the Google Cloud Security Command Center V2 Client class Requests.\n\nInformation about the requests relevant to the finding.\n\nGenerated from protobuf message `google.cloud.securitycenter.v2.Requests`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ SecurityCenter \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getRatio\n\nFor 'Increasing deny ratio', the ratio is the denied traffic divided by the\nallowed traffic. For 'Allowed traffic spike', the ratio is the allowed\ntraffic in the short term divided by allowed traffic in the long term.\n\n### setRatio\n\nFor 'Increasing deny ratio', the ratio is the denied traffic divided by the\nallowed traffic. For 'Allowed traffic spike', the ratio is the allowed\ntraffic in the short term divided by allowed traffic in the long term.\n\n### getShortTermAllowed\n\nAllowed RPS (requests per second) in the short term.\n\n### setShortTermAllowed\n\nAllowed RPS (requests per second) in the short term.\n\n### getLongTermAllowed\n\nAllowed RPS (requests per second) over the long term.\n\n### setLongTermAllowed\n\nAllowed RPS (requests per second) over the long term.\n\n### getLongTermDenied\n\nDenied RPS (requests per second) over the long term.\n\n### setLongTermDenied\n\nDenied RPS (requests per second) over the long term."]]