Google Cloud Migration Center V1 Client - Class CpuUsageSample (0.1.0)

Reference documentation and code samples for the Google Cloud Migration Center V1 Client class CpuUsageSample.

CPU usage sample.

Generated from protobuf message google.cloud.migrationcenter.v1.CpuUsageSample

Namespace

Google \ Cloud \ MigrationCenter \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ utilized_percentage float

Percentage of total CPU capacity utilized. Must be in the interval [0, 100]. On most systems can be calculated using 100 - idle percentage.

getUtilizedPercentage

Percentage of total CPU capacity utilized. Must be in the interval [0, 100]. On most systems can be calculated using 100 - idle percentage.

Returns
TypeDescription
float

setUtilizedPercentage

Percentage of total CPU capacity utilized. Must be in the interval [0, 100]. On most systems can be calculated using 100 - idle percentage.

Parameter
NameDescription
var float
Returns
TypeDescription
$this