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

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
Google\Protobuf\Duration|null

hasAggregationWindowLength

clearAggregationWindowLength

setAggregationWindowLength

Period of time over which CPU utilization is calculated.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getTargetUtilization

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

Returns
TypeDescription
float

setTargetUtilization

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

Parameter
NameDescription
var float
Returns
TypeDescription
$this