Google Cloud Appengine Admin V1 Client - Class CpuUtilization (2.0.1)

Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client class CpuUtilization.

Target scaling by CPU usage.

Generated from protobuf message google.appengine.v1.CpuUtilization

Namespace

Google \ Cloud \ AppEngine \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ aggregation_window_length Google\Protobuf\Duration

Period of time over which CPU utilization is calculated.

↳ target_utilization float

Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.

getAggregationWindowLength

Period of time over which CPU utilization is calculated.

Returns
Type Description
Google\Protobuf\Duration|null

hasAggregationWindowLength

clearAggregationWindowLength

setAggregationWindowLength

Period of time over which CPU utilization is calculated.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this

getTargetUtilization

Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.

Returns
Type Description
float

setTargetUtilization

Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.

Parameter
Name Description
var float
Returns
Type Description
$this